perf hists: Introduce perf_hpp_list__init function
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>
This commit is contained in:

committed by
Arnaldo Carvalho de Melo

parent
7c31e10266
commit
94b3dc3865
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user