Received: by 10.223.176.46 with SMTP id f43csp112337wra; Tue, 23 Jan 2018 17:12:11 -0800 (PST) X-Google-Smtp-Source: AH8x227FAc+5AcV7hpyqlu2VPnsCt7pbI7tWoqERoDClnzC6fTWlh6FBfHnyjGvGKy+x3XkL3ssH X-Received: by 2002:a17:902:9a8b:: with SMTP id w11-v6mr501764plp.118.1516756331653; Tue, 23 Jan 2018 17:12:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516756331; cv=none; d=google.com; s=arc-20160816; b=hoObI3iz0iwKqfeSSZbMyv4/SoxkJ8sHOHBHV/MQxMLRGqNfXSSoFKK5ADqCGKOBLx UQRWqUH166Lw824Ar2KrtISIvouHPA0L/VxsVQSHJiE7dLy+LM6aSS9KHpaKa2DBdqSQ 6bXwL0c9W7301UHvUSWifpBn36dKDV9oX44qBmo6WIlNMQ67QE1EF/y9SdU+qyJ0Qm1e 97N5x6CfaPPQmGCJ6OLpiE2M7LQYuT2RFdG+eJnnwi3m7w9slpp0yoXe0aCaT6MqPvsX ReNXUa0EQfuYnLmCs1/I6AUQ2FxD+kjZ1/i5GABcXcGrn+QG1t02s0xAKtBPvpWIh0ce LPOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:to:subject :arc-authentication-results; bh=aF8hWInHh/g9Z0F0Tmor4Vo4a+KKrWq5rzSvt2WTDjA=; b=pPML/0pyN59XGSCrxDE0ptycYMHeuXW4vfrukmiTGiK8J94LBJfStPqTjjiSbNCz0z HUKI2aQMhvvLQoLtlA0Zdc++F9NguA0cVd49MVVYiNXWF5C3oS6SQeWzSjPhCgBrXm5C 6/ErJG8R5zWNWnxCMZHRONcu3KyRArhxLayRPx0mQwYGuF6JI33xX5/SW9A5UsAmvrZu DseA7c6d559EPDNkvj7AyRf1Wl09KZPb0zWcKQPQkbUYs46msW9003r2JbMlaEpac5rB ABdGDdXQfTa85Vt4PoBL9wXdoMquR5xn376J0dgBHIVTKnk4dZsTfn+D6UP3AVk1gCbA 5+AA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c14si2029247pfj.132.2018.01.23.17.11.55; Tue, 23 Jan 2018 17:12:11 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932479AbeAXBLb (ORCPT + 99 others); Tue, 23 Jan 2018 20:11:31 -0500 Received: from szxga07-in.huawei.com ([45.249.212.35]:58348 "EHLO huawei.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S932098AbeAXBLa (ORCPT ); Tue, 23 Jan 2018 20:11:30 -0500 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 57D81C8B14A32; Wed, 24 Jan 2018 09:11:27 +0800 (CST) Received: from [127.0.0.1] (10.111.194.139) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.361.1; Wed, 24 Jan 2018 09:11:27 +0800 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: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.111.194.139] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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