Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 975B1C54EE9 for ; Wed, 21 Sep 2022 01:33:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231129AbiIUBdm (ORCPT ); Tue, 20 Sep 2022 21:33:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231445AbiIUBdl (ORCPT ); Tue, 20 Sep 2022 21:33:41 -0400 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 46F176B17E for ; Tue, 20 Sep 2022 18:33:40 -0700 (PDT) Received: by mail-ed1-x532.google.com with SMTP id z13so6387903edb.13 for ; Tue, 20 Sep 2022 18:33:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date; bh=8mlxxabtfKsHhMFozr251XdLHRx1F56JdRqCnZFhvTQ=; b=fXXKk5QlrVa6+lOdpJZ5s1kpNDwozLlk6Vb9Du7pwtM+NGL1F8gATbz68CW5jQdOvx VKoN9f+gGQqgQabODV4Vmev+t0bBwGBd+Gh0Dxu/vuw3p5fFzLwKTAZpB+iEsWRbdJe4 v05uxZP4k6ZZd22R1YGgeMNOHQ3MF87ZtC8ZhSTiNrv/3Zyqv5eMTZh0klxIRn7xBM9k XE90n6/HGzqF3YFmY/bQN2VZHmvNRlPJZh/kyRV4LF6ljOU3Fb8/p6E3tnUSpAUtszqm 2Itcdfma5cAHpMjPT5/FDdwxyzNZLiy00Ge05UJ0QDv7hebZr+WxnTtR9DVlEE0yic8X bWxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date; bh=8mlxxabtfKsHhMFozr251XdLHRx1F56JdRqCnZFhvTQ=; b=t9p4OIjHJq7K0j/e8tYiAi0UPa3Ytve0UftnAkChiwsIL7G0X5i0A/5CBJgyiYdtBU qLFtQujy6tPATyvLk4RdlIpPJZ6DC/0dAJ7E0SpiKCe/NOG9incPBvDcwDH0x0jld9ZB avYW2pzfyhBpetBIdY8VNnWsQn+nlcHy221QzOPFqs3Klat5LDk4e4/GV1/cmbfmzPrD IecReDqkwnWN2lon261vP+oc9eHpftCn64G91RF4YY4kXD6qkNyUaoMDaR4X48QvmKR0 SALsjAeTOl2hluj1AvertAYlkJXj960p/gBazBWwgY9Cv25G4hKVQ9VyOCXYiDODjR/F sq9A== X-Gm-Message-State: ACrzQf2ks5ee9Q04NsAs4+axyHBlT5Chs1WaW9uAc5bergHx9Gfdk+dp wZgaweP/sJVI3Wfx5fc/1g4PTsuvFCk9rI68kyc= X-Google-Smtp-Source: AMsMyM4+AvKCRw/Ms46OQuuD/TNyAf1Wo1WG2BkKT0XGivbTdoE2Nt1NIovxjPRhaozmTd91g7zAEA== X-Received: by 2002:a05:6402:1849:b0:453:ba03:9e41 with SMTP id v9-20020a056402184900b00453ba039e41mr15287552edy.202.1663724018796; Tue, 20 Sep 2022 18:33:38 -0700 (PDT) Received: from leoy-yangtze.lan ([104.245.97.25]) by smtp.gmail.com with ESMTPSA id f5-20020a056402004500b0044f1e64e9f4sm804899edu.17.2022.09.20.18.33.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Sep 2022 18:33:38 -0700 (PDT) Date: Wed, 21 Sep 2022 09:33:33 +0800 From: Leo Yan To: Namhyung Kim Cc: Arnaldo Carvalho de Melo , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , linux-kernel , linux-perf-users , Ian Rogers Subject: Re: [PATCH v2 2/2] perf test: Introduce script for java symbol testing Message-ID: References: <20220918031524.26719-1-leo.yan@linaro.org> <20220918031524.26719-3-leo.yan@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-perf-users@vger.kernel.org Hi Namhyung, On Tue, Sep 20, 2022 at 02:47:05PM -0700, Namhyung Kim wrote: [...] > > +if [ -e "$PWD/tools/perf/libperf-jvmti.so" ]; then > > + LIBJVMTI=$PWD/tools/perf/libperf-jvmti.so > > +elif [ -e "$PWD/libperf-jvmti.so" ]; then > > + LIBJVMTI=$PWD/libperf-jvmti.so > > +elif [ -e "$PREFIX/lib64/libperf-jvmti.so" ]; then > > + LIBJVMTI=$PREFIX/lib64/libperf-jvmti.so > > +elif [ -e "$PREFIX/lib/libperf-jvmti.so" ]; then > > + LIBJVMTI=$PREFIX/lib/libperf-jvmti.so > > +if [ -e "/usr/lib/linux-tools-$(uname -a | awk '{ print $3 }' | sed -r 's/-generic//')/libperf-jvmti.so" ]; then > > s/if/elif/ ? Ouch, will fix. > > + LIBJVMTI=/usr/lib/linux-tools-$(uname -a | awk '{ print $3 }' | sed -r 's/-generic//')/libperf-jvmti.so > > +else > > + echo "Fail to find libperf-jvmti.so" > > + # JVMTI is a build option, skip the test if fail to find lib > > + exit 2 > > +fi > > + > > +cat < > Wouldn't it check if jshell is available first? Indeed. Will check jshell and skip the testing if jshell doesn't exist. Thanks for reviewing. Leo