perf hists: Introduce perf_hpp_list__init function
authorJiri Olsa <jolsa@kernel.org>
Mon, 18 Jan 2016 09:24:13 +0000 (10:24 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 3 Feb 2016 15:24:11 +0000 (12:24 -0300)
Introducing perf_hpp_list__init function to have an easy way to
initialize perf_hpp_list struct.

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

index d07955c145e59cf2a6bd570142225f864092e676..b762ecc31505456825c3683bb917972ac14a2866 100644 (file)
@@ -1642,3 +1642,9 @@ int hists__init(void)
 
        return err;
 }
+
+void perf_hpp_list__init(struct perf_hpp_list *list)
+{
+       INIT_LIST_HEAD(&list->fields);
+       INIT_LIST_HEAD(&list->sorts);
+}
index 203397a6ea07f1e53a013cdbf07bbc4dae7d1d89..e22f98e3fc6dbbcf7b250aa57172649e3fbbfd7b 100644 (file)
@@ -386,4 +386,6 @@ int parse_filter_percentage(const struct option *opt __maybe_unused,
                            const char *arg, int unset __maybe_unused);
 int perf_hist_config(const char *var, const char *value);
 
+void perf_hpp_list__init(struct perf_hpp_list *list);
+
 #endif /* __PERF_HIST_H */
This page took 0.027659 seconds and 5 git commands to generate.