diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2013-01-18 14:29:49 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2013-01-24 14:40:50 -0500 |
commit | 6cee6cd310638cd5751eea0c81315b17eb7c28a9 (patch) | |
tree | 504ad5683181b588eb13e3cb5c1404fb9f62e130 /tools/perf/util/parse-events.h | |
parent | 08aa9cce6bf3ecdfa386cf0a0be842855eac3e7d (diff) |
perf tools: Fix usage of __ in parse_events_term struct
In tools/perf we use a convention where __ separates the struct name
from the function name for functions that operate on a struct instance.
Fix this usage by removing it from the struct parse_events_term and fix
also its associated functions.
Acked-by: Jiri Olsa <jolsa@redhat.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Namhyung Kim <namhyung@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-h6vkql4jr7dv0096f1s6hldm@git.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 | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tools/perf/util/parse-events.h b/tools/perf/util/parse-events.h index 7c5244fa0885..dd2978e7b8c0 100644 --- a/tools/perf/util/parse-events.h +++ b/tools/perf/util/parse-events.h | |||
@@ -50,7 +50,7 @@ enum { | |||
50 | PARSE_EVENTS__TERM_TYPE_BRANCH_SAMPLE_TYPE, | 50 | PARSE_EVENTS__TERM_TYPE_BRANCH_SAMPLE_TYPE, |
51 | }; | 51 | }; |
52 | 52 | ||
53 | struct parse_events__term { | 53 | struct parse_events_term { |
54 | char *config; | 54 | char *config; |
55 | union { | 55 | union { |
56 | char *str; | 56 | char *str; |
@@ -70,15 +70,15 @@ struct parse_events_data__terms { | |||
70 | struct list_head *terms; | 70 | struct list_head *terms; |
71 | }; | 71 | }; |
72 | 72 | ||
73 | int parse_events__is_hardcoded_term(struct parse_events__term *term); | 73 | int parse_events__is_hardcoded_term(struct parse_events_term *term); |
74 | int parse_events__term_num(struct parse_events__term **_term, | 74 | int parse_events_term__num(struct parse_events_term **_term, |
75 | int type_term, char *config, u64 num); | 75 | int type_term, char *config, u64 num); |
76 | int parse_events__term_str(struct parse_events__term **_term, | 76 | int parse_events_term__str(struct parse_events_term **_term, |
77 | int type_term, char *config, char *str); | 77 | int type_term, char *config, char *str); |
78 | int parse_events__term_sym_hw(struct parse_events__term **term, | 78 | int parse_events_term__sym_hw(struct parse_events_term **term, |
79 | char *config, unsigned idx); | 79 | char *config, unsigned idx); |
80 | int parse_events__term_clone(struct parse_events__term **new, | 80 | int parse_events_term__clone(struct parse_events_term **new, |
81 | struct parse_events__term *term); | 81 | struct parse_events_term *term); |
82 | void parse_events__free_terms(struct list_head *terms); | 82 | void parse_events__free_terms(struct list_head *terms); |
83 | int parse_events__modifier_event(struct list_head *list, char *str, bool add); | 83 | int parse_events__modifier_event(struct list_head *list, char *str, bool add); |
84 | int parse_events__modifier_group(struct list_head *list, char *event_mod); | 84 | int parse_events__modifier_group(struct list_head *list, char *event_mod); |