diff options
author | Jiri Olsa <jolsa@kernel.org> | 2015-04-22 15:10:19 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2015-04-29 09:38:00 -0400 |
commit | 36adec85a86f2daa521cda48ea7be8a95c20ed10 (patch) | |
tree | 951b6d123db8e0faed5d7153952af900819097aa /tools/perf/util/parse-events.h | |
parent | c056ba6a174f4d5d79fe27f259fc133041a451da (diff) |
perf tools: Change parse_events_add_pmu interface
Changing parse_events_add_pmu interface to allow propagating of the
parse_events_error info.
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1429729824-13932-5-git-send-email-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/parse-events.h')
-rw-r--r-- | tools/perf/util/parse-events.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/perf/util/parse-events.h b/tools/perf/util/parse-events.h index eb12bcd12642..76ea3de288da 100644 --- a/tools/perf/util/parse-events.h +++ b/tools/perf/util/parse-events.h | |||
@@ -115,8 +115,9 @@ int parse_events_add_cache(struct list_head *list, int *idx, | |||
115 | char *type, char *op_result1, char *op_result2); | 115 | char *type, char *op_result1, char *op_result2); |
116 | int parse_events_add_breakpoint(struct list_head *list, int *idx, | 116 | int parse_events_add_breakpoint(struct list_head *list, int *idx, |
117 | void *ptr, char *type, u64 len); | 117 | void *ptr, char *type, u64 len); |
118 | int parse_events_add_pmu(struct list_head *list, int *idx, | 118 | int parse_events_add_pmu(struct parse_events_evlist *data, |
119 | char *pmu , struct list_head *head_config); | 119 | struct list_head *list, char *name, |
120 | struct list_head *head_config); | ||
120 | enum perf_pmu_event_symbol_type | 121 | enum perf_pmu_event_symbol_type |
121 | perf_pmu__parse_check(const char *name); | 122 | perf_pmu__parse_check(const char *name); |
122 | void parse_events__set_leader(char *name, struct list_head *list); | 123 | void parse_events__set_leader(char *name, struct list_head *list); |