diff options
author | Adrian Hunter <adrian.hunter@intel.com> | 2021-05-25 12:51:06 +0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2021-05-25 16:07:17 +0300 |
commit | 54cd8b03245291c8509f96ed12a55eb1cb7dddf8 (patch) | |
tree | e2e85d8c705611357f6333265a3286ff1318cc6c /tools/perf/util/trace-event.h | |
parent | 3f8e009e01c4ed9f75c10f33936990f3a3d39fcd (diff) | |
download | linux-54cd8b03245291c8509f96ed12a55eb1cb7dddf8.tar.xz |
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.h | 3 |
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 */ |