summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@redhat.com>2012-12-13 14:09:00 +0100
committerChanho Park <chanho61.park@samsung.com>2014-11-18 11:43:32 +0900
commit8e0bc2a15ddc9a58c854d26ab31c6b4a2d226c7a (patch)
tree5f2bb76fa2491f6f1565772df2d23a33b0f021b9 /tools
parent284e78f384052bba252e344ee0be5ef07aab87da (diff)
downloadlinux-3.10-8e0bc2a15ddc9a58c854d26ab31c6b4a2d226c7a.tar.gz
linux-3.10-8e0bc2a15ddc9a58c854d26ab31c6b4a2d226c7a.tar.bz2
linux-3.10-8e0bc2a15ddc9a58c854d26ab31c6b4a2d226c7a.zip
perf hists: Rename hist_entry__add_pair arguments
The current logic is to attach pair to the leader hist_entry. Arguments of hist_entry__add_pair function were placed the other way round.. driving me crazy. I.e. list_add_tail expects (new_node, head). Signed-off-by: Jiri Olsa <jolsa@redhat.com> Cc: Corey Ashford <cjashfor@linux.vnet.ibm.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> Link: http://lkml.kernel.org/r/1355404152-16523-3-git-send-email-jolsa@redhat.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/perf/util/sort.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/perf/util/sort.h b/tools/perf/util/sort.h
index 51f1b5a854e..45ac84c1e03 100644
--- a/tools/perf/util/sort.h
+++ b/tools/perf/util/sort.h
@@ -117,10 +117,10 @@ static inline struct hist_entry *hist_entry__next_pair(struct hist_entry *he)
return NULL;
}
-static inline void hist_entry__add_pair(struct hist_entry *he,
- struct hist_entry *pair)
+static inline void hist_entry__add_pair(struct hist_entry *pair,
+ struct hist_entry *he)
{
- list_add_tail(&he->pairs.head, &pair->pairs.node);
+ list_add_tail(&pair->pairs.node, &he->pairs.head);
}
enum sort_mode {