Received: by 10.223.176.46 with SMTP id f43csp4159544wra; Tue, 23 Jan 2018 05:19:16 -0800 (PST) X-Google-Smtp-Source: AH8x225ksuzdmyI1qRaj76KDh7us1OtFr1jLcijyfEMfWkDv+8vIfvM4LYHU13cn2qgnQjvyV+sm X-Received: by 10.98.64.208 with SMTP id f77mr10343035pfd.157.1516713556627; Tue, 23 Jan 2018 05:19:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516713556; cv=none; d=google.com; s=arc-20160816; b=cAyo+dbbhUV2Vm0uCWT8rMTwdIqWNuTi8b+MfAfvs6j6juJlivVh3cOb8ufWtKr1bi 4XBsew/Dq0zPPNXmKtFmUiEgmOEBCTnoaMlkSbSWfk8b9tGLmz5RnGFzTlaMvcFj5Vyl OFmvo4ZdPP4rH9Xhc7lpv9pRM79j+WRCS/PJ0rnJxvQ1ix5UgJowzRzCRjIQobhdXxLZ 9abpBy+P8upcUelFrXdeGdjkhJIDK/+NW0E6QRbMkK25FFPzsB3luV+GVAsg5NxUnL0H fXfOt2kauhlGLY1ysXDuw8h6dTAr21bsdICMoIuvZrgIrwG7WPhmzMKW2+NKgeFpc9fZ FzUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=Nl+7uWjmID+9OgK8ZM9Ys1X3xQnOq1pjW931zD7kOIE=; b=FmpfF8RGht37BRg/kWO8EpWLLyfZfVWaAqLt0/yKUlOSmREsQpkeNnBt1zRJLzY139 sGIuMmg8aVKPsCky8pwG8rgcVoVOBV9PNxfjpvU5I6oH/+mlKpWPb72sPnf8CO1QBGf+ Sx/j92dvQTZNKIReCGGJBcXLGa4okCjOxCzlZL27twO2X9ProAT/JIdUEIwg2UMt/Mpz agXnLZytxS0rshgY1AHWHF/03aqBjrHQLvugowLilXeqZuu+9fCJIb1JEK899XexXe63 cdp8Qgj9YZBiFqXsMXFlm7mKzg8YootOsSHEaZWqLJ7RebjOIWzUht2glt64NAE2M5wh W+ig== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m2-v6si4813644pli.761.2018.01.23.05.19.02; Tue, 23 Jan 2018 05:19:16 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752579AbeAWNR1 (ORCPT + 99 others); Tue, 23 Jan 2018 08:17:27 -0500 Received: from mx1.redhat.com ([209.132.183.28]:49392 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752561AbeAWNRW (ORCPT ); Tue, 23 Jan 2018 08:17:22 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 06E5A5D688; Tue, 23 Jan 2018 13:17:22 +0000 (UTC) Received: from sandy.ghostprotocols.net (ovpn-64-2.rdu2.redhat.com [10.10.64.2]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 898F4798CF; Tue, 23 Jan 2018 13:17:21 +0000 (UTC) Received: by sandy.ghostprotocols.net (Postfix, from userid 1000) id 6E95F4360; Tue, 23 Jan 2018 11:17:19 -0200 (BRST) Date: Tue, 23 Jan 2018 11:17:19 -0200 From: Arnaldo Carvalho de Melo To: Wang Nan Cc: Pintu Kumar , linux-kernel@vger.kernel.org, kernelnewbies@kernelnewbies.org, quentin.monnet@netronome.com, daniel@iogearbox.net, davem@davemloft.net, wangnan0@huawei.com, alexander.shishkin@linux.intel.com, mingo@kernel.org, acme@kernel.org Subject: Re: [tools/perf] perf test LLVM failure on 4.9 Message-ID: <20180123131719.GA2211@redhat.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.5.20 (2009-12-10) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Tue, 23 Jan 2018 13:17:22 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Tue, Jan 23, 2018 at 06:07:25PM +0530, Pintu Kumar escreveu: > Hi All, > > I am verifying all perf tests on Ubuntu-16 x86-64 platform using the > kernel version 4.9.20. > I have installed several others packages including: clang, llvm > > But, when I run 'perf test' I get some FAILURE. > Specially, 'perf test LLVM' is failing. Wang, could you please take a look? I'll be traveling this week, so probably will not have time for trying to work on this. - Arnaldo > Please check the below error logs: > > ---------------------------------------------------- > # perf test LLVM > 35: Test LLVM searching and compiling : > 35.1: Basic BPF llvm compiling test : FAILED! > 35.2: Test kbuild searching : Skip > 35.3: Compile source for BPF prologue generation test : Skip > 35.4: Compile source for BPF relocation test : Skip > ---------------------------------------------------- > > When I run with -v I get this: > > ----------------------------------------------------- > # perf test -v LLVM > 35: Test LLVM searching and compiling : > 35.1: Basic BPF llvm compiling test : > --- start --- > test child forked, pid 3304 > Unablt to get kernel version from uname '4.9-xxxx-amd-x86-64' > WARNING: unable to get correct kernel building directory. > Hint: Set correct kbuild directory using 'kbuild-dir' option in [llvm] > section of ~/.perfconfig or set it to "" to suppress kbuild > detection. > > Unablt to get kernel version from uname '4.9-xxxx-amd-x86-64' > > > int _version SEC("version") = LINUX_VERSION_CODE; > ' | $CLANG_EXEC -D__KERNEL__ -D__NR_CPUS__=$NR_CPUS > -DLINUX_VERSION_CODE=$LINUX_VERSION_CODE $CLANG_OPTIONS > $KERNEL_INC_OPTIONS -Wno-unused-value -Wno-pointer-sign > -working-directory $WORKING_DIR -c "$CLANG_SOURCE" -target bpf -O2 -o > - > libbpf: 2129190-4a0 doesn't provide kernel version > Failed to parse test case 'Basic BPF llvm compiling test' > test child finished with -1 > ---- end ---- > Test LLVM searching and compiling subtest 0: FAILED! > ----------------------------------------------------- > > > Basic BPF LLVM compiling test is failing. > It reports that bpf could not able to read the kernel version from uname. > Is it because of this that 'perf test LLVM' is failing ? > > My uname says: > 4.9-xxxx-amd-x86-64 > > My kernel version is: 4.9.20 (from Makefile) > > So, I dont think there is any problem with kernel version. > > If any body have come across this problem please let me know how to > resolve this issue. > > > > Thank You! > > Regards, > Pintu