Received: by 2002:a05:7412:518d:b0:e2:908c:2ebd with SMTP id fn13csp432463rdb; Thu, 5 Oct 2023 09:58:23 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEs+ADujYMB5NmZn5/8Yp5qPuLDlc9V86Q/hcwvqDllM50RpmPlXfmKzpaTBCOZ6TUF5yZp X-Received: by 2002:a05:6358:3411:b0:13a:d269:bd22 with SMTP id h17-20020a056358341100b0013ad269bd22mr5418965rwd.25.1696525102660; Thu, 05 Oct 2023 09:58:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696525102; cv=none; d=google.com; s=arc-20160816; b=DCCFFcTL/pjCfcSPWtnyBPyEZVc1LUjPT4pppUAYIe+RnyInfWbAfZot20Zeg85qeO 3B4RCRhEbKmShsClviVOu3D2oejyKZyfToUPv4Mly1v3/0M5Mb0pV4GXeNQ9ywTQVza5 NcTzSsiQ7QT9pUAd0h0/uEM3fJUJNdedGWNJ1uitptYMNMD1EVzMubSpuPtqRBbBs1Ag iheX9uJXz5ipdO2wDbK8togBl1hunguxPCmkV048j1aRSwCgEmfoeB/Fhql0NXcdcTq3 x5hoXF+152NeIImM3NhBGwi7oFUlGagmCZEXfqEFwW0yeInguaqT41mr0dirtpvH8fsG Fsvw== 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=wTXAoFtMfDgSlHr7KrRmolxVl1m3cjuVbh342Jfbb4k=; fh=vPzOp7ewaF5XeHOnvpz1u9CzHRjLjRXTWa7i4nbBQ9I=; b=pYXjpkPODcmsbhZ/d2+7zyewIz8isqv/NM6CLF4kCG2IOJ9xJks1bnpLwTPCZgn01J pqgGkpwsEVKQDLtpLiyJuNcwCE0Zni8ei3vcSRjIjLMhutbO4kobb1TzIz//Y6o7Xce+ kok7FuRBYvHPKSBSpNtREA4eR7SUD0+uHg4TORY1Yih5Z4qqGPtpdRFP7YgOTIYl0ns7 JUUyReflHF9/aPdv2DrtgmfAnstrAfcKWiNGoHcEWCZbQkhWeazhV6eFZHWw+4DNPvWg Ce+5q0XzZDW+2XqjeDQPv2e2eCHsSdimR674BCFGVQxbMZ3c1eaNqacuJZSVCjU1GKxO Xo1Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id l128-20020a633e86000000b00578b487825asi1824671pga.208.2023.10.05.09.58.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 09:58:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (Postfix) with ESMTP id 702A6833814F; Thu, 5 Oct 2023 09:58:21 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242489AbjJEQSH convert rfc822-to-8bit (ORCPT + 99 others); Thu, 5 Oct 2023 12:18:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241326AbjJEQOP (ORCPT ); Thu, 5 Oct 2023 12:14:15 -0400 Received: from mail-pj1-x102c.google.com (mail-pj1-x102c.google.com [IPv6:2607:f8b0:4864:20::102c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 542864490; Wed, 4 Oct 2023 21:44:51 -0700 (PDT) Received: by mail-pj1-x102c.google.com with SMTP id 98e67ed59e1d1-27734d76e1bso398184a91.2; Wed, 04 Oct 2023 21:44:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696481087; x=1697085887; 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=NSXc66j6KPSxT44QaA3/43T0mBt/pQC0vRdLVYS87ZM=; b=JEGDMaZCoUeoSEqDgVJiEYfwWpINFse1OnRuAHKlWqqieYnFrKCYyNJnmR0NuvyhXa 6Bx8ou6gh4AkE7F4nwBUxVyyACB5WDTRu/Kl+AvtC18V1RrEdWY6ukwQs2yXkGFBPO0a RRckQc5yzmsg9/TaluEh1l00E4KZtdWGo/e40IUljH8pPKrbyPya8JViUQ/1Ou52X3hb PsQ9LLJDryd4H1+HCPRl/9SX1ULo/HYlee9zV7/C+9aYW9CyPlfLZ7bwKe4EJirfrINl wLRkHokco7KlzzoLmIPuAHmv0Qt9i1xR0ZW75np81tIUlEah+nbTcI6esi4BnprmTPjp yrhw== X-Gm-Message-State: AOJu0YzUrYv4HuyPE7J2rjvCFBdyVUY4et+ysJVxo9vsoMcU/Zapc0WS xpuUAW09RefeQhZyOjlnP0eijcGSTN/eUvj031Q= X-Received: by 2002:a17:90a:9101:b0:273:f584:40ca with SMTP id k1-20020a17090a910100b00273f58440camr3999328pjo.16.1696481087457; Wed, 04 Oct 2023 21:44:47 -0700 (PDT) MIME-Version: 1.0 References: <20231001131047.15176-1-april@acab.dev> In-Reply-To: From: Namhyung Kim Date: Wed, 4 Oct 2023 21:44:34 -0700 Message-ID: Subject: Re: [PATCH] /bin/dmesg to dmesg Path To: April John Cc: linux-kernel@vger.kernel.org, Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Ian Rogers , Adrian Hunter , "open list:PERFORMANCE EVENTS SUBSYSTEM" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=no 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 05 Oct 2023 09:58:21 -0700 (PDT) On Mon, Oct 2, 2023 at 9:16 PM Namhyung Kim wrote: > > Hello, > > On Sun, Oct 1, 2023 at 6:10 AM April John wrote: > > > > 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 > > It is usual to put a tag after the patch, it should be at the end of the > commit message. With that, > > Acked-by: Namhyung Kim I've tried to apply the patch but it failed. It looks broken. Have you generated it using git format-patch ? Thanks, Namhyung Applying: /bin/dmesg to dmesg Path error: corrupt patch at line 11 Patch failed at 0001 /bin/dmesg to dmesg Path