perf hists: Allocate output sort field
authorJiri Olsa <jolsa@kernel.org>
Mon, 18 Jan 2016 09:24:07 +0000 (10:24 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 3 Feb 2016 15:24:07 +0000 (12:24 -0300)
commit1945c3e734cd1f01535dc76de47c38bbe9a87352
treed6c2de181e6215f219045e81b16ca65e3fb37b2e
parent3ee60c3b18bd4bf30ea9b70e7542116bb5c205ba
perf hists: Allocate output sort field

Currently we use static output fields, because we have single global
list of all sort/output fields.

We will add hists specific sort and output lists in following patches,
so we need all format entries to be dynamically allocated. Adding
support to allocate output sort field.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1453109064-1026-10-git-send-email-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/ui/hist.c
tools/perf/util/sort.c