From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752887AbeCUPip (ORCPT ); Wed, 21 Mar 2018 11:38:45 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:39630 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752864AbeCUPiK (ORCPT ); Wed, 21 Mar 2018 11:38:10 -0400 Date: Wed, 21 Mar 2018 16:38:07 +0100 From: Jiri Olsa To: "Jin, Yao" Cc: acme@kernel.org, jolsa@kernel.org, peterz@infradead.org, mingo@redhat.com, alexander.shishkin@linux.intel.com, Linux-kernel@vger.kernel.org, ak@linux.intel.com, kan.liang@intel.com, yao.jin@intel.com Subject: Re: [PATCH] perf util: Display warning when perf report/annotate is missing some libs Message-ID: <20180321153807.GA2707@krava> References: <1515668586-14327-1-git-send-email-yao.jin@linux.intel.com> <20180111153028.GB20406@krava> <42a90e87-f2fd-293d-bd25-591fcdff14e1@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <42a90e87-f2fd-293d-bd25-591fcdff14e1@linux.intel.com> User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 21, 2018 at 10:11:10AM +0800, Jin, Yao wrote: > Hi Jiri, > > I'm still thinking it's worth displaying the warning when perf missing some > libraries. > > Somebody just told me that perf didn't work well. While after some > investigations, I found it's just missing some libraries when building the > perf. > > But I have spent some time on getting the root cause. If with this patch, it > should be very easily to know that. true.. Arnaldo, any feedback on this one? > > I just think it'd better provide some hints to user. For example, > > "symbol is disabled and you need to install libelf/xxx", say something > > like that. > > > > But it looks the column can't contain too much information (i.e. no more > > space to contain the entire hints). > > > > Any idea? Or just add this warning in verbose mode? > > > > > also your change does not affect tui mode > > > > > > annotation for some reason does not start at all.. could be > > > little more verbose ;-) > > > > > > jirka > > > > > > > Yes, it doesn't affect tui mode. > > > > Or we just add this warning in verbose mode? > > > > e.g. perf report -v? how about displaying libraries separately with -vv output, that would mimic the build message, like: $ ./perf -vv perf version 4.16.rc6.g18fd48 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 ] and perf -vvv could display the 'make VF=1' info jirka