aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/trace-event.h
diff options
context:
space:
mode:
authorAdrian Hunter <adrian.hunter@intel.com>2021-05-25 12:51:06 +0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2021-05-25 10:07:17 -0300
commit54cd8b03245291c8509f96ed12a55eb1cb7dddf8 (patch)
treee2e85d8c705611357f6333265a3286ff1318cc6c /tools/perf/util/trace-event.h
parentperf scripting python: Add 'addr_location' for 'addr' (diff)
downloadlinux-dev-54cd8b03245291c8509f96ed12a55eb1cb7dddf8.tar.xz
linux-dev-54cd8b03245291c8509f96ed12a55eb1cb7dddf8.zip
perf script: Factor out perf_sample__sprintf_flags()
Factor out perf_sample__sprintf_flags() so it can be reused. Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Cc: Andi Kleen <ak@linux.intel.com> Cc: Jiri Olsa <jolsa@redhat.com> Link: https://lore.kernel.org/r/20210525095112.1399-5-adrian.hunter@intel.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/trace-event.h')
-rw-r--r--tools/perf/util/trace-event.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/perf/util/trace-event.h b/tools/perf/util/trace-event.h
index 24694463c0be..7276674e2971 100644
--- a/tools/perf/util/trace-event.h
+++ b/tools/perf/util/trace-event.h
@@ -105,4 +105,7 @@ int common_pc(struct scripting_context *context);
int common_flags(struct scripting_context *context);
int common_lock_depth(struct scripting_context *context);
+#define SAMPLE_FLAGS_BUF_SIZE 64
+int perf_sample__sprintf_flags(u32 flags, char *str, size_t sz);
+
#endif /* _PERF_UTIL_TRACE_EVENT_H */