From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Cyrus-Session-Id: sloti22d1t05-1211982-1517541934-2-14621887756100425850 X-Sieve: CMU Sieve 3.0 X-Spam-known-sender: no X-Spam-score: 0.0 X-Spam-hits: BAYES_00 -1.9, HEADER_FROM_DIFFERENT_DOMAINS 0.001, RCVD_IN_DNSWL_NONE -0.0001, LANGUAGES en, BAYES_USED global, SA_VERSION 3.4.0 X-Spam-source: IP='96.67.55.147', Host='shelob.surriel.com', Country='US', FromHeader='com', MailFrom='org', XOriginatingCountry='UNK' X-Spam-charsets: plain='us-ascii' X-Resolved-to: greg@kroah.com X-Delivered-to: greg@kroah.com X-Mail-from: kernelnewbies-bounces@kernelnewbies.org ARC-Seal: i=1; a=rsa-sha256; cv=none; d=messagingengine.com; s=arctest; t=1517541933; b=O33lIHehLT3z8OxZH/APY951+eTKtU8Jk3MasvoYsLbTHsX wk6nUUANk2CPoooKtIMVzDM5e8Gj1PSuZzJlovIgbvYcWkk8cPZs/UOuyhWi770T QJDoDUq8kIU+3O05mvOm1huh6BQwNTqPabrJrV/QFuJmMd+9fzrEMsFBfe2N365f I/+2+Joys0qj50za5pkJjkuf7pLpmrf7JO8WkyNOcXLG+KQwmpIC3du5gu1+mXHk b2Liu5ZRZ/sMvz10/THLhE0uyVlLnsNPzlOVz+WuTRVoEiL78IxMmuavoU2IbOJV bSdBrRqoiobUBQ+jsYWGO6kgUNfSJG9XmTYlenw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=subject:to:references:from:message-id :date:mime-version:in-reply-to:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe :content-transfer-encoding:content-type; s=arctest; t= 1517541933; bh=G8zm9BdgRoSMHeXqZbDWEYmxUrD5Pg49ZB7TpVsVcbo=; b=K 66X6BE606OwCxaba6U6+Q8v3Y1UpG+Ptfj8RShfX54dNoO/awJqGJj/270QBqKoc 6I7xp3Tr72Tkd+vXwy/a9Ktgdsh6r7U8G2//zXcp73dhsyrH+ONw0j1biUxZcZ0v Ki8+uCBXcurnzLKZQVr2s2W4PpIAQFA7DqemXdoEStM+QbldQe6V4K6H8i+3MzVp Urj6XgB9XH963etCAQcaIdnylJ5WFHKs2WEONreVgRmckUhJKoKSVMzo/YqiuESl tRj5bNDO1G4diB88xc+578iPg/J3+HioM6CryjtfcDJMgODNNVS9zlEPxZmoeB1i i2FcxmTGdaRlFJGdhncyg== ARC-Authentication-Results: i=1; mx2.messagingengine.com; arc=none (no signatures found); dkim=none (no signatures found); dmarc=none (p=none,has-list-id=yes,d=none) header.from=huawei.com; iprev=pass policy.iprev=96.67.55.147 (shelob.surriel.com); spf=permerror smtp.mailfrom=kernelnewbies-bounces@kernelnewbies.org smtp.helo=shelob.surriel.com; x-aligned-from=fail; x-ptr=pass x-ptr-helo=shelob.surriel.com x-ptr-lookup=shelob.surriel.com; x-return-mx=pass smtp.domain=kernelnewbies.org smtp.result=pass smtp_is_org_domain=yes header.domain=huawei.com header.result=pass header_is_org_domain=yes; x-tls=pass version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128 Authentication-Results: mx2.messagingengine.com; arc=none (no signatures found); dkim=none (no signatures found); dmarc=none (p=none,has-list-id=yes,d=none) header.from=huawei.com; iprev=pass policy.iprev=96.67.55.147 (shelob.surriel.com); spf=permerror smtp.mailfrom=kernelnewbies-bounces@kernelnewbies.org smtp.helo=shelob.surriel.com; x-aligned-from=fail; x-ptr=pass x-ptr-helo=shelob.surriel.com x-ptr-lookup=shelob.surriel.com; x-return-mx=pass smtp.domain=kernelnewbies.org smtp.result=pass smtp_is_org_domain=yes header.domain=huawei.com header.result=pass header_is_org_domain=yes; x-tls=pass version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128 Subject: Re: [tools/perf] perf test LLVM failure on 4.9 To: Pintu Kumar , , , , , , , , References: From: "Wangnan (F)" Message-ID: <6e70d220-6f79-38d6-68bb-a21a9bd89bc1@huawei.com> Date: Wed, 24 Jan 2018 09:09:51 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: X-Originating-IP: [10.111.194.139] X-CFilter-Loop: Reflected X-Mailman-Approved-At: Thu, 01 Feb 2018 22:23:39 -0500 X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: kernelnewbies-bounces@kernelnewbies.org X-getmail-retrieved-from-mailbox: INBOX X-Mailing-List: linux-kernel@vger.kernel.org List-ID: 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 _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies