From: bugzilla-daemon@freedesktop.org
To: dri-devel@lists.freedesktop.org
Subject: [Bug 110249] IGT command line tools load redundant GUI libraries
Date: Tue, 26 Mar 2019 13:11:01 +0000 [thread overview]
Message-ID: <bug-110249-502@http.bugs.freedesktop.org/> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 5384 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=110249
Bug ID: 110249
Summary: IGT command line tools load redundant GUI libraries
Product: DRI
Version: DRI git
Hardware: Other
OS: All
Status: NEW
Severity: minor
Priority: medium
Component: IGT
Assignee: dri-devel@lists.freedesktop.org
Reporter: eero.t.tamminen@intel.com
IGT command line tools load many unnecessary libraries, because they use
libigt.so which links in a huge amount of libraries:
$ ldd libigt.so
linux-vdso.so.1 (0x00007ffdf24d6000)
libcairo.so.2 => /usr/lib/x86_64-linux-gnu/libcairo.so.2
(0x00007f8d5daa4000)
libglib-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
(0x00007f8d5d78e000)
libdrm.so.2 => /usr/lib/x86_64-linux-gnu/libdrm.so.2
(0x00007f8d5d57d000)
libdw.so.1 => /usr/lib/x86_64-linux-gnu/libdw.so.1 (0x00007f8d5d331000)
libkmod.so.2 => /lib/x86_64-linux-gnu/libkmod.so.2 (0x00007f8d5d11a000)
libprocps.so.6 => /lib/x86_64-linux-gnu/libprocps.so.6
(0x00007f8d5cef6000)
libudev.so.1 => /lib/x86_64-linux-gnu/libudev.so.1 (0x00007f8d5ccd8000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f8d5c93a000)
libpciaccess.so.0 => /usr/lib/x86_64-linux-gnu/libpciaccess.so.0
(0x00007f8d5c731000)
libpixman-1.so.0 => /usr/lib/x86_64-linux-gnu/libpixman-1.so.0
(0x00007f8d5c48c000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f8d5c284000)
libdrm_intel.so.1 => /usr/lib/x86_64-linux-gnu/libdrm_intel.so.1
(0x00007f8d5c061000)
libunwind.so.8 => /usr/lib/x86_64-linux-gnu/libunwind.so.8
(0x00007f8d5be46000)
libgsl.so.23 => /usr/lib/x86_64-linux-gnu/libgsl.so.23
(0x00007f8d5b9e4000)
libgslcblas.so.0 => /usr/lib/x86_64-linux-gnu/libgslcblas.so.0
(0x00007f8d5b7a5000)
libasound.so.2 => /usr/lib/x86_64-linux-gnu/libasound.so.2
(0x00007f8d5b49e000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0
(0x00007f8d5b27f000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f8d5ae8e000)
libfontconfig.so.1 => /usr/lib/x86_64-linux-gnu/libfontconfig.so.1
(0x00007f8d5ac49000)
libfreetype.so.6 => /usr/lib/x86_64-linux-gnu/libfreetype.so.6
(0x00007f8d5a995000)
libpng16.so.16 => /usr/lib/x86_64-linux-gnu/libpng16.so.16
(0x00007f8d5a763000)
libxcb-shm.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-shm.so.0
(0x00007f8d5a560000)
libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1
(0x00007f8d5a338000)
libxcb-render.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-render.so.0
(0x00007f8d5a12b000)
libXrender.so.1 => /usr/lib/x86_64-linux-gnu/libXrender.so.1
(0x00007f8d59f21000)
libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6
(0x00007f8d59be9000)
libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6
(0x00007f8d599d7000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f8d597ba000)
libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f8d59548000)
libelf.so.1 => /usr/lib/x86_64-linux-gnu/libelf.so.1
(0x00007f8d5932e000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f8d5912a000)
liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007f8d58f04000)
libbz2.so.1.0 => /lib/x86_64-linux-gnu/libbz2.so.1.0
(0x00007f8d58cf4000)
/lib64/ld-linux-x86-64.so.2 (0x00007f8d5e035000)
libsystemd.so.0 => /lib/x86_64-linux-gnu/libsystemd.so.0
(0x00007f8d58a70000)
libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1
(0x00007f8d5883e000)
libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6
(0x00007f8d5863a000)
libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6
(0x00007f8d58434000)
liblz4.so.1 => /usr/lib/x86_64-linux-gnu/liblz4.so.1
(0x00007f8d58218000)
libgcrypt.so.20 => /lib/x86_64-linux-gnu/libgcrypt.so.20
(0x00007f8d57efd000)
libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007f8d57ce8000)
libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0
(0x00007f8d57ad3000)
For example "intel_gpu_top" seems to need just these symbols from it:
$ readelf -s intel_gpu_top |grep igt
10: 0000000000000000 0 FUNC GLOBAL DEFAULT UND igt_perf_open_group
28: 0000000000000000 0 FUNC GLOBAL DEFAULT UND igt_perf_open
58: 00000000002060a0 200 OBJECT GLOBAL DEFAULT 25 igt_subtest_jmpbuf
113: 0000000000000000 0 FUNC GLOBAL DEFAULT UND igt_perf_open_group
124: 00000000002060a0 200 OBJECT GLOBAL DEFAULT 25 igt_subtest_jmpbuf
139: 0000000000000000 0 FUNC GLOBAL DEFAULT UND igt_perf_open
And sone other functions it needs are some json and printing helpers + normal
libc stuff. It does NOT need freetype, pixman, Cairo, ALSA sound, X11
libraries, libglsl etc stuff brought in by libigt.
It's annoying to need to install these redundant dependencies on e.g. headless
media transcoding server if one just wants to use intel_gpu_top to monitor GPU
utilization.
Wouldn't it make sense to split libigt up a bit, e.g. to GUI and non-GUI bits?
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 6816 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
next reply other threads:[~2019-03-26 13:11 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-26 13:11 bugzilla-daemon [this message]
2019-03-26 13:41 ` [Bug 110249] IGT command line tools load redundant GUI libraries bugzilla-daemon
2019-03-26 14:31 ` bugzilla-daemon
2019-03-26 14:35 ` bugzilla-daemon
2019-03-26 14:44 ` bugzilla-daemon
2019-03-26 16:05 ` bugzilla-daemon
2019-03-26 16:20 ` bugzilla-daemon
2019-04-09 11:16 ` bugzilla-daemon
2019-11-12 7:40 ` bugzilla-daemon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-110249-502@http.bugs.freedesktop.org/ \
--to=bugzilla-daemon@freedesktop.org \
--cc=dri-devel@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.