]> git.baikalelectronics.ru Git - kernel.git/commit
perf hists: Introduce hist_entry__init function
authorJiri Olsa <jolsa@kernel.org>
Tue, 5 Jul 2016 06:56:03 +0000 (08:56 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 12 Jul 2016 03:00:39 +0000 (00:00 -0300)
commit9c8081712c418fc352529a2a6363b19655fdfdf5
treee924bc0560aaa758b0721b1c30f1d9b0b4384fc2
parente74fca6d4de7fa808814cc283127d77de0adeb34
perf hists: Introduce hist_entry__init function

Move the 'struct hist_entry' initialization code to a separate function.
It'll be useful and more clear for the following patches that introduce
allocation callbacks.

Releasing the hist_entry object in hist_entry__new function
(where it's allocated) rather than in hist_entry__init.

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/1467701765-26194-2-git-send-email-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/hist.c