perf tools: Add location to pmu event terms
Saving the terms location within term struct, so it could be used later for report. 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-6-git-send-email-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
committed by
Arnaldo Carvalho de Melo
parent
36adec85a8
commit
cecf3a2e18
@@ -74,6 +74,10 @@ struct parse_events_term {
|
||||
int type_term;
|
||||
struct list_head list;
|
||||
bool used;
|
||||
|
||||
/* error string indexes for within parsed string */
|
||||
int err_term;
|
||||
int err_val;
|
||||
};
|
||||
|
||||
struct parse_events_error {
|
||||
@@ -94,10 +98,6 @@ struct parse_events_terms {
|
||||
};
|
||||
|
||||
int parse_events__is_hardcoded_term(struct parse_events_term *term);
|
||||
int parse_events_term__num(struct parse_events_term **_term,
|
||||
int type_term, char *config, u64 num);
|
||||
int parse_events_term__str(struct parse_events_term **_term,
|
||||
int type_term, char *config, char *str);
|
||||
int parse_events_term__sym_hw(struct parse_events_term **term,
|
||||
char *config, unsigned idx);
|
||||
int parse_events_term__clone(struct parse_events_term **new,
|
||||
|
Reference in New Issue
Block a user