mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-10 23:20:54 +00:00
Merge branch 'master' into 'master'
capture: use size of void* instead of glibc-specific __WORDSIZE See merge request GNOME/sysprof!5
This commit is contained in:
@ -32,12 +32,14 @@ G_BEGIN_DECLS
|
|||||||
#define SP_CAPTURE_MAGIC (GUINT32_TO_LE(0xFDCA975E))
|
#define SP_CAPTURE_MAGIC (GUINT32_TO_LE(0xFDCA975E))
|
||||||
#define SP_CAPTURE_ALIGN (sizeof(SpCaptureAddress))
|
#define SP_CAPTURE_ALIGN (sizeof(SpCaptureAddress))
|
||||||
|
|
||||||
#if __WORDSIZE == 64
|
#if GLIB_SIZEOF_VOID_P == 8
|
||||||
# define SP_CAPTURE_JITMAP_MARK G_GUINT64_CONSTANT(0xE000000000000000)
|
# define SP_CAPTURE_JITMAP_MARK G_GUINT64_CONSTANT(0xE000000000000000)
|
||||||
# define SP_CAPTURE_ADDRESS_FORMAT "0x%016lx"
|
# define SP_CAPTURE_ADDRESS_FORMAT "0x%016lx"
|
||||||
#else
|
#elif GLIB_SIZEOF_VOID_P == 4
|
||||||
# define SP_CAPTURE_JITMAP_MARK G_GUINT64_CONSTANT(0xE0000000)
|
# define SP_CAPTURE_JITMAP_MARK G_GUINT64_CONSTANT(0xE0000000)
|
||||||
# define SP_CAPTURE_ADDRESS_FORMAT "0x%016llx"
|
# define SP_CAPTURE_ADDRESS_FORMAT "0x%016llx"
|
||||||
|
#else
|
||||||
|
#error Unknown GLIB_SIZEOF_VOID_P
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define SP_CAPTURE_CURRENT_TIME (sp_clock_get_current_time())
|
#define SP_CAPTURE_CURRENT_TIME (sp_clock_get_current_time())
|
||||||
|
|||||||
Reference in New Issue
Block a user