mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +00:00
libsysprof: check for PERF_REG_EXTENDED_MASK availability
This commit is contained in:
@ -48,7 +48,11 @@
|
|||||||
#define SYSPROF_ARCH_PREFERRED_REGS DWARF_NEEDED_REGS
|
#define SYSPROF_ARCH_PREFERRED_REGS DWARF_NEEDED_REGS
|
||||||
/* TODO: add other architectures, imitating the linux tools/perf tree */
|
/* TODO: add other architectures, imitating the linux tools/perf tree */
|
||||||
#else
|
#else
|
||||||
# define SYSPROF_ARCH_PREFERRED_REGS PERF_REG_EXTENDED_MASK
|
# ifdef PERF_REG_EXTENDED_MASK
|
||||||
|
# define SYSPROF_ARCH_PREFERRED_REGS PERF_REG_EXTENDED_MASK
|
||||||
|
# else
|
||||||
|
# define SYSPROF_ARCH_PREFERRED_REGS 0
|
||||||
|
# endif
|
||||||
#endif /* _ASM_{arch}_PERF_REGS_H */
|
#endif /* _ASM_{arch}_PERF_REGS_H */
|
||||||
|
|
||||||
#define N_WAKEUP_EVENTS 149
|
#define N_WAKEUP_EVENTS 149
|
||||||
|
|||||||
Reference in New Issue
Block a user