Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp2990956ybg; Sat, 6 Jun 2020 07:34:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxQz7RJrG1StwJFTa1mac9UgBNhsyqfDeELXbXNQV3xmdWXeqR7+ag01+DGb9HzGGZ/1f4V X-Received: by 2002:a17:906:fc13:: with SMTP id ov19mr13289817ejb.212.1591454090251; Sat, 06 Jun 2020 07:34:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591454090; cv=none; d=google.com; s=arc-20160816; b=GRYkDq91xG6xokNa4Bbki3cb2d4EHs6fTYZ/yu/kS+SL76iuWMuapchW1GZpJpC6ik 2lLu60VYLjEBdNGCTKoGJAiLxHTGW+/dYghRfB6k3RwmoFI/yyczZ1wBzcDM6rQeo0N7 Eg66EXm/pYlhTrDUMLWSbdUotQFgxZ59jWD/iWI8C9jVcvX/8jNGBZhdhmkSAeik5gJJ /f0s8b9JDehSLy+bJ3Uk/WxcJXEtxAy5/U0QTQ2l+aYqj0rRcKdeo5kk7ZXVb+2L5DW4 BHQ6YzhZ/PBeYvaGI2CEK+BG/51JfIFtwU76ywu/m9fiwzWb9bfvL0OE10PDCwzsIsQn 2+mA== 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=13Bg+r53Hgf+6+xiFNVDDsBz9vyOQUz3FCM2y7AOtgE=; b=gOh0owTC+RCMiISnnZ/ggFVdBADAXxknKpf/GgiAbrA9rE0DVXg5QUBCVMF80lMtlR JOw0w60yZGU/6EYjvVf73kQiWXONinWfdmJUNkQm+GPtyAH7r+/Id5O9M1Ddqc7Dmdk+ 5LoaHSN1vxBmRmq34HOIzQ7dMDq94rHj29Oxe0KYIFbkImf6RAivIV9klZ7AEwQISPsD mLR4su0wm4z2QiyTzKvcmiDgBUENj9cIq3xXYdLtZ2evHR99HkQoyeEyzfyjfxFX5lAs gOj0hjmxzL9Ux3UFNJXm+SKiC1d5JruzKX4R3J5tA7V/BLBG6O5as3NoSePCMR94O4ab DKFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="qr/OTDIP"; 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 vr3si5371087ejb.520.2020.06.06.07.34.26; Sat, 06 Jun 2020 07:34:50 -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="qr/OTDIP"; 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 S1728561AbgFFOca (ORCPT + 99 others); Sat, 6 Jun 2020 10:32:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726133AbgFFOc3 (ORCPT ); Sat, 6 Jun 2020 10:32:29 -0400 Received: from mail-pf1-x443.google.com (mail-pf1-x443.google.com [IPv6:2607:f8b0:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6150BC03E96A for ; Sat, 6 Jun 2020 07:32:29 -0700 (PDT) Received: by mail-pf1-x443.google.com with SMTP id 23so5482433pfw.10 for ; Sat, 06 Jun 2020 07:32:29 -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=13Bg+r53Hgf+6+xiFNVDDsBz9vyOQUz3FCM2y7AOtgE=; b=qr/OTDIP77AagDZPrNCnWY81dxefjRLJvS7YlWLOzEdmZxY/lQMkxk419Zw5yb6yXa A+wg0oz9CDM+2/T3X/jZQZBEnj84gU81uqrn1VsR7F3RpLYS/wrZENQjRjtzL46JMLc3 4u/rFHZpeE5sz7Vcigj/tNLLagOLYNUByI1gZWqfe7ghrtkY60WbBmrCq7JtkeqRVnW1 ClSxqWMZ5Y5uR6HCViNzPj3nNIKQqBOr18x6qkbOjabI3T/f1MreEE4WZ47gG0hM6xMp pUVR8r/TxUKFXiDVUW6Jfn5fMN3XMXlhxcZTrIkvgMnGnDdzKuh5EawBruIPC9ohtQJ6 eaEQ== 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=13Bg+r53Hgf+6+xiFNVDDsBz9vyOQUz3FCM2y7AOtgE=; b=DP2IA506L3+WbvWxT2y0JUvaowAC6gps/X9CC+15GTi+fZbyNTbGwXs0RUyLmHoAvx kAC1Fxkdk85EWd9T8+itCcSKLTBBshu2OQ6l/TGWp5bncs9A8Tq+obGnG9rDCF+X+1ZM 8DtixKhpPKXGVgW3SI2w0Rhv3bcYPOYw+r/0NO2E6H4lADuJPItMKoq1+BU5XpbQyrnh DyBTQa1vHKgUwwHKrDGAZreyMu0vJZEoAthWpB55iVl95f9cBIVZyq1D4MPBpX5PoS7O 8tJC261nXjc2zNAQ/loAo8P8QuLpN+f0DeOqFjf6wD/dcBw1RpfMdqYEkYmGcRfcj7n/ 3Yhw== X-Gm-Message-State: AOAM530tWimxR40fZJq3I926N1Yay40QvxrO7eeXnge8spw9lbjJPzR4 qCo84jhQohWu+cZ+9efc+Pg= X-Received: by 2002:a62:6d01:: with SMTP id i1mr14678812pfc.286.1591453948970; Sat, 06 Jun 2020 07:32:28 -0700 (PDT) Received: from mail.google.com ([149.248.10.52]) by smtp.gmail.com with ESMTPSA id k101sm11626595pjb.26.2020.06.06.07.32.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Jun 2020 07:32:28 -0700 (PDT) Date: Sat, 6 Jun 2020 22:32:17 +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 16/19] perf ftrace: add option -t/--tid to filter by thread id Message-ID: <20200606143217.my254phsg7vv4bnm@mail.google.com> References: <20200510150628.16610-1-changbin.du@gmail.com> <20200510150628.16610-17-changbin.du@gmail.com> <20200520211228.GE32678@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200520211228.GE32678@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 20, 2020 at 06:12:28PM -0300, Arnaldo Carvalho de Melo wrote: > Em Sun, May 10, 2020 at 11:06:25PM +0800, Changbin Du escreveu: > > This allows us to trace single thread instead of the whole process. > > I was going to adjust the patch to add, but you forgot to add the entry > to tools/perf/Documentation/perf-ftrace.txt, > > Please do so, > no problem. I will apend a new patch to update all the documentation. > - Arnaldo > > > Signed-off-by: Changbin Du > > --- > > tools/perf/builtin-ftrace.c | 2 ++ > > 1 file changed, 2 insertions(+) > > > > diff --git a/tools/perf/builtin-ftrace.c b/tools/perf/builtin-ftrace.c > > index 0b39b6a88026..8d04e5afe2d3 100644 > > --- a/tools/perf/builtin-ftrace.c > > +++ b/tools/perf/builtin-ftrace.c > > @@ -707,6 +707,8 @@ int cmd_ftrace(int argc, const char **argv) > > "List available functions to filter"), > > OPT_STRING('p', "pid", &ftrace.target.pid, "pid", > > "trace on existing process id"), > > + OPT_STRING('t', "tid", &ftrace.target.tid, "tid", > > + "trace on existing thread id (exclusive to --pid)"), > > OPT_INCR('v', "verbose", &verbose, > > "be more verbose"), > > OPT_BOOLEAN('a', "all-cpus", &ftrace.target.system_wide, > > -- > > 2.25.1 > > > > -- > > - Arnaldo -- Cheers, Changbin Du