Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp844270ybj; Thu, 7 May 2020 08:53:18 -0700 (PDT) X-Google-Smtp-Source: APiQypIvfC49L6QGFsk3bipyOlG48ma8AQVY2WtKDPhY3z9ySYr4eayHajIWTe1tCj+VMdjnHmoB X-Received: by 2002:a50:951c:: with SMTP id u28mr12253013eda.310.1588866798580; Thu, 07 May 2020 08:53:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588866798; cv=none; d=google.com; s=arc-20160816; b=ZvIH0r1Uu7z83X3ogGmNuDUVua226OWFwLG4Zhmzq8oYQsrBuIP1VAsg7jty9jWt7Z EnC+Cva142M+kvt1pOXWtppm1exlR3ixzNQe4SlQRNR4N/FzH3q3/LHxNSt/VhE73zh3 B6tGFsf7MwGEcOUVGSaaH35uCHYe3rvLgTZOFWEFRyR17HEoS6A+rSb4JtUwurFSSxpq f24KA/zmW7HOwqgWF9KZFO3K1idhwNkR5wdnkzUYN+heqYRvg+k5EwMzc63EzytEVJth fUOLajZeo2eTYDNOxJsjaN9p5btqmNL86b1kEAxojeE3MksWeYG1dLsPN0yJVjrZ/FNH LyQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=+i8RZte0FOBMlZa7Ggo1+kppdc73Rj9/r8AC9zsBAmA=; b=zb7Z/FnKJW1ZCWUKVgT3HR2L2qa+0ueTfKr/V0bCBq8zzEsTg8xnCDEW0UO0T8Y0ew ueBRd6MjwoFU8Tbh1l0AqUt2YWRYBhNTnhwDvYXmG1TYfOxReRB4pav/Gr1KfW6I5Vwm TGRMZdT8L35FeMK1D4VLMAVg/NZgnMRg+YMnIUHNyUGho+FkDOM8DY/EqVnW3NctwJ0R QUzwwu9AP/UHnZzYbj6vh+NMD95KAU7y2U7gwMePcMfBme8Q6F5gjyOSEiI7T4SDek1x pcg60q+M/nYmTtCGD2ddTS5OGjfZDxftTfbIPl/j2iLQBAk0mu+E5lyVMQ4speHW3CLf KUcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=dSaTPs3E; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g16si3282773edr.382.2020.05.07.08.52.53; Thu, 07 May 2020 08:53:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=dSaTPs3E; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727105AbgEGPud (ORCPT + 99 others); Thu, 7 May 2020 11:50:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:37772 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726616AbgEGPuc (ORCPT ); Thu, 7 May 2020 11:50:32 -0400 Received: from devnote2 (NE2965lan1.rev.em-net.ne.jp [210.141.244.193]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 74EFB20659; Thu, 7 May 2020 15:50:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588866632; bh=a4g1pYWcIDP9Pbd1virnw3Z83hS76WeKV3KwymGm09U=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=dSaTPs3Enu9YAiDYWqenhOiKwvLbcEun5F5evfg3kwO4xVSEy99B924mrWjVqKxHZ vRue5I3xj+CxdNPpJT/BUCn/ZVSkyNKd/21TphpJTu+Zw0XPrA4WYEaGjH/8NVZa3D DytGmdOxNJi9199T6xqy0BJSX8HPKwmpFs60MTtg= Date: Fri, 8 May 2020 00:50:28 +0900 From: Masami Hiramatsu To: Steven Rostedt Cc: Shuah Khan , linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Tom Zanussi , Li Philip , Liu Yiding Subject: Re: [PATCH 3/3] selftests/ftrace: Use /bin/echo instead of built-in echo Message-Id: <20200508005028.a825d53373721a13d6cc80fc@kernel.org> In-Reply-To: <20200507091207.5c3b1a92@gandalf.local.home> References: <158834025077.28357.15141584656220094821.stgit@devnote2> <158834028054.28357.398159034694277189.stgit@devnote2> <20200501101942.5c0da986@gandalf.local.home> <20200502120842.9d93352083fb854295150235@kernel.org> <20200507091207.5c3b1a92@gandalf.local.home> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.32; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 7 May 2020 09:12:07 -0400 Steven Rostedt wrote: > On Sat, 2 May 2020 12:08:42 +0900 > Masami Hiramatsu wrote: > > > > > diff --git a/tools/testing/selftests/ftrace/test.d/trigger/trigger-trace-marker-hist.tc b/tools/testing/selftests/ftrace/test.d/trigger/trigger-trace-marker-hist.tc > > > > index ab6bedb25736..b3f70f53ee69 100644 > > > > --- a/tools/testing/selftests/ftrace/test.d/trigger/trigger-trace-marker-hist.tc > > > > +++ b/tools/testing/selftests/ftrace/test.d/trigger/trigger-trace-marker-hist.tc > > > > @@ -30,7 +30,7 @@ fi > > > > > > > > echo "Test histogram trace_marker tigger" > > > > > > > > -echo 'hist:keys=common_pid' > events/ftrace/print/trigger > > > > +echo 'hist:keys=ip' > events/ftrace/print/trigger > > > > > > This is doing more than just changing the echo being used. It's changing > > > the test being done. > > > > Yes, I need Tom's review for this change. As far as I can test, this > > fixes the test failure. If this isn't acceptable, we can use "alias echo=echo" > > for this test case. > > > > I still don't see how changing "keys=common_pid" to "keys=ip" has anything > to do with the echo patch. If that is a problem, it should be a different > patch with explanation to why "keys=common_pid" is broken. This test case uses a trace_marker event to make a histogram with the common_pid key, and it expects the "echo" command is built-in command so that the pid is same while writing several events to trace_marker. I changed it to "ip" which is always same if trace_marker interface is used. Thank you, > > -- Steve > -- Masami Hiramatsu