perf tools: Introduce struct hist_browser_timer
Currently various hist browser functions receive 3 arguments for refreshing histogram but only used from a few places. Also it's only for perf top command so that it can be NULL for other (and probably most) cases. Pack them into a struct in order to reduce number of those unused arguments. This is a mechanical change and does not intend a functional change. Signed-off-by:Namhyung Kim <namhyung@kernel.org> Tested-by:
David Ahern <dsahern@gmail.com> Cc: David Ahern <dsahern@gmail.com> Cc: Ingo Molnar <mingo@kernel.org> Cc: Irina Tirdea <irina.tirdea@gmail.com> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/r/1351835406-15208-2-git-send-email-namhyung@kernel.org Signed-off-by:
Arnaldo Carvalho de Melo <acme@redhat.com>
Showing
- tools/perf/builtin-annotate.c 1 addition, 1 deletiontools/perf/builtin-annotate.c
- tools/perf/builtin-report.c 2 additions, 2 deletionstools/perf/builtin-report.c
- tools/perf/builtin-top.c 6 additions, 3 deletionstools/perf/builtin-top.c
- tools/perf/ui/browsers/annotate.c 12 additions, 15 deletionstools/perf/ui/browsers/annotate.c
- tools/perf/ui/browsers/hists.c 19 additions, 24 deletionstools/perf/ui/browsers/hists.c
- tools/perf/ui/gtk/browser.c 1 addition, 3 deletionstools/perf/ui/gtk/browser.c
- tools/perf/util/annotate.h 4 additions, 4 deletionstools/perf/util/annotate.h
- tools/perf/util/hist.h 13 additions, 15 deletionstools/perf/util/hist.h
Loading
Please register or sign in to comment