diff options
author | Jiri Olsa <jolsa@redhat.com> | 2013-01-15 08:39:51 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2013-01-24 14:40:40 -0500 |
commit | d8f7bbc947afb59c68a8574d1fe99b20cff2b1be (patch) | |
tree | e877fc4adddc438f66ac6d03e6f17baac7795793 /tools/perf/util | |
parent | 3cf0cb1f899640f1eb8b3984739cfd70375c9c36 (diff) |
perf tools: Remove unused 'unset' parameter from parse_events
The 'unset' parameter is option callback leftover with no use, removing.
Signed-off-by: Jiri Olsa <jolsa@redhat.com>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Ulrich Drepper <drepper@gmail.com>
Link: http://lkml.kernel.org/r/1358257194-8204-2-git-send-email-jolsa@redhat.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util')
-rw-r--r-- | tools/perf/util/parse-events.c | 5 | ||||
-rw-r--r-- | tools/perf/util/parse-events.h | 3 |
2 files changed, 3 insertions, 5 deletions
diff --git a/tools/perf/util/parse-events.c b/tools/perf/util/parse-events.c index 626c120f00da..d3bf570a7084 100644 --- a/tools/perf/util/parse-events.c +++ b/tools/perf/util/parse-events.c | |||
@@ -872,8 +872,7 @@ int parse_events_terms(struct list_head *terms, const char *str) | |||
872 | return ret; | 872 | return ret; |
873 | } | 873 | } |
874 | 874 | ||
875 | int parse_events(struct perf_evlist *evlist, const char *str, | 875 | int parse_events(struct perf_evlist *evlist, const char *str) |
876 | int unset __maybe_unused) | ||
877 | { | 876 | { |
878 | struct parse_events_data__events data = { | 877 | struct parse_events_data__events data = { |
879 | .list = LIST_HEAD_INIT(data.list), | 878 | .list = LIST_HEAD_INIT(data.list), |
@@ -900,7 +899,7 @@ int parse_events_option(const struct option *opt, const char *str, | |||
900 | int unset __maybe_unused) | 899 | int unset __maybe_unused) |
901 | { | 900 | { |
902 | struct perf_evlist *evlist = *(struct perf_evlist **)opt->value; | 901 | struct perf_evlist *evlist = *(struct perf_evlist **)opt->value; |
903 | int ret = parse_events(evlist, str, unset); | 902 | int ret = parse_events(evlist, str); |
904 | 903 | ||
905 | if (ret) { | 904 | if (ret) { |
906 | fprintf(stderr, "invalid or unsupported event: '%s'\n", str); | 905 | fprintf(stderr, "invalid or unsupported event: '%s'\n", str); |
diff --git a/tools/perf/util/parse-events.h b/tools/perf/util/parse-events.h index b7af80b8bdda..7c5244fa0885 100644 --- a/tools/perf/util/parse-events.h +++ b/tools/perf/util/parse-events.h | |||
@@ -29,8 +29,7 @@ const char *event_type(int type); | |||
29 | 29 | ||
30 | extern int parse_events_option(const struct option *opt, const char *str, | 30 | extern int parse_events_option(const struct option *opt, const char *str, |
31 | int unset); | 31 | int unset); |
32 | extern int parse_events(struct perf_evlist *evlist, const char *str, | 32 | extern int parse_events(struct perf_evlist *evlist, const char *str); |
33 | int unset); | ||
34 | extern int parse_events_terms(struct list_head *terms, const char *str); | 33 | extern int parse_events_terms(struct list_head *terms, const char *str); |
35 | extern int parse_filter(const struct option *opt, const char *str, int unset); | 34 | extern int parse_filter(const struct option *opt, const char *str, int unset); |
36 | 35 | ||