This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository efl.
View the commit online.
commit c5b9084ca86f03a87e752ac81d6d326182b4f177
Author: Carsten Haitzler <[email protected]>
AuthorDate: Sat Jan 3 12:34:04 2026 +0000
eina - bt - profiling debug - work arounnd musl weirdness and add err
so musl doesn't support CLOCK_THREAD_CPUTIME_ID + clock_gettime() +
__clockid_t_defined - warn if this is the case. also case
pthread?_self to silence supir errors that should just be warnings
(comparing uintptr_t to a void * should be at best a warning, not some
error as it seems now some compiler wants to think.
@fix
---
src/lib/eina/eina_debug_bt.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/lib/eina/eina_debug_bt.c b/src/lib/eina/eina_debug_bt.c
index 4bc09b0f70..34b9cf732a 100644
--- a/src/lib/eina/eina_debug_bt.c
+++ b/src/lib/eina/eina_debug_bt.c
@@ -198,7 +198,7 @@ _signal_handler(int sig EINA_UNUSED,
siginfo_t *si EINA_UNUSED, void *foo EINA_UNUSED)
{
int i, slot = 0;
- pthread_t self = pthread_self();
+ Eina_Thread self = (Eina_Thread)pthread_self();
#if defined(HAVE_CLOCK_GETTIME) && defined(HAVE_SCHED_GETCPU) && defined(__clockid_t_defined)
clockid_t cid;
#endif
@@ -246,6 +246,9 @@ found:
# endif
clock_gettime(cid, &(_bt_ts[slot]));
_bt_buf_len[slot] = _eina_debug_unwind_bt(_bt_buf[slot], EINA_MAX_BT);
+#else
+ // I hear musl fails all of these ifdef checks above... hooray!
+# warning "Unsupported libc (musl maybe?). No known way to get cpu time used of a thread."
#endif /* HAVE_CLOCK_GETTIME && HAVE_SCHED_GETCPU */
// now wake up the monitor to let them know we are done collecting our
// backtrace info
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.