summaryrefslogtreecommitdiffstats
path: root/tools/perf/arch/arm64/util/dwarf-regs.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2017-04-17 20:36:40 +0200
committerArnaldo Carvalho de Melo <acme@redhat.com>2017-04-19 18:01:47 +0200
commitaa8cc2f6b5faae3511ea229846d8e54bd8df40d1 (patch)
treea08b820903eec382d4b31a3c3deb847f105a23c5 /tools/perf/arch/arm64/util/dwarf-regs.c
parentperf tools: Remove PRI[xu] macros from perf.h (diff)
downloadlinux-aa8cc2f6b5faae3511ea229846d8e54bd8df40d1.tar.xz
linux-aa8cc2f6b5faae3511ea229846d8e54bd8df40d1.zip
perf tools: Replace STR() calls with __stringify()
Both do the same thing, the later is the one we get from linux/stringify.h, i.e. we now use the same function name/practice as the kernel sources. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Wang Nan <wangnan0@huawei.com> Link: http://lkml.kernel.org/n/tip-w2sxa5o4bfx7fjrd5mu4zmke@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/arch/arm64/util/dwarf-regs.c')
-rw-r--r--tools/perf/arch/arm64/util/dwarf-regs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/perf/arch/arm64/util/dwarf-regs.c b/tools/perf/arch/arm64/util/dwarf-regs.c
index 068b6189157b..aea610c292e6 100644
--- a/tools/perf/arch/arm64/util/dwarf-regs.c
+++ b/tools/perf/arch/arm64/util/dwarf-regs.c
@@ -11,6 +11,7 @@
#include <stddef.h>
#include <dwarf-regs.h>
#include <linux/ptrace.h> /* for struct user_pt_regs */
+#include <linux/stringify.h>
#include "util.h"
struct pt_regs_dwarfnum {
@@ -20,7 +21,7 @@ struct pt_regs_dwarfnum {
#define REG_DWARFNUM_NAME(r, num) {.name = r, .dwarfnum = num}
#define GPR_DWARFNUM_NAME(num) \
- {.name = STR(%x##num), .dwarfnum = num}
+ {.name = __stringify(%x##num), .dwarfnum = num}
#define REG_DWARFNUM_END {.name = NULL, .dwarfnum = 0}
#define DWARFNUM2OFFSET(index) \
(index * sizeof((struct user_pt_regs *)0)->regs[0])