Received: by 10.213.65.68 with SMTP id h4csp1017226imn; Wed, 4 Apr 2018 11:06:18 -0700 (PDT) X-Google-Smtp-Source: AIpwx49lPzgjrVK+9vH4aeFsW+nG3sr0hhBCOENrBumQ2kxIw5U8iTfAbkz531bsKoE3AfgGHQ3Y X-Received: by 10.101.81.204 with SMTP id i12mr9009399pgq.206.1522865178706; Wed, 04 Apr 2018 11:06:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522865178; cv=none; d=google.com; s=arc-20160816; b=rjFzqcaWBHYK4YZ6yOV4Ld6qFiir8Y4STKpuTIQt0zfFYlJvsND4SDLeBvyner+D4A hOJmng4G8lYqFdj3HwjFlj5TDQ0/axLgsQoImRKb0ASgkesNZeCm9ofYRdWcjXymv9JH RFmC4zbdQ1HuvNi92WQ10SdRM6y1HxZ7wVhww9GYQG/DXwut2fDdYU+SvSFNxRMgV3kN 2udYMJubm4EvjFMSTn7AXQuiz+CVALhacvpQq0+dlE4Hq2BXR9bxLD61AXoyfoQ+nBnQ cQEgn71l0JiwET0vPnDjVtSTCNBPlNeHrjAJfD31onwxKjSsjRfgLrHHANV6o1o74WAk ySKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:references:in-reply-to:date :subject:cc:to:from:arc-authentication-results; bh=zMWmlku8O9rFKtWH2pHrSkV2F+q9eGHgCJj5KrPBpsY=; b=SBC0zB6n4vHR4WPXiFW8VunoYyV9OPcMQNvTVxyyZdl8jOeFI3b0xYzWii0t9rWNRE lzEaejWQkhMNB4T3xN+fVmydikIypUU+Uhi8Jqo2SyjrI4sawA3cM8uMlkk5DP9wm1ka d8gk1sIeA6ilV5R/MHW5S8pEHE5TtSbUX9De0hFHtI3ZdXh/Elf9VSsrXlfJguRL6wfj O979q1mFBkoxfQAec0E919st7M9L4mSW2Be6F0HOwW2VYTBi0SScuUK11Z/pkFguPT6f RGssGk2ic1ErFLsufhYf8glVbDeRS46QitoKTHN3iOLu37Mkl5wquUUzSE3UpMeT4b4y 8Iyg== 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=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 71-v6si3824687pla.707.2018.04.04.11.06.04; Wed, 04 Apr 2018 11:06:18 -0700 (PDT) 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=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751415AbeDDSEc (ORCPT + 99 others); Wed, 4 Apr 2018 14:04:32 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:52054 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751213AbeDDSE3 (ORCPT ); Wed, 4 Apr 2018 14:04:29 -0400 Received: from pps.filterd (m0098419.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w34Hxx8I116391 for ; Wed, 4 Apr 2018 14:04:29 -0400 Received: from e06smtp14.uk.ibm.com (e06smtp14.uk.ibm.com [195.75.94.110]) by mx0b-001b2d01.pphosted.com with ESMTP id 2h53hr0ers-1 (version=TLSv1.2 cipher=AES256-SHA256 bits=256 verify=NOT) for ; Wed, 04 Apr 2018 14:04:28 -0400 Received: from localhost by e06smtp14.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 4 Apr 2018 19:04:27 +0100 Received: from b06cxnps3074.portsmouth.uk.ibm.com (9.149.109.194) by e06smtp14.uk.ibm.com (192.168.101.144) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Wed, 4 Apr 2018 19:04:25 +0100 Received: from d06av26.portsmouth.uk.ibm.com (d06av26.portsmouth.uk.ibm.com [9.149.105.62]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w34I4Psb1442282; Wed, 4 Apr 2018 18:04:25 GMT Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4ED8CAE053; Wed, 4 Apr 2018 18:54:30 +0100 (BST) Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 93383AE051; Wed, 4 Apr 2018 18:54:29 +0100 (BST) Received: from localhost.localdomain (unknown [9.40.193.84]) by d06av26.portsmouth.uk.ibm.com (Postfix) with ESMTP; Wed, 4 Apr 2018 18:54:29 +0100 (BST) From: Sandipan Das To: acme@kernel.org, jolsa@redhat.com Cc: linux-kernel@vger.kernel.org, naveen.n.rao@linux.vnet.ibm.com Subject: [PATCH 3/3] perf tests clang: Fix function name for clang IR test Date: Wed, 4 Apr 2018 23:34:19 +0530 X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180404180419.19056-1-sandipan@linux.vnet.ibm.com> References: <20180404180419.19056-1-sandipan@linux.vnet.ibm.com> X-TM-AS-GCONF: 00 x-cbid: 18040418-0044-0000-0000-000005437D37 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18040418-0045-0000-0000-00002883953F Message-Id: <20180404180419.19056-3-sandipan@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-04-04_05:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1804040180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As stated in tests/llvm-src-base.c, the name of the bpf function should be "bpf_func__SyS_epoll_pwait" but this clang test fails as it tries to lookup "bpf_func__SyS_epoll_wait". Before applying patch: 55: builtin clang support : 55.1: builtin clang compile C source to IR : FAILED! 55.2: builtin clang compile C source to ELF object : Skip After applying patch: 55: builtin clang support : 55.1: builtin clang compile C source to IR : Ok 55.2: builtin clang compile C source to ELF object : Ok Fixes: e67d52d411c3 ("perf clang: Update test case to use real BPF script") Signed-off-by: Sandipan Das --- tools/perf/util/c++/clang-test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/util/c++/clang-test.cpp b/tools/perf/util/c++/clang-test.cpp index a4014d786676..7b042a5ebc68 100644 --- a/tools/perf/util/c++/clang-test.cpp +++ b/tools/perf/util/c++/clang-test.cpp @@ -41,7 +41,7 @@ int test__clang_to_IR(void) if (!M) return -1; for (llvm::Function& F : *M) - if (F.getName() == "bpf_func__SyS_epoll_wait") + if (F.getName() == "bpf_func__SyS_epoll_pwait") return 0; return -1; } -- 2.14.3