Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp2506922rdb; Mon, 20 Nov 2023 12:49:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IGJzIlzjQE8s2jUvdLNMaX2gjoHRu8KabQtjjMgMwbqwyUjFxNHzUULYhqwEYPx1hn4J0jb X-Received: by 2002:a05:6a20:3d87:b0:181:fe7f:836b with SMTP id s7-20020a056a203d8700b00181fe7f836bmr11016920pzi.7.1700513359069; Mon, 20 Nov 2023 12:49:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700513359; cv=none; d=google.com; s=arc-20160816; b=yA4kjVb2Bs9mEmCdZwguoMf5wGDcDDrRAQmTpbhI5MUfSp+QzbHZLM7Y4P9B9JANk8 KfcKoxctjw+YU+xjlMtEwm2hC80KcTiUKlsI+hTgCSnuToDo/vRz+UKS3MKXC0oDrCB0 T2evc55fRHpohVuQk0RRlxMl7XckUNEBETpYb2RS2hOc3RiucJ+AQW/msAfFFlsfLneH xWRWmsBbLb2+os9NSMSHCrjD4FrURRdhgWdpCvu5XuFLXtCWNRWFJ/tb3opZDsGElH6+ I6Om/aGLmFtTgoLjEygIOEK5XlkTuDJzm0nxZmSBeHXNL/7Gb9mInpCbDOVfyrrp1V/e BKsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=g3K6ldM5Lx/pSh9lr3/l2QeGKmTXQF9NJHMRfyLTDgw=; fh=LLLfvW7bmTmaTWqtt6jyXcwuTSYkX1u3iVPBcvH0w58=; b=QBUaPIorv8W9obtbkQebmqp1dEY7bcBC5UBCxcCB9zg8AAeZugvxeqMngVNJXh0nmy k6U2G8EF7sg6mLeAMDjR825Zzbt0SgduDFbYtQ/2+Xw96niPsVVZw0FCxkFsEn4xwbug FtIYCguHyydXrnvmwIQszKKRTkZqAqyLigE+gD39J8Xj+4s8hSbKES5UeYMRPwMaMwy/ ma8Tcud2dSekfdkveQXS0gqA+EVxCatOlbwoX0v8Fyt2n1xGwOSF5gOHhlPm0xI52aYi W/lzGLBr/ugfJdZZa+cjrTqDQP1s8n7suCu3kQEViI9OKiyFxZgm1/gXY4ZxUNt7wvcb rwBw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id m129-20020a625887000000b006cb4ac19d40si6211211pfb.226.2023.11.20.12.49.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 12:49:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 5F65F807648B; Mon, 20 Nov 2023 12:49:16 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230224AbjKTUsz convert rfc822-to-8bit (ORCPT + 99 others); Mon, 20 Nov 2023 15:48:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229476AbjKTUsy (ORCPT ); Mon, 20 Nov 2023 15:48:54 -0500 Received: from mail-pg1-f180.google.com (mail-pg1-f180.google.com [209.85.215.180]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 285A8D2; Mon, 20 Nov 2023 12:48:50 -0800 (PST) Received: by mail-pg1-f180.google.com with SMTP id 41be03b00d2f7-5c210e34088so2400386a12.2; Mon, 20 Nov 2023 12:48:50 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700513329; x=1701118129; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=HLACAszJAsDeK07wyfvEz6u3BDeunNq6zbMUiAuxf0E=; b=A10hVPw9mQD8NCYDOwlRZVNFeUqHvFZExfTIhcwWVuTtAg6Nc0D6bCJLK7HGtxyxvM TBcNFghjCN8y4y4UsIJ4pJQj4zmd5p8JxOx9gNeDFCAjd05GLm3c8KV28xk6CfuI0PBy hMqLD1PhKO31aQrLRV2goC+T8F7eFG6ZMMFDAp2AhbGfTa/peIhBAVPCBoKv4HVYoh7v oM5o+rE+Qqi87V82VTllu15Ij+Du/7cXvsvzCJmIX/OWkd2LsKTnsT6Dozchkrkd4Jl9 Y87tu0a/9SmlWsq+N5sTe3UsnKYXqExW4kzfwX8cBCobdMcxP5TwR+mzPuIVu6tL+vzr zcnw== X-Gm-Message-State: AOJu0Yx92rmzrf2SMLSRD9L5rmMcVcczucppHB/DBZC+OGqD6QKaiPKW qDrZtLL9LAbEYr/BbzsN2j3MjZlhmRXGR8P+XfE= X-Received: by 2002:a17:90b:4c06:b0:280:e2e1:f955 with SMTP id na6-20020a17090b4c0600b00280e2e1f955mr9229635pjb.35.1700513329510; Mon, 20 Nov 2023 12:48:49 -0800 (PST) MIME-Version: 1.0 References: <20231113102327.695386-1-james.clark@arm.com> In-Reply-To: <20231113102327.695386-1-james.clark@arm.com> From: Namhyung Kim Date: Mon, 20 Nov 2023 12:48:38 -0800 Message-ID: Subject: Re: [PATCH] perf test: Use existing config value for objdump path To: James Clark Cc: linux-perf-users@vger.kernel.org, irogers@google.com, acme@kernel.org, Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Adrian Hunter , Yonghong Song , Fangrui Song , Kan Liang , Yang Jihong , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email 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 (fry.vger.email [0.0.0.0]); Mon, 20 Nov 2023 12:49:16 -0800 (PST) Hello, On Mon, Nov 13, 2023 at 2:23 AM James Clark wrote: > > There is already an existing config value for changing the objdump path, > so instead of having two values that do the same thing, make perf test > use annotate.objdump as well. > > Signed-off-by: James Clark Acked-by: Namhyung Kim Thanks, Namhyung > --- > tools/perf/Documentation/perf-config.txt | 8 ++------ > tools/perf/tests/builtin-test.c | 2 +- > 2 files changed, 3 insertions(+), 7 deletions(-) > > diff --git a/tools/perf/Documentation/perf-config.txt b/tools/perf/Documentation/perf-config.txt > index 16398babd1ef..379f9d7a8ab1 100644 > --- a/tools/perf/Documentation/perf-config.txt > +++ b/tools/perf/Documentation/perf-config.txt > @@ -251,7 +251,8 @@ annotate.*:: > addr2line binary to use for file names and line numbers. > > annotate.objdump:: > - objdump binary to use for disassembly and annotations. > + objdump binary to use for disassembly and annotations, > + including in the 'perf test' command. > > annotate.disassembler_style:: > Use this to change the default disassembler style to some other value > @@ -722,11 +723,6 @@ session-.*:: > Defines new record session for daemon. The value is record's > command line without the 'record' keyword. > > -test.*:: > - > - test.objdump:: > - objdump binary to use for disassembly and annotations. > - > SEE ALSO > -------- > linkperf:perf[1] > diff --git a/tools/perf/tests/builtin-test.c b/tools/perf/tests/builtin-test.c > index 113e92119e1d..b8c21e81a021 100644 > --- a/tools/perf/tests/builtin-test.c > +++ b/tools/perf/tests/builtin-test.c > @@ -518,7 +518,7 @@ static int run_workload(const char *work, int argc, const char **argv) > static int perf_test__config(const char *var, const char *value, > void *data __maybe_unused) > { > - if (!strcmp(var, "test.objdump")) > + if (!strcmp(var, "annotate.objdump")) > test_objdump_path = value; > > return 0; > -- > 2.34.1 >