lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20180108171649.GD18380@krava>
Date:   Mon, 8 Jan 2018 18:16:49 +0100
From:   Jiri Olsa <jolsa@...hat.com>
To:     Arnaldo Carvalho de Melo <acme@...nel.org>
Cc:     Jiri Olsa <jolsa@...nel.org>,
        Peter Zijlstra <a.p.zijlstra@...llo.nl>,
        lkml <linux-kernel@...r.kernel.org>,
        Ingo Molnar <mingo@...nel.org>,
        Namhyung Kim <namhyung@...nel.org>,
        David Ahern <dsahern@...il.com>,
        Andi Kleen <ak@...ux.intel.com>,
        Alexander Shishkin <alexander.shishkin@...ux.intel.com>
Subject: Re: [PATCH 01/12] perf tools: Enable LIBBABELTRACE by default

On Mon, Jan 08, 2018 at 06:11:22PM +0100, Jiri Olsa wrote:
> On Mon, Jan 08, 2018 at 12:24:33PM -0300, Arnaldo Carvalho de Melo wrote:
> 
> SNIP
> 
> > 
> > Works:
> > 
> > [acme@...et perf]$ ldd ~/bin/perf | grep babel
> > 	libbabeltrace-ctf.so.1 => /lib64/libbabeltrace-ctf.so.1 (0x00007fcb688d0000)
> > 	libbabeltrace.so.1 => /lib64/libbabeltrace.so.1 (0x00007fcb67e92000)
> > [acme@...et perf]$ rpm -q libbabeltrace-devel
> > libbabeltrace-devel-1.5.3-1.fc27.x86_64
> > [acme@...et perf]$
> > 
> > But then, if we show:
> > 
> > Auto-detecting system features:
> > ...                         dwarf: [ on  ]
> > ...            dwarf_getlocations: [ on  ]
> > ...                         glibc: [ on  ]
> > ...                          gtk2: [ on  ]
> > ...                      libaudit: [ on  ]
> > ...                        libbfd: [ on  ]
> > ...                        libelf: [ on  ]
> > ...                       libnuma: [ on  ]
> > ...        numa_num_possible_cpus: [ on  ]
> > ...                       libperl: [ on  ]
> > ...                     libpython: [ on  ]
> > ...                      libslang: [ on  ]
> > ...                     libcrypto: [ on  ]
> > ...                     libunwind: [ on  ]
> > ...            libdw-dwarf-unwind: [ on  ]
> > ...                          zlib: [ on  ]
> > ...                          lzma: [ on  ]
> > ...                     get_cpuid: [ on  ]
> > ...                           bpf: [ on  ]
> > 
> > Shoudln't we tell the user that babeltrace was linked too?
> 
> the logic is just to simply display the state of features
> which we provide in FEATURE_DISPLAY variable, which is
> believed to be common and important enough to display
> status about
> 
> maybe we could display it with 'make VF=1' output?

like in patch attached ;-)

	[jolsa@...va perf]$ make VF=1
	  BUILD:   Doing 'make -j4' parallel build
	Warning: Kernel ABI header at 'tools/include/uapi/linux/perf_event.h' differs from latest version at 'include/uapi/linux/perf_event.h'

	Auto-detecting system features:
	...                         dwarf: [ on  ]
	...            dwarf_getlocations: [ on  ]
	...                         glibc: [ on  ]
	...                          gtk2: [ on  ]
	...                      libaudit: [ on  ]
	...                        libbfd: [ on  ]
	...                        libelf: [ on  ]
	...                       libnuma: [ on  ]
	...        numa_num_possible_cpus: [ on  ]
	...                       libperl: [ on  ]
	...                     libpython: [ on  ]
	...                      libslang: [ on  ]
	...                     libcrypto: [ on  ]
	...                     libunwind: [ OFF ]
	...            libdw-dwarf-unwind: [ on  ]
	...                          zlib: [ on  ]
	...                          lzma: [ on  ]
	...                     get_cpuid: [ on  ]
	...                           bpf: [ on  ]
	...                     backtrace: [ on  ]
	...                fortify-source: [ on  ]
	...         sync-compare-and-swap: [ on  ]
	...                  gtk2-infobar: [ on  ]
	...             libelf-getphdrnum: [ on  ]
	...           libelf-gelf_getnote: [ on  ]
	...          libelf-getshdrstrndx: [ on  ]
	...                   libelf-mmap: [ on  ]
	...             libpython-version: [ on  ]
	...                 libunwind-x86: [ OFF ]
	...              libunwind-x86_64: [ OFF ]
	...                 libunwind-arm: [ OFF ]
	...             libunwind-aarch64: [ OFF ]
	...   pthread-attr-setaffinity-np: [ on  ]
	...               pthread-barrier: [ on  ]
	...            stackprotector-all: [ on  ]
	...                       timerfd: [ on  ]
	...                  sched_getcpu: [ on  ]
	...                           sdt: [ on  ]
	...                         setns: [ on  ]

	Makefile.config:459: No libunwind found. Please install libunwind-dev[el] >= 1.1 and/or set LIBUNWIND_DIR
	...                        bionic: [ OFF ]
	...                    compile-32: [ on  ]
	...                   compile-x32: [ OFF ]
	...                cplus-demangle: [ on  ]
	...                         hello: [ OFF ]
	...                 libbabeltrace: [ on  ]
	...                       liberty: [ on  ]
	...                     liberty-z: [ on  ]
	...         libunwind-debug-frame: [ OFF ]
	...     libunwind-debug-frame-arm: [ OFF ]
	... libunwind-debug-frame-aarch64: [ OFF ]
	...                        prefix: /home/jolsa
	...                        bindir: /home/jolsa/bin
	...                        libdir: /home/jolsa/lib64
	...                    sysconfdir: /home/jolsa/etc
	...                 LIBUNWIND_DIR: 
	...                     LIBDW_DIR: 
	...                          JDIR: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.151-1.b12.fc26.x86_64
	...     DWARF post unwind library: libdw


jirka

---
diff --git a/tools/perf/Makefile.config b/tools/perf/Makefile.config
index 12dec6ea5ed2..92265b32dddd 100644
--- a/tools/perf/Makefile.config
+++ b/tools/perf/Makefile.config
@@ -947,6 +947,10 @@ define print_var_code
 endef
 
 ifeq ($(VF),1)
+  # Display EXTRA features which are detected manualy
+  # from here with feature_check call and thus cannot
+  # be partof global state output.
+  $(foreach feat,$(FEATURE_TESTS_EXTRA),$(call feature_print_status,$(feat),))
   $(call print_var,prefix)
   $(call print_var,bindir)
   $(call print_var,libdir)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ