mirror of
https://github.com/torvalds/linux.git
synced 2026-12-01 11:03:37 +00:00
For building perf without libunwind, we can set NO_LIBUNWIND=1 as a argument of make. It then defines NO_LIBUNWIND_SUPPORT macro for C code to do the proper handling. However it usually used in a negative semantics - e.g. #ifndef - so we saw double negations which can be misleading. Convert it to a positive form to make it more readable. Also change NO_PERF_REGS macro to HAVE_PERF_REGS for the same reason. Signed-off-by: Namhyung Kim <[email protected]> Acked-by: Jiri Olsa <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
15 lines
258 B
C
15 lines
258 B
C
#ifndef __PERF_REGS_H
|
|
#define __PERF_REGS_H
|
|
|
|
#ifdef HAVE_PERF_REGS
|
|
#include <perf_regs.h>
|
|
#else
|
|
#define PERF_REGS_MASK 0
|
|
|
|
static inline const char *perf_reg_name(int id __maybe_unused)
|
|
{
|
|
return NULL;
|
|
}
|
|
#endif /* HAVE_PERF_REGS */
|
|
#endif /* __PERF_REGS_H */
|