Skip to content

perf ui/gtk: Separate out GTK code to a shared object (v2)

Namhyung Kim lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4perf ui/gtk: Fix segmentation fault on perf_hpp__for_each_format looptools/perf/ui/gtk/hists.c+0 -21 reply
2/4perf tools: Separate out GTK codes to libperf-gtk.sotools/perf/Makefile tools/perf/config/Makefile+38 -151 reply
3/4perf tools: Setup GTK browser dynamicallytools/perf/ui/gtk/gtk.h tools/perf/ui/setup.c tools/perf/ui/ui.h+53 -131 reply
4/4perf tools: Run dynamic loaded GTK browsertools/perf/builtin-annotate.c tools/perf/builtin-report.c tools/perf/config/Makefile +4 more+61 -481 reply

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchPekka Enberg
1/4R-b
2/4R-b
3/4R-b
4/4R-b

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

Read the v1 thread

Cover letter [PATCH/RFC 0/4] perf ui/gtk: Separate out GTK code to a shared object (v2)

Hi,

This is v2 of gtk code separation patchset to reduce library dependencies of the perf executable.

I only built libperf-gtk.so with -fPIC, and it's not linked to libperf at build time. All unresolved symbols used for perf should be resolved at runtime via perf executable (so libperf.a) - I didn't know that the linker permits unresolved symbols in a shared library at build time.

Tested on my x86-64 machine only. It seems work well for me.

The patch 1 is a bug fix and can be applied independently.

You can find it on my 'perf/separate-v2' branch in my tree at:

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

Any comments are welcome, thanks
Namhyung

Cc Pekka Enberg <[email protected]>
Cc Andi Kleen <[email protected]>

Namhyung Kim (4):
perf ui/gtk: Fix segmentation fault on perf_hpp__for_each_format loop perf tools: Separate out GTK codes to libperf-gtk.so
perf tools: Setup GTK browser dynamically
perf tools: Run dynamic loaded GTK browser

 tools/perf/Makefile           | 39 +++++++++++++++++++++++----------
 tools/perf/builtin-annotate.c | 26 +++++++++++++++++++---
 tools/perf/builtin-report.c   | 16 ++++++++++++--
 tools/perf/config/Makefile    | 12 +++++++---
 tools/perf/ui/gtk/annotate.c  | 13 ++++++++---
 tools/perf/ui/gtk/gtk.h       | 16 ++++++++++++++
 tools/perf/ui/gtk/hists.c     |  2 --
 tools/perf/ui/setup.c         | 51 +++++++++++++++++++++++++++++++++++++++++--
 tools/perf/ui/ui.h            | 12 +---------
 tools/perf/util/annotate.h    | 24 --------------------
 tools/perf/util/hist.h        | 15 -------------
 11 files changed, 150 insertions(+), 76 deletions(-)
Signature · 1 line
1.7.11.7