aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2020-09-30 09:34:20 -0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2020-09-30 09:34:20 -0300
commit61693228b6e3f9de1c07bfec10b3204e69495fb1 (patch)
treeeef605e95ff67cbbd12a895dfd6b50bcacc0b7b9 /tools/perf/util/scripting-engines/trace-event-python.c
parentperf trace beauty: Add script to autogenerate mremap's flags args string/id table (diff)
downloadwireguard-linux-61693228b6e3f9de1c07bfec10b3204e69495fb1.tar.xz
wireguard-linux-61693228b6e3f9de1c07bfec10b3204e69495fb1.zip
perf beauty mmap_flags: Conditionaly define the mmap flags
So that in older systems we get it in the mmap flags scnprintf routines: $ tools/perf/trace/beauty/mmap_flags.sh | head -9 2> /dev/null static const char *mmap_flags[] = { [ilog2(0x40) + 1] = "32BIT", #ifndef MAP_32BIT #define MAP_32BIT 0x40 #endif [ilog2(0x01) + 1] = "SHARED", #ifndef MAP_SHARED #define MAP_SHARED 0x01 #endif $ Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Ian Rogers <irogers@google.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions