Skip to content

perf tools: Remove browser dependency from usage_with_options()

Namhyung Kim lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7perf annotate: Check argument before calling setup_browser()tools/perf/builtin-annotate.c+10 -110 replies
2/7perf annotate: Delay UI browser setup after initialization is donetools/perf/builtin-annotate.c+9 -90 replies
3/7perf kvm: Remove invocation of setup/exit_browser()tools/perf/builtin-kvm.c+0 -30 replies
4/7perf report: Check argument before calling setup_browser()tools/perf/builtin-report.c+10 -110 replies
5/7perf top: Delay UI browser setup after initialization is donetools/perf/builtin-top.c+7 -73 replies
6/7perf tools: Free strlist on error pathtools/perf/util/thread_map.c+1 -00 replies
7/7perf tools: Get rid of exit_browser() from usage_with_options()tools/perf/util/parse-options.c+0 -30 replies

Reviews trailers per patch

None of the 7 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJosh Poimboeuf
SeriesR-b
1/7
2/7
3/7
4/7
5/7
6/7
7/7

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCHSET 0/7] perf tools: Remove browser dependency from usage_with_options()

Hello,

This patchset removes the UI browser dependency (specifically exit_browser function) from option parser code. It'll help to separate out the common code into a library.

Now existing users of usage_with_options() were converted to call it before setup_browser(). I think future users can notice the difference when they test their code and will call it properly.

It's available on 'perf/option-dependency-v1' branch on my tree

git://git.kernel.org/pub/scm/linux/kernel/git/namhyung/linux-perf.git

Thanks
Namhyung

Namhyung Kim (7):
perf annotate: Check argument before calling setup_browser() perf annotate: Delay UI browser setup after initialization is done perf kvm: Remove invocation of setup/exit_browser() perf report: Check argument before calling setup_browser() perf top: Delay UI browser setup after initialization is done perf tools: Free strlist on error path
perf tools: Get rid of exit_browser() from usage_with_options()

 tools/perf/builtin-annotate.c   | 33 ++++++++++++++++-----------------
 tools/perf/builtin-kvm.c        |  3 ---
 tools/perf/builtin-report.c     | 21 ++++++++++-----------
 tools/perf/builtin-top.c        | 14 +++++++-------
 tools/perf/util/parse-options.c |  3 ---
 tools/perf/util/thread_map.c    |  1 +
 6 files changed, 34 insertions(+), 41 deletions(-)
Signature · 1 line
2.6.2