Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1206817ybk; Sun, 10 May 2020 09:21:15 -0700 (PDT) X-Google-Smtp-Source: APiQypKOaitvX/Y96bDAR5A71V9YHx0+fNvHm8x00MU0/bIf/+aFFoamMxA3kwIluJ1DGsdRh5/b X-Received: by 2002:a17:906:1dce:: with SMTP id v14mr10352746ejh.244.1589127675762; Sun, 10 May 2020 09:21:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589127675; cv=none; d=google.com; s=arc-20160816; b=LB2ji/B8pBgKEPJ+pH5LxpchgVkJBxP5Ab4mW9ZW40wJuelSnvBraTDJsCflpA6OYx 3WkqrgmGWBoCop1UKv5lMx5lBGqn7bufv9+gQgI+yKxI5qoNc1MUJOcMKnabaVCvzPa1 Hx8+vFzs16QHzpqAJbiekg1ityb/Z+eVLbyrCFsU1HiU9Or1bo+A28meebzI98QaOUSd +uIbgYM9+GfKJptYEjhkgbT6YamFEMvInRRDzCRnI8ncP0y+JGSiD44Dq6fayrcd5Zyo pJjj6WRHRWlgjYDwz/mQbiW8R8Wwa1jP0WSeUzfdRnDzrSzTExJgBLxBAE/2spMjxGCv KY2g== 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=CCDwBmXaa9BIAQ2zuOaJ1GngjhFRFzM8zE9mn4mKapw=; b=UJpxNpCGvh+qUtJK2rx8ajuRRyCsm+6d338sarNC15ynxUi0yCdHInfK2Yfw5eAkVj JyKSlLYY1cXUWSCRucLpBVnxi5/HR40GZMV1JYhAIn/Q5ZDkhK40sn7vxJHHks9zQDaj smaDb/7xDwO+M0u7rywQpwr+u78AT76afniUQExvsiHqMImbCcCS+1yeOoegjnmjQ7Of tHfCzm+VYIqEN33EjiK8w+gXo4504StSjJQFeW0/ZF3JOmBHRxM+RWKIp4JGcpIMauYY ijVAW2meIm1y4eVEAH9VxGC72iItW5K14mP8jFLgNPc3IJweubC8F3TaL1tpXnuCWYrS p59Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=N0SesddC; 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 b17si4596696ejd.452.2020.05.10.09.20.53; Sun, 10 May 2020 09:21:15 -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=N0SesddC; 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 S1729171AbgEJQSW (ORCPT + 99 others); Sun, 10 May 2020 12:18:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726446AbgEJQSV (ORCPT ); Sun, 10 May 2020 12:18:21 -0400 Received: from mail-qt1-x841.google.com (mail-qt1-x841.google.com [IPv6:2607:f8b0:4864:20::841]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 87984C061A0C; Sun, 10 May 2020 09:18:21 -0700 (PDT) Received: by mail-qt1-x841.google.com with SMTP id x12so5901074qts.9; Sun, 10 May 2020 09:18:21 -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=CCDwBmXaa9BIAQ2zuOaJ1GngjhFRFzM8zE9mn4mKapw=; b=N0SesddCH/TSHZU0Arzstfn5pbmtr8zI0DuwZP+16wTEmKDnRweZ/zK8QpEFbnEKsQ 9YwAiYPkz0JVUiPMwaO72qCcrLH59HiIlSls6+4HvWPV2C/vShdLjE+zus8PhYm+zmr6 IwYimCg6OAhhgNqw5rIs41cbwV9hw9AHoT6kzU9C5l4qo+yJ04UBoxEa2jTFpaBusmPw 11pOoCpHqmgaGnZg3mJ/WTVAe1uNdEmAEp1LfeNqQXsxEYZKif2qtvI9MT/znrXzx9vm wLYR8VN6q38xXijuanahV5OnsqRtdENy/mqJG2iwkn1BRUug8TD2w+6O0cy77PW0RO4s l3UA== 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=CCDwBmXaa9BIAQ2zuOaJ1GngjhFRFzM8zE9mn4mKapw=; b=ZcubsPBLdiHwBUiQbaD16hf3lSzlyr8bFILmu0EX2btJ1zfXHbdOA877mweZw5MXe+ rbO5XG2CIKK0Z7U82CH2PoIoqPk7HxeBQNh/jFqFMWypjmV0t9ysxJyizTfL/Zn/J/9M zUsIXmkD761K6SwANP21Gc3QGu68TIjTcqMJkTcjFXlKo2r4XO8u4vyT32bvjW8/tgON dEtWfmTCQG9wfwWVx0goDQjwjfzA0pAHq5oB9OEdvkqYR/VNasbnlk0njFLzaJUtZ6tB 7XUscuFARzjadcHbMofS8WVR0WEZd3NCHyh6yVL7Tezc2eGHvd/AJxBn5ubQeKWUugbF LAjA== X-Gm-Message-State: AGi0PuYYIdHsQpeDP4Mg+bzDF3cInFveIX3QW6eJrJAdic8mDbCvDAVX p2clCNgZKocsWmtmnrfQ16dwsUF9t4w= X-Received: by 2002:ac8:66da:: with SMTP id m26mr12251999qtp.342.1589127500684; Sun, 10 May 2020 09:18:20 -0700 (PDT) Received: from [192.168.86.185] ([179.97.37.151]) by smtp.gmail.com with ESMTPSA id k138sm2776710qke.55.2020.05.10.09.18.19 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 10 May 2020 09:18:20 -0700 (PDT) Date: Sun, 10 May 2020 13:18:12 -0300 User-Agent: K-9 Mail for Android In-Reply-To: <20200510112336.444906c1@oasis.local.home> References: <20200510150628.16610-1-changbin.du@gmail.com> <20200510112336.444906c1@oasis.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PATCH 00/19] perf: ftrace enhancement To: Steven Rostedt , Changbin Du CC: Jiri Olsa , Arnaldo Carvalho de Melo , Peter Zijlstra , Ingo Molnar , Namhyung Kim , linux-kernel@vger.kernel.org, "linux-trace-devel@vger.kernel.org" From: Arnaldo Melo Message-ID: <3F63D994-4AD6-4EDE-899B-4B5D6B416B6D@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On May 10, 2020 12:23:36 PM GMT-03:00, Steven Rostedt wrote: >On Sun, 10 May 2020 23:06:09 +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 only 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: >> * - improved existing options=2E >> + - new added options=2E >>=20 >> $ sudo perf ftrace -h >>=20 >> Usage: perf ftrace [] [] >> or: perf ftrace [] -- [] >>=20 >> * -a, --all-cpus system-wide collection from all CPUs >> + -b, --buffer-size >> size of per cpu buffer in kb >> -C, --cpu list of cpus to monitor >> + -d, --delay Wait ms before tracing >> -D, --graph-depth >> Max depth for function graph tracer >> * -G, --graph-funcs >> Set graph filter on given functions (imply >to use function_graph tracer) >> -g, --nograph-funcs >> Set nograph filter on given functions >(imply to use function_graph tracer) >> + -L, --list-functions List available functions to filter >> + -l, --long-info Show process names, PIDs, timestamps, >irq-info if available >> -N, --notrace-funcs >> do not trace given functions >> + -P, --no-pager Do not use pager >> -p, --pid trace on existing process id >> + -s, --func-stack-trace >> Show kernel stack trace for function tracer >> + -t, --tid trace on existing thread id (exclusive to >--pid) >> -T, --trace-funcs >> trace given functions only >> + -u, --userstacktrace Show stacktrace of the current user space >thread >> -v, --verbose be more verbose >> + --funcgraph-tail Show function tails comment (function_graph >only) >> + --latency-format displays additional information about the >latency (function_graph only) >> + --nofuncgraph-irqs >> Ignore functions that happen inside >interrupt (function_graph only) >> + --nosleep-time Measure on-CPU time only (function_graph >only) >> + --trace-children Trace children processes >> + --tracing-thresh >> Only show functions of which the duration >is greater than =C2=B5s >>=20 > >Note, we are working on making more of the trace-cmd functionality into >libraries=2E See this work here: > >https://lore=2Ekernel=2Eorg/r/20191219113502=2E28964-2-tz=2Estoyanov@gmai= l=2Ecom > >Which introduces a libtracefs, that is to handle all the work needed to >interact with the tracefs directory=2E This will also be useful for perf >to read the event directory without having to open code that work=2E > >I'm all for giving perf the functionality of ftrace, but I would like >to have it do so with a more generic solution that other tools could >benefit from as well=2E > I think in time things will fall into place, 'perf ftrace' has potential a= s a way for perf users to have a familiar interface to ftrace, and that I t= hink it's its raison d'=C3=AAtre, in time well go on finding ways to have c= ommon code=2E Tomorrow I'll go over this patch set, Thanks, - Arnaldo >Thanks! > >-- Steve --=20 Sent from my Android device with K-9 Mail=2E Please excuse my brevity=2E