Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp408400pxa; Fri, 31 Jul 2020 15:45:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyCAG1CfCPl/ACka4ObW3iEFVf+lLrRBdKfU8w5pDICTgQJKq1pL+ZXxGe62TnoUKqRNILe X-Received: by 2002:a17:906:15cc:: with SMTP id l12mr6506503ejd.7.1596235537126; Fri, 31 Jul 2020 15:45:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596235537; cv=none; d=google.com; s=arc-20160816; b=AEpUnlfaDLHS6HLVR4ByYIaRjXf7RqBy5FLLVaUv4E3z6IuAGOYfYcydSWABwqxmaa SftIcDNhOK+8sbwBsMQVH1NNKk2fT03TAmggw7UXGZb0yhMPtT4Q++NguWq40d8IOggm OgrZxuLREb7xAaA5JJu77Be7U+cQ8hd01qu6lSDIbFpgEgR52Tm3d0I1aPAufBX0q9Hl XgWGi/LNBOQIrPNcTma5u7T9D0cL2eiaSZUA1EVn2bZUa6oBFvLZo98vLQlpbJN4+MHT Cq3a0o22aPYIQf9B+nI6S4RqMEv0NQ9RT4qZb55O80t57GrxJhiidcy0vwMNNLdazgwY XWDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:from:cc:to:subject :content-transfer-encoding:mime-version:references:in-reply-to :user-agent:date:dkim-signature; bh=lRZ/kR3FPznmCCnlDUPcWOWNypb4IUdQs0XDm4EnSj8=; b=gXbwkoCofINNsUNDbF292oKJ747xgDOokuxUhybLC8Yzrxq/LtQLD9d9ILX3tBAaVc YYD3bXLyz44OQS31OggpfS3IO9kji9RmVmBWt+Yy/iXYaXA3UNRpzjlvQdL0+XY5sRRN 9y4Ml4328bW5Nw3Lzv11xW6CPdT4UcpgQesyNnx1kAf8mrtrewPaz17u7udn99aWpe7o qYQdVr9WEMdz/+n94OdQoGcDWADTcmVSjj7lW5wUQfzX3hCggLKxob2QXbLpBmiQDMNL Rb0YCpSBb/L2jgB9sZspX1TLcX506JtYJ082Jl+herfVnfz0VO7YjVJ+9xfyd5DXbvoH RnaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=mVJEatOd; 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=fail (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 t15si6312781ejx.660.2020.07.31.15.45.14; Fri, 31 Jul 2020 15:45:37 -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=fail header.i=@gmail.com header.s=20161025 header.b=mVJEatOd; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726817AbgGaWmp (ORCPT + 99 others); Fri, 31 Jul 2020 18:42:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726615AbgGaWmp (ORCPT ); Fri, 31 Jul 2020 18:42:45 -0400 Received: from mail-qk1-x744.google.com (mail-qk1-x744.google.com [IPv6:2607:f8b0:4864:20::744]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 202A8C06174A for ; Fri, 31 Jul 2020 15:42:45 -0700 (PDT) Received: by mail-qk1-x744.google.com with SMTP id g26so30365689qka.3 for ; Fri, 31 Jul 2020 15:42:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:user-agent:in-reply-to:references:mime-version :content-transfer-encoding:subject:to:cc:from:message-id; bh=lRZ/kR3FPznmCCnlDUPcWOWNypb4IUdQs0XDm4EnSj8=; b=mVJEatOdpZmLW30aR48yBFjHb8S7x4SAbT77qK6AaYgDGQSDCzGY9Y3UsB24mnSvfA R00DDxoTsD22KVRReSifcxXQTO1lGIyYoTSfZaN6IJuthCgxz0j6UVbpZQKtWVkxve0O RvsGjeodMLQdBtLwX2ytXjdENqKtkmISqlnp/0G9adSvF1CjQ5WazDY/IxPDK1qbn4JY 0uds93uxkkV+Fm7x+Kz14hWUsrUVBa9xF4nrgyAY42qOxCi0eEalRvbeZ0LlLc8g1B1r GIQp+jy2k4J6CwEsm1CeLPpQIbHvtV0EYVj4so6ZbdqNmJ7feyr/DZ/+BkLkl/MZxKhz wYcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:user-agent:in-reply-to:references :mime-version:content-transfer-encoding:subject:to:cc:from :message-id; bh=lRZ/kR3FPznmCCnlDUPcWOWNypb4IUdQs0XDm4EnSj8=; b=frkotNk4CTacFB4R4+OHmfsei7M7tQoqj8/YLtNx3nT4kmyEe7vPao9IpMr2xxgk06 dWGmZoBuG5AXQV7JcGP1E5HjbTGRpQ1zN16RaVu7eHkUXwCZl0cubTvERyiatE9MBFmt kHbM3gfsGC65JIwnz4erWCQ37V9/TAKK7DF2jOITEBF5t2cfPHlCiEW9fmiRYmELkrKm Bi1+F4p5X2L/h9bnXHrFqjwBqUSTXvpl+XGm/MD6cQtT5une39DtDTf1APzHa5bGK6Or Ql3DjVmB5wiOPNftljcj+3KSOQc2KzTqfBRzuitYOoxh3fPrzNo5UidMn2CDOjCHEKcG 1yWg== X-Gm-Message-State: AOAM530oI3lZUWfApt8lj7NloQV4MIU0VosND3iZj5qSdgwQKwWYee0Y fqWWMHNvfJ/ReiW/QrqCKaU= X-Received: by 2002:a37:e41:: with SMTP id 62mr6349870qko.429.1596235363786; Fri, 31 Jul 2020 15:42:43 -0700 (PDT) Received: from RedmiNote8Pro-Redmi.localdomain ([179.97.37.151]) by smtp.gmail.com with ESMTPSA id n85sm10112052qkn.80.2020.07.31.15.42.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 31 Jul 2020 15:42:42 -0700 (PDT) Date: Fri, 31 Jul 2020 19:42:20 -0300 User-Agent: K-9 Mail for Android In-Reply-To: <20200731173520.x3edhuk73zt7tyuo@mail.google.com> References: <20200718064826.9865-1-changbin.du@gmail.com> <20200731173520.x3edhuk73zt7tyuo@mail.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PATCH v7 00/18] perf: ftrace enhancement To: Changbin Du CC: Jiri Olsa , Arnaldo Carvalho de Melo , Peter Zijlstra , Ingo Molnar , Namhyung Kim , Steven Rostedt , linux-kernel@vger.kernel.org From: Arnaldo Carvalho de Melo Message-ID: <391BF8A0-1025-478A-965E-1BB85DB87F7D@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On July 31, 2020 2:35:20 PM GMT-03:00, Changbin Du wrote: >Hi Arnaldo, >Are we ready to merge this serias now Thanks=2E :) Next week I'll be in vacation, do I'll have more time for upstream stuff, - Arnaldo > >On Sat, Jul 18, 2020 at 02:48:08PM +0800, Changbin Du wrote: >> The perf has basic kernel ftrace support but lack support of most >tracing >> options=2E This serias is target to enhance the perf ftrace >functionality so >> that we can make full use of kernel ftrace with perf=2E >>=20 >> In general, this serias be cataloged into two main changes: >> 1) Improve usability of existing functions=2E For example, we don't >need to type >> extra option to select the tracer=2E >> 2) Add new options to support all other ftrace functions=2E >>=20 >> Here is a glance of all ftrace functions with this serias: >>=20 >> $ sudo perf ftrace -h >>=20 >> Usage: perf ftrace [] [] >> or: perf ftrace [] -- [] >>=20 >> -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 >> -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, --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=3D,depth=3D >> --inherit trace children processes >> --tid trace on existing thread id (exclusive to >--pid) >>=20 >> v7: >> o add back '--tid '=2E >> v6: >> o fix return value of read_tracing_file_to_stdout()=2E >> o make __cmd_ftrace() shorter=2E >> o remove option '-t, --tid '=2E >> v5: >> o trivial fixes=2E >> v4: >> o add util/parse-sublevel-options=2Ec >> O remove -D/--graph-depth >> v3: >> o add --func-opts and --graph-opts to set tracer specific options=2E >> o support units as a suffix for option '-m/--buffer-size'=2E >> v2: >> o patches for option '-u/--userstacktrace' and '--no-pager' are >dropped=2E >> o update all related perf documentation=2E >> o rename some options=2E Now all funcgraph tracer options are >prefixed with >> '--graph-', while all function tracer options are prefixed with >'--func-'=2E >> o mark old options deprecated instead of removing them=2E >>=20 >>=20 >> Changbin Du (18): >> perf ftrace: select function/function_graph tracer automatically >> perf ftrace: add option '-F/--funcs' to list available functions >> perf ftrace: factor out function write_tracing_file_int() >> perf ftrace: add option '-m/--buffer-size' to set per-cpu buffer >size >> perf ftrace: show trace column header >> perf ftrace: add option '--inherit' to trace children processes >> perf: util: add general function to parse sublevel options >> perf ftrace: add support for tracing option 'func_stack_trace' >> perf ftrace: add support for trace option sleep-time >> perf ftrace: add support for trace option funcgraph-irqs >> perf ftrace: add support for tracing option 'irq-info' >> perf ftrace: add option 'verbose' to show more info for graph >tracer >> perf ftrace: add support for trace option tracing_thresh >> perf: ftrace: allow set graph depth by '--graph-opts' >> perf ftrace: add option -D/--delay to delay tracing >> perf ftrace: add option --tid to filter by thread id >> perf: ftrace: Add set_tracing_options() to set all trace options >> perf ftrace: add change log >>=20 >> tools/perf/Documentation/perf-config=2Etxt | 5 - >> tools/perf/Documentation/perf-ftrace=2Etxt | 36 +- >> tools/perf/builtin-ftrace=2Ec | 415 >+++++++++++++++++++++-- >> tools/perf/util/Build | 1 + >> tools/perf/util/debug=2Ec | 61 +--- >> tools/perf/util/parse-sublevel-options=2Ec | 70 ++++ >> tools/perf/util/parse-sublevel-options=2Eh | 11 + >> 7 files changed, 513 insertions(+), 86 deletions(-) >> create mode 100644 tools/perf/util/parse-sublevel-options=2Ec >> create mode 100644 tools/perf/util/parse-sublevel-options=2Eh >>=20 >> --=20 >> 2=2E25=2E1 >>=20 --=20 Sent from my Android device with K-9 Mail=2E Please excuse my brevity=2E