Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4125906rdb; Thu, 14 Sep 2023 12:32:28 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHvApmCZBgb+GeNlZYR044Qh2Xe2zsM4Yq7XEqU5D6EJkowAQR/TXfTxBy2/d0/44yC8m2C X-Received: by 2002:aa7:9535:0:b0:68f:be13:6c16 with SMTP id c21-20020aa79535000000b0068fbe136c16mr6853852pfp.2.1694719947675; Thu, 14 Sep 2023 12:32:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694719947; cv=none; d=google.com; s=arc-20160816; b=DFmdCv3OXoZInwD0CG5l30eyohXD2NmKp/yRzYdFY5URiDi6VNIFMuD/i4Iws3wsGW Q03Km6PC/LsMgZbL4u0NzlBNMTVIuBss5YMvK71aeIDiLJTQvsOULOWHct8ST52x32mw ElLXgWD4bFNNRd1AENo2Fh3cVkAxd+DGRXkoCFGnCtqNHNSjXfEzTmEWjmIbhZLyUrj8 C7u4ALf8qGPXqgdMImlTWrGQZ6cKo9w9qfodJI+tVt0Fiu+NFidc89W9V3ash3/eRD0C 18vkXrunHNjM/1NxuYRL0+6eGIqbziyD2BVSktjiUTTUkEI7RQgMoOQ4iOSsmaDNLBwc 7CVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=FZnZg6gWoWy1jLYwU44VIs9tT6pXXAg6VPZhyPwDgZ0=; fh=ChcZeWMtvzKr5K7elZ3Jj1lqydbrLvlPf4tlzsrBo2o=; b=SIn9+pwvSqkcG3tdXBiZeAPYkhWyySVausjbIZdwgfD9C65nWCGqpOMNLIt00BFC0U IvxT1Ahk8r82qfsHZ9oicfqQw2vqOXbVxTPe1r4pvW6bvYLg3zo5jqLit/ynGn0vFdyt lAQ+3maLAZbS2Chf0IY32v0eHw2aZMwKnWDdnN2UUnIV58H4p4FtyO7/iv7RS4apNPG0 dDuHUHAWyzWzBYbdOQ7Uz46czYc84Ogk16f7VOZfH+zEHuN3ZYQSFoY6cZHhMZV3cHjQ xgxwqo64XSKO7PJFB0kGN/EUTy7o8C75AAj2V7VF2LVfwvPHXWqgDxSpBqpHTSEqZvz1 GQxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=rZUgcCk8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id m5-20020a056a00080500b0068bda9121ecsi2175346pfk.72.2023.09.14.12.32.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 12:32:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=rZUgcCk8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id E474F801E137; Mon, 11 Sep 2023 22:46:30 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229553AbjILFqa (ORCPT + 99 others); Tue, 12 Sep 2023 01:46:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229489AbjILFq3 (ORCPT ); Tue, 12 Sep 2023 01:46:29 -0400 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 55A63E6F; Mon, 11 Sep 2023 22:46:25 -0700 (PDT) Received: from pps.filterd (m0360083.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 38C4kuO9011491; Tue, 12 Sep 2023 05:46:23 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : content-transfer-encoding : in-reply-to; s=pp1; bh=FZnZg6gWoWy1jLYwU44VIs9tT6pXXAg6VPZhyPwDgZ0=; b=rZUgcCk8Jj30YSSMenAM7MTQbiAf3lNUBLrd3H1s0yfEW7ndzORVrd215yoJ/AsB7uBo EQhSoFWOxsYVxjU/yvvscp/NX+4yEXmw3WF4rZLZcpr2ffze9bN4PzqXUfQmTqkg5moB rLn2p1PH+wcNkTBNqZqWuHbDGuvDaVY3YXKsPyVndDtOJZrxLMA1uQoUrX9X2vyxvEpT 92aWQxeB0CmVL+yxR3vse7l6cUUvwofF2+HwRMCCsWAo9gSc0TkE0HubK8DEiCJHWZ0t 6acns8oUYRu4yCNBve7an8K/agB4gG5IV1d7UbxeHuk865iow/m7UCbnzG3vaPzEZG9s fA== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3t2h8xsjnq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 12 Sep 2023 05:46:22 +0000 Received: from m0360083.ppops.net (m0360083.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 38C5jSr2029981; Tue, 12 Sep 2023 05:46:22 GMT Received: from ppma12.dal12v.mail.ibm.com (dc.9e.1632.ip4.static.sl-reverse.com [50.22.158.220]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3t2h8xsjkw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 12 Sep 2023 05:46:22 +0000 Received: from pps.filterd (ppma12.dal12v.mail.ibm.com [127.0.0.1]) by ppma12.dal12v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 38C4t6fQ024034; Tue, 12 Sep 2023 05:46:16 GMT Received: from smtprelay03.fra02v.mail.ibm.com ([9.218.2.224]) by ppma12.dal12v.mail.ibm.com (PPS) with ESMTPS id 3t131t0xvf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 12 Sep 2023 05:46:16 +0000 Received: from smtpav04.fra02v.mail.ibm.com (smtpav04.fra02v.mail.ibm.com [10.20.54.103]) by smtprelay03.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 38C5kDdc20972264 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 12 Sep 2023 05:46:13 GMT Received: from smtpav04.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B37CD20043; Tue, 12 Sep 2023 05:46:13 +0000 (GMT) Received: from smtpav04.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id EDE9820040; Tue, 12 Sep 2023 05:46:11 +0000 (GMT) Received: from li-3c92a0cc-27cf-11b2-a85c-b804d9ca68fa.ibm.com (unknown [9.109.199.72]) by smtpav04.fra02v.mail.ibm.com (Postfix) with ESMTPS; Tue, 12 Sep 2023 05:46:11 +0000 (GMT) Date: Tue, 12 Sep 2023 11:16:09 +0530 From: Aditya Gupta To: Namhyung Kim Cc: acme@kernel.org, jolsa@kernel.org, irogers@google.com, linux-perf-users@vger.kernel.org, maddy@linux.ibm.com, atrajeev@linux.vnet.ibm.com, kjain@linux.ibm.com, disgoel@linux.vnet.ibm.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/4] perf tests task_analyzer: use perf check for libtraceevent support Message-ID: References: <20230903114721.190733-1-adityag@linux.ibm.com> <20230903114721.190733-4-adityag@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: avwWKvYsEwCx3G5wP8rb4-Le-9xMRaq6 X-Proofpoint-GUID: Nv_tR2yjRiK0D4JMh4-puUSidKbIlL-l X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.957,Hydra:6.0.601,FMLib:17.11.176.26 definitions=2023-09-12_03,2023-09-05_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 mlxscore=0 bulkscore=0 clxscore=1015 impostorscore=0 phishscore=0 suspectscore=0 priorityscore=1501 adultscore=0 malwarescore=0 lowpriorityscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2308100000 definitions=main-2309120046 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Mon, 11 Sep 2023 22:46:31 -0700 (PDT) Hi Namhyung, Sorry for the late reply. On Thu, Sep 07, 2023 at 02:32:22PM -0700, Namhyung Kim wrote: > On Sun, Sep 3, 2023 at 4:47 AM Aditya Gupta wrote: > > > > Currently we use output of 'perf version --build-options', to check whether > > perf was built with libtraceevent support. > > > > Instead, use 'perf check --feature libtraceevent' to check for > > libtraceevent support. > > > > Signed-off-by: Aditya Gupta > > --- > > tools/perf/tests/shell/test_task_analyzer.sh | 4 ++-- > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > diff --git a/tools/perf/tests/shell/test_task_analyzer.sh b/tools/perf/tests/shell/test_task_analyzer.sh > > index 92d15154ba79..8fbc33c95025 100755 > > --- a/tools/perf/tests/shell/test_task_analyzer.sh > > +++ b/tools/perf/tests/shell/test_task_analyzer.sh > > @@ -52,8 +52,8 @@ find_str_or_fail() { > > > > # check if perf is compiled with libtraceevent support > > skip_no_probe_record_support() { > > - perf version --build-options | grep -q " OFF .* HAVE_LIBTRACEEVENT" && return 2 > > - return 0 > > + perf check --feature libtraceevent >/dev/null && return 0 > > Maybe we can add -q/--quiet option to silent messages. Nice idea, thanks. Will do so. Thanks - Aditya Gupta