perf tools: Add helper functions for some sort keys
authorNamhyung Kim <[email protected]>
Wed, 24 Feb 2016 15:13:33 +0000 (00:13 +0900)
committerArnaldo Carvalho de Melo <[email protected]>
Wed, 24 Feb 2016 16:05:04 +0000 (13:05 -0300)
commita9c6e46c04ba38925e94c4c2fa9217460338db43
tree883930798e64fbe42f53ee1518e86e68f887804d
parent30372f04c9dc159f99f1f09c61e5e0dbe4c91251
perf tools: Add helper functions for some sort keys

The 'trace', 'srcline' and 'srcfile' sort keys updates hist entry's
field later.  With the hierarchy mode, those fields are passed to a
matching entry so it needs to identify the sort keys.

Signed-off-by: Namhyung Kim <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Cc: Wang Nan <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/perf/util/hist.h
tools/perf/util/sort.c