Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2966686rwb; Sat, 24 Sep 2022 20:01:33 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5usmrpyi4EJa3t5G4iPBhCc/1rbkOCnJGXnsfbMlovJ6SVSxoVeyXoKBTJg+r5XwvQLxv8 X-Received: by 2002:a05:6402:3213:b0:453:4426:a97b with SMTP id g19-20020a056402321300b004534426a97bmr15723259eda.8.1664074893612; Sat, 24 Sep 2022 20:01:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664074893; cv=none; d=google.com; s=arc-20160816; b=X385XFcFc5TFq9uWoVtPOHHhvYNUuMyTSfaGryomCJXIlwYG+4uJUqo2rSBdFb3vLz Zucfm0trD75r12IXvwCgC/Mcd7om2wvcGzo8nk8pEf2WLEvsXAqAxeOj3oTKT59vp5yp ZL+2NLzgIytUk9yY3nB5hsqAyhRn+5puR/hYvYll5Lovnev2klHrUuKgHcHrGFnfuAYr vO0+UOo7OmbukZQ9VpihAlW09sudNdTh7X4EHpmuIbdxXHLCfzYEUkaAFqmaxn2wNFH6 ev4HFpYw65aswa6FaXZel9tohDe4DQqNcO2Ak8Vkp1fWF53kdrOAsgvlo//OunjNM0Ix PRHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Ze7hH0t/gP8ZC1eQRaIjQjlxIkny84c949uR2bepf6Y=; b=EdpvbwOCokWrQtsHlD3ecxgY3VmICGE5fAklDysowjOeMC7rznbZ8fn5pJe6O2vaFP OiYXJVsIG2Ark8Z3/2Q2GfvbPfXAdCeztdzxOup2wosScG8VF7hcfiUSKrxfsp5/auyu aXNLHkXwuVpSs+nZJDPyroh/doDewygREj0xEH9u5+kBAl7OY07fiP3kdSD1rBUZy3JK fAxjok+DoVz8rBDxH5ZeU9YQRk3zF3IFjPMAyadssGFISm5g9gG210LcoLGuzLMjaO8E dYIot7uP8QwdHIyuFX1sbk7HjAtadPD/C/8JpdE7IN9f1GKeNXdQ8QjoOvQ425Zgd1Cu rD0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=I+GAiJ3G; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q10-20020a056402518a00b00448375a5890si13870230edd.393.2022.09.24.20.00.51; Sat, 24 Sep 2022 20:01:33 -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=@linaro.org header.s=google header.b=I+GAiJ3G; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229548AbiIYC7K (ORCPT + 99 others); Sat, 24 Sep 2022 22:59:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229483AbiIYC7H (ORCPT ); Sat, 24 Sep 2022 22:59:07 -0400 Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3A5F43626 for ; Sat, 24 Sep 2022 19:59:06 -0700 (PDT) Received: by mail-pl1-x636.google.com with SMTP id d24so3434389pls.4 for ; Sat, 24 Sep 2022 19:59:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date; bh=Ze7hH0t/gP8ZC1eQRaIjQjlxIkny84c949uR2bepf6Y=; b=I+GAiJ3GEm892A4gkHivtoHbaBsitppjp5S+laoBM5oYh92ca+ySFXXUofK1b2967F TpZ8Vvdk7T9NHrbSYIGGFzbuPl1/teQMEzSovZtzxb7RcgaJBxX+R2t2fF1KbUkZeVVq VfHFvgg18C78jQqH/AgLyS8evjDnvGJ5MQSugM045QVISD99/Cs3Lq2vCwis+cSNpCAo I32LQOJBHk35Fo3F27waGuJ6os22Ok2aPIK1CyHuM1ihfnyJ5fXSenjNJx0EQxBbgn7T eOOI420Gmc6A/JCXWO7DLZkQRpdYaTCM0Jr4jqetk+R9FbGzJYORpXLIwS6uvzfSFO8e Uuyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date; bh=Ze7hH0t/gP8ZC1eQRaIjQjlxIkny84c949uR2bepf6Y=; b=DcrnOserz8dttvgbCjX+oL3fNugMbyL052FoaP9/Ab1x4Lud4Ezdqf8gIHYGKOvg/W uGXtOUghCRjL57H9HnZ3LLZmvOlvLu2MX5ccwgnvaP9P+SO/e/9iy+UB0BbIrOWit++O RduQM5VRXQrsxTgsGeuVG+g7WXLq+ZlPS3OgpUZDs/9FgMi6MUNElRge8qxKJUCAeYqj Qb2wfo7yh91Q5GcBntcDniGSpImn8hFPqvmXH9mBNgMUy7sxsleI5tX2ULliZfwuOvNO Q/yMsWP/bikBJgy4/WL9zTw3z+hQtDqdILxntyt/lzhlOWLtgNzcg9XhJw/R0mh5EaGw DOFA== X-Gm-Message-State: ACrzQf2Voc7X38yKz3qjoSmlmziyIDYSp4uuUHldN8nMLprFLqIXTyu7 HBgzdS2o8OmYrKoTQ1DKNCTQ4A== X-Received: by 2002:a17:90b:1c82:b0:1ee:eb41:b141 with SMTP id oo2-20020a17090b1c8200b001eeeb41b141mr18366231pjb.143.1664074746462; Sat, 24 Sep 2022 19:59:06 -0700 (PDT) Received: from leoy-huanghe.lan ([137.184.34.254]) by smtp.gmail.com with ESMTPSA id z11-20020a170903018b00b0016bf5557690sm8409198plg.4.2022.09.24.19.59.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Sep 2022 19:59:05 -0700 (PDT) From: Leo Yan To: Arnaldo Carvalho de Melo , 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 Cc: Leo Yan Subject: [PATCH v3 0/2] perf test: Add test for java symbol Date: Sun, 25 Sep 2022 10:58:33 +0800 Message-Id: <20220925025835.70364-1-leo.yan@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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 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"). 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