Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp548039ybt; Fri, 10 Jul 2020 06:39:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyHfr7ttyZsTafCqmoUMJ7f6eeW1ga9ElbtkXZSnT54dNhNC620OEbqws+wEFigmEMqUwlm X-Received: by 2002:a17:906:c002:: with SMTP id e2mr58142975ejz.244.1594388341425; Fri, 10 Jul 2020 06:39:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594388341; cv=none; d=google.com; s=arc-20160816; b=vHYtVVKGuJVA+uDaiD12weTsE3hXbNRlMGQenGp4I4kzuTjLOW01BWObg+avAL57Xn /YRhBSuwLavwS+xKNxXO9gIF4ZxjWp2SGfxm6bmiQssKq0dfGmbI5CJ9T7DmX/F5aVF9 dFA/0Cfj2OFhoxdN6aWsCI5OzXnSOCM1De5NYYDwaBZOKlq0q/FMWi7kA03hHuToMsJ4 f+X3DObWeoVwNMxr1rJrTmydcv+0KO/YeJynMaDPv3VOWvgZ2ILvoBS6iG8x9u+OgcRm oXomuqVVWeYf9JzhmzYbLAoUJVVvjmBCBVIoQMX7RK7uFAN5fuNiY1Uwnn9MExNZVqgZ cWsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=hTSA/0krZvdeCyQcop6JdEMFdLGIH7H+rDDAyCz6QGM=; b=XOuMFhhq+937PqaobRElVelEqhS/1XSoIC7ts6EWT+DGODawIW4QiceSPYX3NnGDOi hJeN4GKomtKdk5Q195epWdScSZYa7DbVNIoPOL++mcyOMYDgfVkG2ZOcFWZvN6g6n+9r ZzpRwaUjAeC54O76tm/Dq4DfrlrDxizlWDNwwVn9UW1GmhPCM28CXCqVG58Y7Ob0qEtJ MCV1plOxpHthD6T+3Y+nO0L3lK/cy8JqeyCrNooU5Bqp3EZs6gJYzQDrtHflUV/8YrTK F/ZmU0rTZMnAMvpL3cCaGwhk0J9FZeCuleQYpuuigAv/8TeACIf3UAtT2BcDA+2rW1Zc QwEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="rN/a6tNU"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id du22si5284358ejc.330.2020.07.10.06.38.35; Fri, 10 Jul 2020 06:39:01 -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=@gmail.com header.s=20161025 header.b="rN/a6tNU"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727771AbgGJNgK (ORCPT + 99 others); Fri, 10 Jul 2020 09:36:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726942AbgGJNgJ (ORCPT ); Fri, 10 Jul 2020 09:36:09 -0400 Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB56DC08C5CE for ; Fri, 10 Jul 2020 06:36:08 -0700 (PDT) Received: by mail-pf1-x444.google.com with SMTP id u185so2561396pfu.1 for ; Fri, 10 Jul 2020 06:36:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=hTSA/0krZvdeCyQcop6JdEMFdLGIH7H+rDDAyCz6QGM=; b=rN/a6tNU90T2FY14ui6NQyGj/cahER84wtPNp1gtH6Q7ljWqaRrXb/+ZCTGRkmzo9O Z7nEK4aO7zBY/vwEfbjf98S1Z8obnq4QJaK1ts14oPfs7EdUzm+eyBNqGH9FtjthTeBy 27xP21CPj9bK05RfSKEPP0F1uLEKD4e23N+/W//GC4gTT+St1ga6w5cRQSFgAuCsULlT 6mM80lY1OSgWMczVrmpcwpRQwf9zg8zYG5hK1nhg4Qp/6FtdgAk7x4W5Bje1VYyo8dxt b6mLxkpqy59lavBe/6logV4eNwYkSw0HUGV/1ozuW9J5W5kb50HH98sau5NX7byEbv2j 7Chg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=hTSA/0krZvdeCyQcop6JdEMFdLGIH7H+rDDAyCz6QGM=; b=GRjyp+tyytiFdkU2idHy6V5MpBB0thEi8fz5mSPRGvVMS0iCvtjk1xDeSoeiOcHv+0 Q6i3XEG4aEefZ4GyG8v/oa/glKLgVHnlNIZxRgvWDjawCsDubUrIj1UJOG0h34hQ2CsB YNNpyMJ1tZHqPZIY/X/FXCtTaxt/xoXtu41rXfnJh+5IbWIsMiiKJIhBVt/kRicRQo+8 EJ7ZHTyBrsujE++/HleS56ZjH0JnQcmoDMm7dwkWXJq7eMyh35x6bty9Km9fiYKwgLxs 6lRVR3evz5nzDj1Xc5opbfis6TDnH68fTxcGeghA0q39t5oybpijtitiV+ClHQBbPUfP myfA== X-Gm-Message-State: AOAM530J6RaDL2aAui9FRcZemsxLi7x70qyrK9CoyGwvfnCb0C8dKoFX NbUfAoS1ugULqgpYMT0gVe8= X-Received: by 2002:a65:4b85:: with SMTP id t5mr55866075pgq.36.1594388168369; Fri, 10 Jul 2020 06:36:08 -0700 (PDT) Received: from mail.google.com ([149.248.10.52]) by smtp.gmail.com with ESMTPSA id n2sm5844714pgv.37.2020.07.10.06.36.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Jul 2020 06:36:07 -0700 (PDT) Date: Fri, 10 Jul 2020 21:35:58 +0800 From: Changbin Du To: Arnaldo Carvalho de Melo Cc: Changbin Du , Jiri Olsa , Peter Zijlstra , Ingo Molnar , Namhyung Kim , Steven Rostedt , linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 00/17] perf: ftrace enhancement Message-ID: <20200710133558.npuhovqs642zv6qh@mail.google.com> References: <20200708164605.31245-1-changbin.du@gmail.com> <20200708173959.GD22437@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200708173959.GD22437@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 08, 2020 at 02:39:59PM -0300, Arnaldo Carvalho de Melo wrote: > Em Thu, Jul 09, 2020 at 12:45:48AM +0800, Changbin Du escreveu: > > Here is a glance of all ftrace functions with this serias: > > > > $ sudo perf ftrace -h > > > Usage: perf ftrace [] [] > > or: perf ftrace [] -- [] > > > > -a, --all-cpus system-wide collection from all CPUs > > -C, --cpu list of cpus to monitor > > -d, --delay ms to wait before starting tracing after program start > > -D, --graph-depth > > Max depth for function graph tracer (This option is deprecated) > > -F, --funcs Show available functions to filter > > -G, --graph-funcs > > trace given functions using function_graph tracer > > -g, --nograph-funcs > > Set nograph filter on given functions > > -m, --buffer-size > > size of per cpu buffer > > -N, --notrace-funcs > > do not trace given functions > > -p, --pid trace on existing process id > > -t, --tid trace on existing thread id (exclusive to --pid) > > -T, --trace-funcs > > trace given functions using function tracer > > -t, --tracer > > tracer to use: function or function_graph (This option is deprecated) > > -v, --verbose be more verbose > > --func-opts > > function tracer options, available options: call-graph,irq-info > > --graph-opts > > graph tracer options, available options: nosleep-time,noirqs,verbose,thresh=,depth= > > --inherit trace children processes > > > > v3: > > o add --func-opts and --graph-opts to set tracer specific options. > > o support units as a suffix for option '-m/--buffer-size'. > > Thanks for working on this! -d/--delay: > > [acme@quaco perf]$ perf record -h delay > > Usage: perf record [] [] > or: perf record [] -- [] > > -D, --delay ms to wait before starting measurement after program start > > [acme@quaco perf]$ > > [acme@quaco perf]$ perf stat -h --delay > > Usage: perf stat [] [] > > -D, --delay ms to wait before starting measurement after program start > > [acme@quaco perf]$ > > [acme@quaco perf]$ perf trace -h -D > > Usage: perf trace [] [] > or: perf trace [] -- [] > or: perf trace record [] [] > or: perf trace record [] -- [] > > -D, --delay ms to wait before starting measurement after program start > > Perhaps we can move --graph-depth to --graph-opts and make -D/--delay be > just like with 'perf record', 'perf stat' and 'perf trace'? > > Will be super nice if one can go from: > > perf stat --delay 100 workload > > to see the default set of counters to: > > perf ftrace --delay 100 workload > > to get the ftrace output for that. > > Ditto seeing the syscalls strace-like with: > > perf trace --delay 100 workload > No problem. Now -D/--graph-depth is moved to --graph-opts. > Regards, > > - Arnaldo -- Cheers, Changbin Du