Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1663563pxb; Tue, 26 Oct 2021 13:19:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyNw9FjEfGb7tUvKJ8uGsSzivpvn7hjEp1qj5//js99PyMX9Kc/joOmpDWn2s/1LQSNgvX3 X-Received: by 2002:a17:902:7c02:b0:140:a4a:4b3 with SMTP id x2-20020a1709027c0200b001400a4a04b3mr23864951pll.30.1635279595911; Tue, 26 Oct 2021 13:19:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635279595; cv=none; d=google.com; s=arc-20160816; b=i23mgzh2u1PZhGyNzK1v2Y0ISvuWimQeAPb0rag6SE24VTcmWjxl+AiQXEUKHVTOQd nd9iDOPJ6QuA6ECvYDTqgOJZi0gSQ0xQvBzJJpSNBdWcmCSCGUcYsO43ztYyfcfnSBCL pF8r8bJQbUle6I+aazAdupZnaR4ZAbNdbqdyMuqPy6MEYdVAdUcuQ/lXpCIJ3U/84qy3 92rMOGHnSUbKsy8K/uSlEm1DidDjm+TCpFcIQKgGN3GoR4ww5fLiEBXe936F1LqM0IIl KRtkXuxUEJHr8QooepaZu5s4WG0ivipQayXqu0++vdT2+7KM2nb1wTI0e6xuxasMnmh5 yVzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=282IKlsHAjPCYPCKCx/TrLOruVi2unYWk7Wit7g738Q=; b=bhVALJZ4zCSBxytT5HDyFaOMhfy0cJqbYNg7KRwLgfDos41azhhXbM7TGYyaXcqFup zDIi8YHy8ZgMQwSzxj0t46SoZ11eHc/LoTUCJNxgwpfl8iDuVGi/W1Lkbsyb/K91ekQD J08IRhTgLSMyEnSt8S0Pw7Lq29T3eVdB9CqnqlBRzJX08FnqAhffFXhJmSTtvMtYDTNA wDa5MA74U0eYsogbVR9JXqwYQvt0wtfXDIoM+J7yYnyk3TxsbC+8jBDCJwjr+2TS6axg DrsaIPrt9zVD9NhCvu32Z+Iqv+ChmwS1oTdQEsIxRmtpH9Z4gDq8BfuEvHhBRtxDJ3fa anCw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 25si2166652pjg.170.2021.10.26.13.19.43; Tue, 26 Oct 2021 13:19:55 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231690AbhJZPJf (ORCPT + 99 others); Tue, 26 Oct 2021 11:09:35 -0400 Received: from mail.kernel.org ([198.145.29.99]:34794 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231184AbhJZPJ1 (ORCPT ); Tue, 26 Oct 2021 11:09:27 -0400 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (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 14FB0604AC; Tue, 26 Oct 2021 15:07:02 +0000 (UTC) Date: Tue, 26 Oct 2021 11:07:00 -0400 From: Steven Rostedt To: Masami Hiramatsu Cc: Kalesh Singh , surenb@google.com, hridya@google.com, namhyung@kernel.org, kernel-team@android.com, Jonathan Corbet , Ingo Molnar , Shuah Khan , Tom Zanussi , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH v4 7/8] tracing/selftests: Add tests for hist trigger expression parsing Message-ID: <20211026110700.3be13865@gandalf.local.home> In-Reply-To: <20211026214311.583c728d90d41778c38201dd@kernel.org> References: <20211025200852.3002369-1-kaleshsingh@google.com> <20211025200852.3002369-8-kaleshsingh@google.com> <20211026214311.583c728d90d41778c38201dd@kernel.org> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 26 Oct 2021 21:43:11 +0900 Masami Hiramatsu wrote: > > diff --git a/tools/testing/selftests/ftrace/test.d/trigger/trigger-hist-expressions.tc b/tools/testing/selftests/ftrace/test.d/trigger/trigger-hist-expressions.tc > > new file mode 100644 > > index 000000000000..e715641c54d3 > > --- /dev/null > > +++ b/tools/testing/selftests/ftrace/test.d/trigger/trigger-hist-expressions.tc > > @@ -0,0 +1,72 @@ > > +#!/bin/sh > > +# SPDX-License-Identifier: GPL-2.0 > > +# description: event trigger - test histogram expression parsing > > +# requires: set_event events/sched/sched_process_fork/trigger events/sched/sched_process_fork/hist error_log > > Hmm, are there any way to check the running kernel supports this feature? > Because the latest version of the kselftest is expected to run on the old stable > kernel for testing, the testcase should check whether the kernel supports this > testing feature or not. (That's why the requires tag supports README pattern check) > > So, at first if you didn't update the /README, please update it first > to show the new syntax is supported, and add "SOME-PATTERN":README to the > requires tag. Yes, please update the README in kernel/trace/trace.c readme_msg[]. I'll look at the other patches, and if they are fine, I may just apply them. -- Steve