From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_2 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1232EC433E2 for ; Thu, 10 Sep 2020 23:34:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D9AF7208CA for ; Thu, 10 Sep 2020 23:34:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725681AbgIJXeg (ORCPT ); Thu, 10 Sep 2020 19:34:36 -0400 Received: from mail.kernel.org ([198.145.29.99]:49182 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725294AbgIJXeg (ORCPT ); Thu, 10 Sep 2020 19:34:36 -0400 Received: from oasis.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 65517208A9; Thu, 10 Sep 2020 23:34:35 +0000 (UTC) Date: Thu, 10 Sep 2020 19:34:33 -0400 From: Steven Rostedt To: Masami Hiramatsu Cc: Jonathan Corbet , Shuah Khan , linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, Randy Dunlap , Ingo Molnar , linux-kselftest@vger.kernel.org Subject: Re: [PATCH v3 0/8] tracing/boot: Add new options for tracing specific period Message-ID: <20200910193433.236cf081@oasis.local.home> In-Reply-To: <159972809455.428528.4737752126800169128.stgit@devnote2> References: <159972809455.428528.4737752126800169128.stgit@devnote2> X-Mailer: Claws Mail 3.17.3 (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, 10 Sep 2020 17:54:54 +0900 Masami Hiramatsu wrote: > Hi, > > Here is the 3rd version of the series to improve the boot-time tracing to > support kretprobe and tracing_on option. Previous version is here: > > https://lkml.kernel.org/r/159894698993.1478826.2813843560314595660.stgit@devnote2 > > This version adds uprobe %return suffix support ([5/8]) and the testcases > ([8/8]), and update kprobe %suffix support([4/8]) and the uprobe event > document([6/8]). > > > The combination of tracing_on and kretprobe allows us to trace events > while a specific function call period. For example, the below bootconfig > will make a function callgraph in the pci_proc_init() function at boot > time. > > ftrace { > tracing_on = 0 # off at start > tracer = function_graph > event.kprobes { > start_event { > probes = "pci_proc_init" > actions = "traceon" > } > end_event { > probes = "pci_proc_init%return" > actions = "traceoff" > } > } > } > > Here is the example output; > [..] Hi Masami, This looks really great! I just got back from a 10 day holiday, and I'm drowning in "catch-up". I plan on looking at all this relatively soon (in a week or two?). I just don't want you to think I'm ignoring this. -- Steve