Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp932801rdb; Sun, 1 Oct 2023 11:36:04 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE9nVYDAvARt30m7xu0aovzq+6+dt8wOqCwGVLUILaeGGGgXc5RflNQD7Zw9S0bKHk2ZDm3 X-Received: by 2002:a05:6870:f68f:b0:1d6:2476:be2e with SMTP id el15-20020a056870f68f00b001d62476be2emr10393078oab.35.1696185363807; Sun, 01 Oct 2023 11:36:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696185363; cv=none; d=google.com; s=arc-20160816; b=chEMEVj8rd7BLZNt03jvLOu6dsojTnnEJT72vuE2HLzoivUz45k/rloisn+ajC1fLU FcTE+RUijTIe+SYJbkduH8bpsfGfj7sMUknzS/l3UNL6qqHqrhuoLJYrR4ZFd8hfc1Is bpsvyt7vVCKRZPYdWlaAL3pnQPkh+3rNQMRMpGXUaeO531m748SRYBIlTdOp9vV0ncKy 6D7ZREFoSDGomt4cnxt7ulL+qPaYjJzTYRKf/g99n8xb5LNLtjMN8TeStokH1ddZlxsH b4cDuCPKHuapyLVqvXPCiFCl7FsGJyJcfpD5r27R5MAFUdCG/vp2qQ4WHsYwQdH5ybSL jPRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:dkim-signature:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from; bh=dQOO+1RTlukVncTxCKOmVSa3gYvhD7rVj00JNhlBlAI=; fh=GKNSHloIvjjFx/cE5dldy4AvgDilUZCL/HX/dpFWFhA=; b=IJtVHLtYN3bZXOr0IwlxwF7kka/QI0O6lqwqScapec9RMKf0TunwV53y1M9QqEVVpO HZS2DQKFqc7842yPC6RDyyPk8zBES+WSL2p2GMPmXyGZagz66bPlO0gy7xnsZOwU530E Kel7Ol6Pk7Nm+Q42PdGwv4lo01K5uxk6GiZckbPzt75wLdocZ+rIXK7+7VfKIs1vSSig hPES49tfBUIIq//5p5+tt+7SBwtV8fAkxKE8atha3L2hMHdD2Pu7SD9+kBMDcRUPtwyK O2WyItuZUVWRtkQVADVA2cFXvoHBOrQxL/8FNlFKBB/LI7VXVb7L1P4uJxkbahZz52o5 GI3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@acab.dev header.s=s20220914329 header.b=imIyghrh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=acab.dev Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id s25-20020a639259000000b005859a8ae4d3si6901642pgn.483.2023.10.01.11.36.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 Oct 2023 11:36:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@acab.dev header.s=s20220914329 header.b=imIyghrh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=acab.dev Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id E85CB80A3102; Sun, 1 Oct 2023 06:11:06 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234983AbjJANK4 (ORCPT + 99 others); Sun, 1 Oct 2023 09:10:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229716AbjJANKz (ORCPT ); Sun, 1 Oct 2023 09:10:55 -0400 Received: from mail.sakamoto.pl (mail.sakamoto.pl [185.236.240.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 685469C; Sun, 1 Oct 2023 06:10:52 -0700 (PDT) Authentication-Results: mail.sakamoto.pl; auth=pass (plain) From: April John To: linux-kernel@vger.kernel.org Cc: April John , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Ian Rogers , Adrian Hunter , linux-perf-users@vger.kernel.org (open list:PERFORMANCE EVENTS SUBSYSTEM) Subject: [PATCH] /bin/dmesg to dmesg Path Date: Sun, 1 Oct 2023 15:09:41 +0200 Message-ID: <20231001131047.15176-1-april@acab.dev> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Haraka-GeoIP: DE X-Haraka-GeoIP-Received: 2a0f:5382:acab:1403:df7a:1afe:5a62:f4ea:DE Received: from localhost (Unknown [127.0.0.1]) by mail.sakamoto.pl (Haraka/2.8.28) with ESMTPSA id 8C646383-7EE1-448C-9701-59BAC68A05B4.1 envelope-from tls TLS_AES_256_GCM_SHA384 (authenticated bits=0); Sun, 01 Oct 2023 15:10:50 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=acab.dev; s=s20220914329; h=from:subject:date:message-id:to:cc:mime-version; bh=dQOO+1RTlukVncTxCKOmVSa3gYvhD7rVj00JNhlBlAI=; b=imIyghrhK2UIPXFk8w3ldexzXY9jozTIYM/4zX4m08i4F3ReRHaSOkj/z6YaC/mQxjy35EPAnN Jw8mco13GS/QZnj+0aJcJNdUt5KtmXgUJNCAYkm+NFEJOrvsEf9wS0nAHzXr+MPeGH+juilkPba9 NWvluyWhdXeREVB+kO9MrPM5TB8et41AIauJwPg+QGytxAChui/tkrwhw35I8TZK+EbKgXf8I5Wf 1tuvFz3Yc2UAWrVMO5LUKSQ7HAZkzuwtLoihjXhFML/tV9cfKqMWS66I+NHg96POe/nSaA6b+NEQ G8a8NVymsDkTw+xmo0PCl+2XKULcnhYPhwEUT3qg== X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.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 (agentk.vger.email [0.0.0.0]); Sun, 01 Oct 2023 06:11:07 -0700 (PDT) Dmesg is not in every distro at /bin/dmesg, in NixOS for example, this fails, but the path should in most cases contain dmesg. This follows the example of replacing /bin/bash with bash Path in the codebase. --- tools/perf/util/evsel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/util/evsel.c b/tools/perf/util/evsel.c index a8a5ff87c..aa602aae6 100644 --- a/tools/perf/util/evsel.c +++ b/tools/perf/util/evsel.c @@ -3053,7 +3053,7 @@ int evsel__open_strerror(struct evsel *evsel, struct target *target, return scnprintf(msg, size, "The sys_perf_event_open() syscall returned with %d (%s) for event (%s).\n" - "/bin/dmesg | grep -i perf may provide additional information.\n", + "dmesg | grep -i perf may provide additional information.\n", err, str_error_r(err, sbuf, sizeof(sbuf)), evsel__name(evsel)); } -- 2.42.0 Signed-off-by: April John