Received: by 10.223.176.46 with SMTP id f43csp848764wra; Wed, 24 Jan 2018 06:54:07 -0800 (PST) X-Google-Smtp-Source: AH8x225fISn/XUZcQMOFvYlNyWurR2TcWUE+PIp1ARf/LHjRf6yps9lMke42YZIujKkrJdjd+RHW X-Received: by 2002:a17:902:7244:: with SMTP id c4-v6mr8814040pll.414.1516805647381; Wed, 24 Jan 2018 06:54:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516805647; cv=none; d=google.com; s=arc-20160816; b=HG2w41rZgeoI0N34qLzwAyWliQjvXrOcnJa5v89r5RKTgKZ4+d4OGAS8Jci3mDlxMK Nn0M4hwcnKYMIqox5v0gstuWbjXA5usB9jcAdvN+PO7mVP3gURfU53MzG3TAYRHnEZyh 1VuPvDOeI3kGco7OPHabhppY936XsxXf20SH9bLZbEXXZQ1bSXVZ7R8QwOH59ryNfcEk flQK2fvquFjy1Xa5zhXB3OqgNSSrqoq3R2OW21X4lAcSULyhHXAihXd/vh7RS/JW7R+M Wub6B2FNLJOGUkMt5KSHez8+Rqze97zH1Dq5fJOJS20LHXGK3pAG7JCYf8RmAbju/DtJ qjNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=xbDIxrf2b+oUzpFMdSbzNdKcMSSuhSi68TtTWjbStiA=; b=F6QsqRG+/P+Sc4kvyt2r5wJufADl0erOHQyhc5JAknvzp2S32U36F9Ofjj9ZRjH4Zq FCflXtF+F8uetHA4gPNSlzYJJweuWEdkgHiPsSALiuthZbiwGTVfnQYqy1TDAsnpGTq0 vgSpiZFDsV6jzZIUDdFR1wYobe0Bo6zXDQ4Kpx49MHQP6NFktgVtfYkQmqBvX7Qhik0I bvsSB+qxbrzYID2VIvM5yhGyT+hVLdnUDVQpMZPNqIcnKNC3xtdK/k/9UNNe6XX9f2HJ JsbhzjvakEDUweTxEILk1nWfqxo8jVScNHFaPltY89zNvYMyu59yEzaeWbE9TCP9Hqpt MQfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=oXYhn4sr; 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=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m184si3006175pfb.373.2018.01.24.06.53.53; Wed, 24 Jan 2018 06:54:07 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=oXYhn4sr; 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=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934061AbeAXOxI (ORCPT + 99 others); Wed, 24 Jan 2018 09:53:08 -0500 Received: from mail-ua0-f193.google.com ([209.85.217.193]:44295 "EHLO mail-ua0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933763AbeAXOxG (ORCPT ); Wed, 24 Jan 2018 09:53:06 -0500 Received: by mail-ua0-f193.google.com with SMTP id x4so2843010uaj.11 for ; Wed, 24 Jan 2018 06:53:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=xbDIxrf2b+oUzpFMdSbzNdKcMSSuhSi68TtTWjbStiA=; b=oXYhn4srLD1tfePBP75FSmorSbqqiGRX8Sv4f+8iCH8b98RzCwqJqh9OcEl58Y5QBI kvikiMyIEErE4a+IO+K7VdROpKT6Vi+JuS7AGqhOxTghqbdos5i2vDKAIkDCCtql6Ynd ABWwiYA2w3bnqSZciusi0RFbuRgxigPYF8eCWPKoisBw0yI4vETSprTXx222RU5HjOEx jeb7amir5LICi2k4MxFFJfB2PXeZCzxHEEQ05ytMOaNvaYoh3SgLD9cr8rH7coRUBV4d 6u7/ch56d5SOdkEbOEuteudDAvzWFVAy57jzLZlRT3jnxquLkCoASzSTA0ihqdgwXjBd VAaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=xbDIxrf2b+oUzpFMdSbzNdKcMSSuhSi68TtTWjbStiA=; b=CMCd4x3eF90ITZmHOdnNOAu3i56Wrv54NApVrLIxdtss+wzLtaN7rlNxjPhNLkhsk/ CZp0l/qzEOsTCc80oK23UrhQFnqUHpcbZPmkNcOmlHLWe3Hc2n+i7q2s68svZGZck0bu KG51is5zuDC8nwmnI2DLRahh5FffLDUpRP3rYSyDRbTInFl3KT075lYOSJY4h60XKBKY y120BOMtimMkLuoMaRpQL8hXe62DkXd0Dsc2OibQRf6CHLs+QR4x7AGMxOXIUrfz6fdJ 74mso8JoB6AKUE5lMTD99UrzUy86TTsR4phJqm3gijyqPDQuAS2hNzXyJmABt+WqI1So fxvQ== X-Gm-Message-State: AKwxytdhuVhOjlwc6HjTY7boIsD70Sm68TZjnE2Lcl/Ncp6yqkixmzzA rSD4n9K4zZg2ufUx3D1l8W541IvCQBfhPSXAMeU= X-Received: by 10.176.112.164 with SMTP id q4mr4716587ual.105.1516805585423; Wed, 24 Jan 2018 06:53:05 -0800 (PST) MIME-Version: 1.0 Received: by 10.103.85.216 with HTTP; Wed, 24 Jan 2018 06:53:05 -0800 (PST) In-Reply-To: <6e70d220-6f79-38d6-68bb-a21a9bd89bc1@huawei.com> References: <6e70d220-6f79-38d6-68bb-a21a9bd89bc1@huawei.com> From: Pintu Kumar Date: Wed, 24 Jan 2018 20:23:05 +0530 Message-ID: Subject: Re: [tools/perf] perf test LLVM failure on 4.9 To: "Wangnan (F)" , Pintu Kumar Cc: linux-kernel@vger.kernel.org, kernelnewbies@kernelnewbies.org, quentin.monnet@netronome.com, daniel@iogearbox.net, davem@davemloft.net, acme@redhat.com, alexander.shishkin@linux.intel.com, mingo@redhat.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Thanks for your help. Yes it was a sub version issue. Earlier, while building the kernel I left the SUBLEVEL as blank. make -j8 bindeb-pkg SUBLEVEL=20 After passing the correct sublevel now the test is working. But still following are failing: 16: Try 'import perf' in python, checking link problems : FAILED! 37.2: Test BPF prologue generation : FAILED! This is the error I get: 16: Try 'import perf' in python, checking link problems : --- start --- test child forked, pid 7637 Traceback (most recent call last): File "", line 1, in ImportError: No module named perf test child finished with -1 ---- end ---- Try 'import perf' in python, checking link problems: FAILED! Looking at the vmlinux_path (8 entries long) symsrc__init: cannot get elf header. Failed to find the path for kernel: Invalid ELF file bpf_probe: failed to convert perf probe eventsFailed to add events selected by BPF test child finished with -1 ---- end ---- Test BPF filter subtest 1: FAILED! Thanks, Pintu On Wed, Jan 24, 2018 at 6:39 AM, Wangnan (F) wrote: > > > On 2018/1/23 20:37, Pintu Kumar wrote: >> >> 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. >> >> 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 > > > 'perf test LLVM' requires a well formed uname string (%d.%d.%d). Please see > tools/perf/fetch_kernel_version . If your distro uses another method to > report > kernel version number (from your uname string, sublevel can't be > determined), > please help us improve that function like what we have done for ubuntu > (checking /proc/version_signature). > > > >> 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 > > >