Files
glib/gobject/gobject_probes.d
Tobias Stoeckmann b8f9743a4d systemtap: Use correct formatters/types
Try to avoid casting variables to potentially smaller types to fit
defined probes. This can truncate values and lead to wrong results.

Also make sure that signedness matches.

Since GType can be even 128 bit on CHERI architecture, cast all these
various types used based on platform to uintmax_t which SystemTap
properly processes.
2025-08-08 23:15:38 +02:00

14 lines
598 B
D

provider gobject {
probe type__new(char *, uintmax_t, uintmax_t);
probe object__new(void*, uintmax_t);
probe object__ref(void*, uintmax_t, int);
probe object__unref(void*, uintmax_t, int);
probe object__dispose(void*, uintmax_t, unsigned int);
probe object__dispose__end(void*, uintmax_t, unsigned int);
probe object__finalize(void*, uintmax_t);
probe object__finalize__end(void*, uintmax_t);
probe signal__new(unsigned int, char *, uintmax_t);
probe signal__emit(unsigned int, unsigned int, void *, uintmax_t);
probe signal__emit__end(unsigned int, unsigned int, void *, uintmax_t);
};