Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

perf tools: Introduce hpp_dimension__add_output function

This function will allow to register output column from ui code and
respect taken sort/output dimensions.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1444134312-29136-3-git-send-email-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

authored by

Jiri Olsa and committed by
Arnaldo Carvalho de Melo
beeaaeb3 0974d2c9

+8
+6
tools/perf/util/sort.c
··· 1577 1577 return 0; 1578 1578 } 1579 1579 1580 + int hpp_dimension__add_output(unsigned col) 1581 + { 1582 + BUG_ON(col >= PERF_HPP__MAX_INDEX); 1583 + return __hpp_dimension__add_output(&hpp_sort_dimensions[col]); 1584 + } 1585 + 1580 1586 int sort_dimension__add(const char *tok) 1581 1587 { 1582 1588 unsigned int i;
+2
tools/perf/util/sort.h
··· 234 234 int report_parse_ignore_callees_opt(const struct option *opt, const char *arg, int unset); 235 235 236 236 bool is_strict_order(const char *order); 237 + 238 + int hpp_dimension__add_output(unsigned col); 237 239 #endif /* __PERF_SORT_H */