diff options
author | Namhyung Kim <namhyung.kim@lge.com> | 2012-11-29 12:38:40 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2012-12-09 06:46:06 -0500 |
commit | 2850d9487266a55a18d340c24f5107696deeebb9 (patch) | |
tree | 3ac7d96ceecdc0860feca3499b1d6e6b1875d9a4 | |
parent | 3843b05d6ef20acbd4b0043e4ab7536602eb10ae (diff) |
perf hists: Fix typo on hist__entry_add_pair
Fix a misplaced underscore. In this case, 'hist_entry' is the name of
data structure and we usually put double underscores between data
structure and actual function name.
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Acked-by: Jiri Olsa <jolsa@redhat.com>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>,
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-8jdq8g6kl6v54hkexrfwsy72@git.kernel.org
[ committer note: put it in front of the patch queue where it came from ]
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r-- | tools/perf/util/hist.c | 4 | ||||
-rw-r--r-- | tools/perf/util/sort.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tools/perf/util/hist.c b/tools/perf/util/hist.c index cb17e2a8c6ed..d2bc05cd1708 100644 --- a/tools/perf/util/hist.c +++ b/tools/perf/util/hist.c | |||
@@ -785,7 +785,7 @@ void hists__match(struct hists *leader, struct hists *other) | |||
785 | pair = hists__find_entry(other, pos); | 785 | pair = hists__find_entry(other, pos); |
786 | 786 | ||
787 | if (pair) | 787 | if (pair) |
788 | hist__entry_add_pair(pos, pair); | 788 | hist_entry__add_pair(pos, pair); |
789 | } | 789 | } |
790 | } | 790 | } |
791 | 791 | ||
@@ -806,7 +806,7 @@ int hists__link(struct hists *leader, struct hists *other) | |||
806 | pair = hists__add_dummy_entry(leader, pos); | 806 | pair = hists__add_dummy_entry(leader, pos); |
807 | if (pair == NULL) | 807 | if (pair == NULL) |
808 | return -1; | 808 | return -1; |
809 | hist__entry_add_pair(pair, pos); | 809 | hist_entry__add_pair(pair, pos); |
810 | } | 810 | } |
811 | } | 811 | } |
812 | 812 | ||
diff --git a/tools/perf/util/sort.h b/tools/perf/util/sort.h index b4e8c3ba559d..91ae2744e7d5 100644 --- a/tools/perf/util/sort.h +++ b/tools/perf/util/sort.h | |||
@@ -118,7 +118,7 @@ static inline struct hist_entry *hist_entry__next_pair(struct hist_entry *he) | |||
118 | return NULL; | 118 | return NULL; |
119 | } | 119 | } |
120 | 120 | ||
121 | static inline void hist__entry_add_pair(struct hist_entry *he, | 121 | static inline void hist_entry__add_pair(struct hist_entry *he, |
122 | struct hist_entry *pair) | 122 | struct hist_entry *pair) |
123 | { | 123 | { |
124 | list_add_tail(&he->pairs.head, &pair->pairs.node); | 124 | list_add_tail(&he->pairs.head, &pair->pairs.node); |