From patchwork Wed Jun 8 16:31:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steven Rostedt X-Patchwork-Id: 12874279 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AA2A4CCA481 for ; Wed, 8 Jun 2022 16:32:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245709AbiFHQcW (ORCPT ); Wed, 8 Jun 2022 12:32:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343517AbiFHQcI (ORCPT ); Wed, 8 Jun 2022 12:32:08 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DAD912D29C1 for ; Wed, 8 Jun 2022 09:31:55 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D05F061978 for ; Wed, 8 Jun 2022 16:31:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 14532C34116; Wed, 8 Jun 2022 16:31:54 +0000 (UTC) Received: from rostedt by gandalf.local.home with local (Exim 4.95) (envelope-from ) id 1nyyb3-001mfI-3N; Wed, 08 Jun 2022 12:31:53 -0400 From: Steven Rostedt To: linux-trace-devel@vger.kernel.org Cc: "Steven Rostedt (Google)" Subject: [PATCH 1/3] trace-cmd stat: Show set_event_notrace_pid entries Date: Wed, 8 Jun 2022 12:31:50 -0400 Message-Id: <20220608163152.425352-2-rostedt@goodmis.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220608163152.425352-1-rostedt@goodmis.org> References: <20220608163152.425352-1-rostedt@goodmis.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-trace-devel@vger.kernel.org From: "Steven Rostedt (Google)" Have trace-cmd stat list the PIDs that are in the set_event_notrace_pid. Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=208813 Signed-off-by: Steven Rostedt (Google) --- tracecmd/trace-stat.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tracecmd/trace-stat.c b/tracecmd/trace-stat.c index 4c3dc6494922..4250f46a32d5 100644 --- a/tracecmd/trace-stat.c +++ b/tracecmd/trace-stat.c @@ -860,6 +860,7 @@ static void stat_instance(struct buffer_instance *instance, bool opt) report_kprobes(instance); report_uprobes(instance); report_file(instance, "set_event_pid", "", "Filtered event PIDs:\n"); + report_file(instance, "set_event_notrace_pid", "", "Filtered notrace event PIDs:\n"); report_file(instance, "set_ftrace_pid", "no pid", "Filtered function tracer PIDs:\n"); if (opt) { From patchwork Wed Jun 8 16:31:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steven Rostedt X-Patchwork-Id: 12874277 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7EBAAC43334 for ; Wed, 8 Jun 2022 16:32:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245150AbiFHQcU (ORCPT ); Wed, 8 Jun 2022 12:32:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245715AbiFHQcI (ORCPT ); Wed, 8 Jun 2022 12:32:08 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB51C2D4712 for ; Wed, 8 Jun 2022 09:31:55 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D068F61983 for ; Wed, 8 Jun 2022 16:31:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1D7BDC3411E; Wed, 8 Jun 2022 16:31:54 +0000 (UTC) Received: from rostedt by gandalf.local.home with local (Exim 4.95) (envelope-from ) id 1nyyb3-001mfL-3v; Wed, 08 Jun 2022 12:31:53 -0400 From: Steven Rostedt To: linux-trace-devel@vger.kernel.org Cc: "Steven Rostedt (Google)" Subject: [PATCH 2/3] trace-cmd stat: Show PIDs in set_ftrace_notrace_pid Date: Wed, 8 Jun 2022 12:31:51 -0400 Message-Id: <20220608163152.425352-3-rostedt@goodmis.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220608163152.425352-1-rostedt@goodmis.org> References: <20220608163152.425352-1-rostedt@goodmis.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-trace-devel@vger.kernel.org From: "Steven Rostedt (Google)" List the PIDs that are not to be traced by the function tracers that are listed in the set_ftrace_notrace_pid. Signed-off-by: Steven Rostedt (Google) --- tracecmd/trace-stat.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tracecmd/trace-stat.c b/tracecmd/trace-stat.c index 4250f46a32d5..285960de6e0a 100644 --- a/tracecmd/trace-stat.c +++ b/tracecmd/trace-stat.c @@ -863,6 +863,8 @@ static void stat_instance(struct buffer_instance *instance, bool opt) report_file(instance, "set_event_notrace_pid", "", "Filtered notrace event PIDs:\n"); report_file(instance, "set_ftrace_pid", "no pid", "Filtered function tracer PIDs:\n"); + report_file(instance, "set_ftrace_notrace_pid", "no pid", + "Filtered function tracer notrace PIDs:\n"); if (opt) { printf("\nOptions:\n"); show_options(" ", instance); From patchwork Wed Jun 8 16:31:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steven Rostedt X-Patchwork-Id: 12874278 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 469D6C433EF for ; Wed, 8 Jun 2022 16:32:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245363AbiFHQcV (ORCPT ); Wed, 8 Jun 2022 12:32:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343489AbiFHQcI (ORCPT ); Wed, 8 Jun 2022 12:32:08 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C2F9F2D5144 for ; Wed, 8 Jun 2022 09:31:55 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D06E761985 for ; Wed, 8 Jun 2022 16:31:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 208BBC341C4; Wed, 8 Jun 2022 16:31:54 +0000 (UTC) Received: from rostedt by gandalf.local.home with local (Exim 4.95) (envelope-from ) id 1nyyb3-001mfO-4Z; Wed, 08 Jun 2022 12:31:53 -0400 From: Steven Rostedt To: linux-trace-devel@vger.kernel.org Cc: "Steven Rostedt (Google)" Subject: [PATCH 3/3] trace-cmd stat: List synthetic events in the system Date: Wed, 8 Jun 2022 12:31:52 -0400 Message-Id: <20220608163152.425352-4-rostedt@goodmis.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220608163152.425352-1-rostedt@goodmis.org> References: <20220608163152.425352-1-rostedt@goodmis.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-trace-devel@vger.kernel.org From: "Steven Rostedt (Google)" List the synthetic events that are defined. Signed-off-by: Steven Rostedt (Google) --- tracecmd/trace-stat.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tracecmd/trace-stat.c b/tracecmd/trace-stat.c index 285960de6e0a..391a05ffcec9 100644 --- a/tracecmd/trace-stat.c +++ b/tracecmd/trace-stat.c @@ -818,6 +818,11 @@ static void report_uprobes(struct buffer_instance *instance) report_probes(instance, "uprobe_events", "Uprobe events"); } +static void report_synthetic(struct buffer_instance *instance) +{ + report_probes(instance, "synthetic_events", "Synthetic events"); +} + static void report_traceon(struct buffer_instance *instance) { char *str; @@ -859,6 +864,7 @@ static void stat_instance(struct buffer_instance *instance, bool opt) report_file(instance, "tracing_max_latency", "0", "Max Latency: "); report_kprobes(instance); report_uprobes(instance); + report_synthetic(instance); report_file(instance, "set_event_pid", "", "Filtered event PIDs:\n"); report_file(instance, "set_event_notrace_pid", "", "Filtered notrace event PIDs:\n"); report_file(instance, "set_ftrace_pid", "no pid",