Skip to content

Update perf #1818

Merged
merged 3 commits into from
May 20, 2020
Merged

Update perf #1818

merged 3 commits into from
May 20, 2020

Conversation

donald
Copy link
Collaborator

@donald donald commented May 20, 2020

Update and fix "perf help" problem.

Update to latest stable kernel version.

After the update the following warnings are gone:

    Makefile.config:614: GTK2 not found, disables GTK2 support. Please install gtk2-devel or libgtk2.0-dev

and

    Warning: Kernel ABI header at 'tools/include/uapi/drm/i915_drm.h' differs from latest version at 'include/uapi/drm/i915_drm.h'
    Warning: Kernel ABI header at 'tools/arch/x86/include/asm/cpufeatures.h' differs from latest version at 'arch/x86/include/asm/cpufeatures.h'
    Warning: Kernel ABI header at 'tools/arch/x86/include/uapi/asm/kvm.h' differs from latest version at 'arch/x86/include/uapi/asm/kvm.h'
    Warning: Kernel ABI header at 'tools/arch/x86/lib/memcpy_64.S' differs from latest version at 'arch/x86/lib/memcpy_64.S'
    Warning: Kernel ABI header at 'tools/include/uapi/linux/mman.h' differs from latest version at 'include/uapi/linux/mman.h'
    Warning: Kernel ABI header at 'tools/include/uapi/linux/bpf.h' differs from latest version at 'include/uapi/linux/bpf.h'
    Warning: Kernel ABI header at 'tools/include/uapi/drm/i915_drm.h' differs from latest version at 'include/uapi/drm/i915_drm.h'
    Warning: Kernel ABI header at 'tools/arch/x86/include/asm/cpufeatures.h' differs from latest version at 'arch/x86/include/asm/cpufeatures.h'
    Warning: Kernel ABI header at 'tools/arch/x86/include/uapi/asm/kvm.h' differs from latest version at 'arch/x86/include/uapi/asm/kvm.h'
    Warning: Kernel ABI header at 'tools/arch/x86/lib/memcpy_64.S' differs from latest version at 'arch/x86/lib/memcpy_64.S'
    Warning: Kernel ABI header at 'tools/include/uapi/linux/mman.h' differs from latest version at 'include/uapi/linux/mman.h'
    Warning: Kernel ABI header at 'tools/include/uapi/linux/bpf.h' differs from latest version at 'include/uapi/linux/bpf.h'
Copy link
Collaborator

@pmenzel pmenzel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo prefix in the last commit. Otherwise, this looks good.

The man pages can't be found:

    buczek@geniux:~$ perf help stat
    No manual entry for perf-stat

The reason is, that the files get installed into "/" instread if "/usr",
because upper case PREFIX seems to be ignored by the build system. So
the man-pages where installed on the distmaster into /share/man, which
is invalid and is not disted to other nodes.

    [BEE] make -j 12 install PREFIX=/usr EPREFIX=/usr BINDIR=/usr/bin SBINDIR=/usr/sbin LIBEXECDIR=/usr/libexec SYSCONFDIR=/etc SHAREDSTATEDIR=/var LOCALSTATEDIR=/var LIBDIR=/usr/lib
INCLUDEDIR=/usr/include DATAROOTDIR=/usr/share DATADIR=/usr/share INFODIR=/usr/share/info LOCALEDIR=/usr/share/locale MANDIR=/usr/share/man DOCDIR=/usr/share/doc/perf DESTDIR=/scr
atch/local/bee-buczek/perf/perf-5.6.14-0/image
    [...]
    -rwxr-xr-x root/root   1034256 2020-05-20 09:38 /lib/libperf-gtk.so
    drwxr-xr-x root/root         0 2020-05-20 09:38 /lib/traceevent/
    drwxr-xr-x root/root         0 2020-05-20 09:38 /lib/traceevent/plugins/
    -rwxr-xr-x root/root     18032 2020-05-20 09:38 /lib/traceevent/plugins/plugin_jbd2.so
    -rwxr-xr-x root/root     20328 2020-05-20 09:38 /lib/traceevent/plugins/plugin_hrtimer.so
    [...]

Supply lower-cased prefixed argument as well, which seems to be honored:

    [BEE] make -j 12 install PREFIX=/usr EPREFIX=/usr BINDIR=/usr/bin SBINDIR=/usr/sbin LIBEXECDIR=/usr/libexec SYSCONFDIR=/etc SHAREDSTATEDIR=/var LOCALSTATEDIR=/var LIBDIR=/usr/lib
INCLUDEDIR=/usr/include DATAROOTDIR=/usr/share DATADIR=/usr/share INFODIR=/usr/share/info LOCALEDIR=/usr/share/locale MANDIR=/usr/share/man DOCDIR=/usr/share/doc/perf DESTDIR=/scr
atch/local/bee-buczek/perf/perf-5.6.14-0/image prefix=/usr
    [...]
    drwxr-xr-x root/root         0 2020-05-20 09:58 /usr/lib/traceevent/
    drwxr-xr-x root/root         0 2020-05-20 09:58 /usr/lib/traceevent/plugins/
    -rwxr-xr-x root/root     18032 2020-05-20 09:58 /usr/lib/traceevent/plugins/plugin_jbd2.so
    -rwxr-xr-x root/root     20328 2020-05-20 09:58 /usr/lib/traceevent/plugins/plugin_hrtimer.so
    [...]

Because PREFIX is now honored, remove $D$PREFIX/lib/perf/examples
instead of $D/lib/perf/examples.
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants