aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf/util/pmu.h
diff options
context:
space:
mode:
authorAdrian Hunter <adrian.hunter@intel.com>2015-07-17 19:33:49 +0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2015-08-06 16:49:01 -0300
commit09ff607176ab2bf7e038150100fdf9290a6fbe47 (patch)
tree17952463c0ecb6ef8377cd99d0f7d91592b43392 /tools/perf/util/pmu.h
parentperf tools: Fix perf-with-kcore handling of arguments containing spaces (diff)
downloadwireguard-linux-09ff607176ab2bf7e038150100fdf9290a6fbe47.tar.xz
wireguard-linux-09ff607176ab2bf7e038150100fdf9290a6fbe47.zip
perf tools: Add perf_pmu__format_bits()
Add perf_pmu__format_bits() to get the format bits for a PMU config term. Intel PT will use this to validate terms and to record format bits to enable later interpreting the config from the attribute stored in the perf.data file. Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Cc: Jiri Olsa <jolsa@redhat.com> Link: http://lkml.kernel.org/r/1437150840-31811-15-git-send-email-adrian.hunter@intel.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/pmu.h')
-rw-r--r--tools/perf/util/pmu.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/util/pmu.h b/tools/perf/util/pmu.h
index 7b9c8cf8ae3e..5d7e84466bee 100644
--- a/tools/perf/util/pmu.h
+++ b/tools/perf/util/pmu.h
@@ -54,6 +54,7 @@ int perf_pmu__config_terms(struct list_head *formats,
struct perf_event_attr *attr,
struct list_head *head_terms,
bool zero, struct parse_events_error *error);
+__u64 perf_pmu__format_bits(struct list_head *formats, const char *name);
int perf_pmu__check_alias(struct perf_pmu *pmu, struct list_head *head_terms,
struct perf_pmu_info *info);
struct list_head *perf_pmu__alias(struct perf_pmu *pmu,