mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-10-01 03:16:38 +02:00
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.
14 lines
598 B
D
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);
|
|
};
|