Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp1725620rdb; Mon, 2 Oct 2023 21:17:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGmYXnWTeVNyeAHbuXxOXJdT7rRJ9AuS0+rsb2BaURZIGRmbkX3jIZB3OeYiGO2y8cupMvU X-Received: by 2002:a05:6a21:99a2:b0:15b:95ef:fee6 with SMTP id ve34-20020a056a2199a200b0015b95effee6mr13342550pzb.14.1696306627253; Mon, 02 Oct 2023 21:17:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696306627; cv=none; d=google.com; s=arc-20160816; b=KS6cuvaD+lIhW9o9lROS0YPPRba5kRr7L3VumHGsc/pHpJYO5+9mrIcAbV8urPMHK7 k8pgY9Df7dMAZz6UYe8Sbxmj51ZO1uwf3AwxtMGWaiW7nzJMugOwWu3fKGopy/cLbGDW uCRkCH74qG/e0/XA3jvOY6WfpDe6GiNUnaJt+C3HDisl1GcLr4m7Jsesggque7+vRSst Z2+dv3qUq+LLceuNOeE90lBDe0OyzsOTfYbMDlH6xRd4TItdjSzZmv0wFrEpChps6N+s JMxcReLMFaSkY8bZSajLsonhpBgsRrnwEkk+65X1suI9jt2VctQdvG6sv5Drvrltv6si H2hg== 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=9OaWhTkljWa8jLpq5DQEgwbgMXwNubzJ52t6WsV1p8M=; fh=vPzOp7ewaF5XeHOnvpz1u9CzHRjLjRXTWa7i4nbBQ9I=; b=tcj0JFyArmqtnQ1V83ERaTe5g+xEgcpklzXuithFatybQHD3O9JxPKY7t8cRT3pEiP wHDQ/vN53xBOF18mt710t7u5RPRlh7HNVNnGteXWKBLG5hanKP79C5m58iTQk+dwRza2 pXXQ0BsnSS6f4PIqmbjHut0i0+r8P2DoVwGtnhBGmtCRHvGzdm7QQFwpJf834jbUBzuF ABLl3pg7y7CRGYFDTjr0YxW88t7pPIifQLxzHQJm0VhwZGhiT+Wx15nYdJB+3Si9n/ZK RNfJNSpg504ElLXXg2+bRCPh5G1c+w4qvIYf8Y4tlmPX/izZIG+OQTzDgve/obevYDoG TrKg== 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 i10-20020a17090332ca00b001c77a0c5a61si580028plr.551.2023.10.02.21.17.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Oct 2023 21:17:07 -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 9FD08801C02F; Mon, 2 Oct 2023 21:16:37 -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 S235407AbjJCEQZ convert rfc822-to-8bit (ORCPT + 99 others); Tue, 3 Oct 2023 00:16:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230061AbjJCEQX (ORCPT ); Tue, 3 Oct 2023 00:16:23 -0400 Received: from mail-pj1-f50.google.com (mail-pj1-f50.google.com [209.85.216.50]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4157EA1; Mon, 2 Oct 2023 21:16:21 -0700 (PDT) Received: by mail-pj1-f50.google.com with SMTP id 98e67ed59e1d1-278eaffd81dso329654a91.0; Mon, 02 Oct 2023 21:16:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696306581; x=1696911381; 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=roNIt2Fvqox3p9gNk4uqUQWHOaR3aQGBkVYARrazd/o=; b=l1ghURz5BBytBe69uzqLREOfW7l/+Nd4Eak14ICKbt/1OSouEdacCGhUdUF+R4V8w9 vl4eClbd5HiXdcKpeA1+uy9QMAicLgmgO4xOg2Hv7wh/fCpQ03ACHVNNbux9gM33fC3l y1OJcc87dJm8wh5m2uRq5aaw4qPW6KjU6UB4f04IPzV8Q5Bg9KL5MXPW+5PULu/Ax2Fr AlC/TZtZ7EkZowskGNJAt1oUq70SiVSkfYJ1YNx+EQCmWbou1j+jVROXTGiJUS4I+3JQ SH3lrgjV6J4vaBqG2HaYdPGF5gZQJL++WjdDC/pITABIpbagZUOiHpgPhPimbxa1SFsi Zpfg== X-Gm-Message-State: AOJu0Yx1/HQB+8IoL11c7xYF90WQ9fBDO6OCWAIny10Gmww/6icbKMkp 29HOUnOVQ2n667BE/5jklOQ8mIc53OHhPJGcXi8= X-Received: by 2002:a17:90a:53a5:b0:276:757d:8c89 with SMTP id y34-20020a17090a53a500b00276757d8c89mr10859669pjh.44.1696306580571; Mon, 02 Oct 2023 21:16:20 -0700 (PDT) MIME-Version: 1.0 References: <20231001131047.15176-1-april@acab.dev> In-Reply-To: <20231001131047.15176-1-april@acab.dev> From: Namhyung Kim Date: Mon, 2 Oct 2023 21:16:08 -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,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, 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]); Mon, 02 Oct 2023 21:16:37 -0700 (PDT) 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 Thanks, Namhyung