Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp41689rwb; Mon, 26 Sep 2022 14:26:06 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7ElRa6Gwokp8WEDojKgG2zWR9Db+jMmdQQDP3MtY2/CCT8bSgBIkbMBEb1fN6nT1xN/P6v X-Received: by 2002:a17:907:70c:b0:740:33f3:cbab with SMTP id xb12-20020a170907070c00b0074033f3cbabmr19863809ejb.600.1664227566481; Mon, 26 Sep 2022 14:26:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664227566; cv=none; d=google.com; s=arc-20160816; b=pkgiClZ1hyXhCc1kz5YjsZOe8VCSWfcZzvn9uAmzvF/ZBH7XnRHSgVHLnrIve2OICy ie2g2Fr2rwTsa078DgJrfx8/1sEw6pvRcvht2PfrZuHGtndLCu8IkB+0SkAt09n7yEho bbt4BFPfagwKuPxTAZzpr49boCCMzwnjt7X+NA16Xh98oAk0vWNgQc+j9Q1T5mXpNSdX pBPbXKQSTDSdpjgdAXjbP4jZL31R2NLvy1UelmlAgPHY7hx5A8rRB63es3vFEYbLhCMN L6+XGK9YUAm4soYEGq56PCWbCfhq62O3U7vPwqiGrM0Y/jwkHFQyWVvpWCqU5+WxzciA kr1A== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=0p1LIyJ96T3TC887fQG/l71FDmiKtTWM0jora1YLIcQ=; b=eEM7UTeCEu6uQv6Igmau1DhKJzURpKGtrtE89gN0AkeCqqtVt8lahBNU0TvUd6j05I DkWoZMGAlzzhjvNs9zEKAp3y+QdHJzek0TowgJXKELIp5/hBzVYmJK47Vqw61+UGUenJ hFvzlagqvdv+X66yneq/VxeHOGMSDiKpXsgZeNlObOS3/zFr8Ywzmtbml6O43PFtiItX y4R9Xav4FX3H8SIx94vTPTIiCcPlAsQNuFXaCUYk8l8jOj/V/1zry96OwzpFMUkjm7F3 8dZXPc0Z630HddCrDNSOr24Hue0OLjozNddKF8dhxD/5k0Uj3BhKQW8h69ZEg5CfF+Y3 E55Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pRmVat7J; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id he35-20020a1709073da300b0076fd1d815bcsi1182046ejc.748.2022.09.26.14.25.41; Mon, 26 Sep 2022 14:26:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pRmVat7J; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230273AbiIZT4p (ORCPT + 99 others); Mon, 26 Sep 2022 15:56:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44902 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230257AbiIZT4l (ORCPT ); Mon, 26 Sep 2022 15:56:41 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 444226F266; Mon, 26 Sep 2022 12:56:40 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B94E561155; Mon, 26 Sep 2022 19:56:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 05777C433D6; Mon, 26 Sep 2022 19:56:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1664222199; bh=cVsd6K5MNCDnfJEvYpDydiEXtgAumOf06eArAUYgvmk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=pRmVat7JHOHqdX6cyq9py1+0JwpNtxb6XCfA1cZE/mVKxyVmufTvV0ih6Yh/GFdLs GgTm3MNonvH4BhdJ2KquZ/uOol199FOR4llDTxHMIbS6ALzHGgKmPm6esoK9uTxvx1 CvsyAIhzWN9uKcM09UnATa4aVihRNGatwV9QGtPc/ImTSwvTG/1z0g1KQPNsakBc88 pqMKdWvpZ0Rn9B9nU2uIRzPd/Oxsfvf5jh01fKlA90yhHPnBD1M7eN11smBKuAhPuo O3jxjMWrfUcBKzenPsCGPI0YGJETElGxaCXUt6hUugODcQa262jhL4YlHet+aVECto Svaj1s/+1A0BA== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 72780403B0; Mon, 26 Sep 2022 20:56:36 +0100 (IST) Date: Mon, 26 Sep 2022 20:56:36 +0100 From: Arnaldo Carvalho de Melo To: Leo Yan Cc: Jiri Olsa , Namhyung Kim , Ian Rogers , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org Subject: Re: [PATCH v3 0/2] perf test: Add test for java symbol Message-ID: References: <20220925025835.70364-1-leo.yan@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220925025835.70364-1-leo.yan@linaro.org> X-Url: http://acmel.wordpress.com X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Sun, Sep 25, 2022 at 10:58:33AM +0800, Leo Yan escreveu: > This patch set is to add a test for java symbol. > > To allow a shell script to know the installed lib path, we need to > export the environment variable "PREFIX" in the C code. We use the > first patch for this purpose. The second patch introduces the java > symbol testing. > > The test has been verified on x86_64 machine with perf/core branch with > the latest commit 62e64c9d2fd1 ("perf test: Add basic core_wide > expression test"). Thanks, applied locally. - Arnaldo > Changes from v2: > - Skipped test if jshell is not existed (Namhyung); > - Fixed a typo for s/if/elif/ (Namhyung). > > Changes from v1: > - Added Ian's suggested tag; > - Added the search folder for the system lib libperf-jvmti.so; > - Skip the test if fail to find jvmti lib. > > > Leo Yan (2): > perf subcmd: Set environment variable "PREFIX" > perf test: Introduce script for java symbol testing > > tools/lib/subcmd/exec-cmd.c | 3 + > tools/perf/tests/shell/test_java_symbol.sh | 75 ++++++++++++++++++++++ > 2 files changed, 78 insertions(+) > create mode 100755 tools/perf/tests/shell/test_java_symbol.sh > > -- > 2.34.1 -- - Arnaldo