Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2678664iob; Mon, 16 May 2022 03:56:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwBP7Hu/hHHy0OI75mq3NK44WMItXvWphh5teIpQ0ScGYNOgFXXcga1yT88BgKD7Je9+N+Q X-Received: by 2002:a05:6000:716:b0:20c:4cda:b38c with SMTP id bs22-20020a056000071600b0020c4cdab38cmr13849287wrb.226.1652698561479; Mon, 16 May 2022 03:56:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652698561; cv=none; d=google.com; s=arc-20160816; b=LlU4Lp1wmx9rIkLhU3EYO03dnTKkjp305N4Jaflau0J+7WY4+sWD/6c69hFYdf+NPV i3/lV1vYvJ7uj/ursgDyt/umAz39VlJD/GqqRyPIe/dACfp/AaLhVQz3eAojfDxmFA+O wiyoulT7iUka8Rev8SWMeLhWIEKzKFMZRZE0h1eRudviBh7mCIDND9oHmMME2jQon+Jy KTssB8x4sxvSCqnPLky/ZqQ97X1q6dqdHgjG/5B+TQb8kV7du5BPYrlqp7S7fb8moxaq DzuJe8d36d0HRbyKDfSFC62qxnNViyz35nMQXfGX/BDoFSnj30a2QshQQIuTSZCsZAwB QCaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=OrD3QZwloF7k9k7VQHgTlhts0UsQ54iViN6ApTbLSp0=; b=TtI6tGlUEfPanJhOIQEA34dyntevhPzy9AtFv7VeLDCPmEZVKxnje7g6hWuRn1tlo+ lNUMUlXa7kzxTXVx0w+sfbSj8b2wA4COyGrUy0m8ev78Ej/TcD72D8A5vw/xzibJkS7a Rbq51fwyOVWA8AYymc1376mY9jx7qeflMyBGQ9Z2TRpK9maAfRlohASMEkp60X/+Sbwl 0BafbfnJ8M8BMB16vYHzSqChH+RZ/SYwe4ZyfkvFBIgjgAlfCkuDslnxvd7/bEPFS3s5 ZvkfFiS8fchk6BD6+pgVCmRPRRnI3UTbp7WOIxTKAsykDVSxCdyRM2KLlqYbdBojJrAd Mnkg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bt16-20020a056000081000b0020d03a4b6d1si4677788wrb.481.2022.05.16.03.55.33; Mon, 16 May 2022 03:56:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235232AbiEOWGt (ORCPT + 99 others); Sun, 15 May 2022 18:06:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234992AbiEOWGr (ORCPT ); Sun, 15 May 2022 18:06:47 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 18D67205D5; Sun, 15 May 2022 15:06:46 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id CFA49B80E66; Sun, 15 May 2022 22:06:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0803EC385B8; Sun, 15 May 2022 22:06:41 +0000 (UTC) Date: Sun, 15 May 2022 18:06:40 -0400 From: Steven Rostedt To: Roman Gushchin Cc: Vasily Averin , Shakeel Butt , Ingo Molnar , kernel@openvz.org, linux-kernel@vger.kernel.org, Vlastimil Babka , Michal Hocko , cgroups@vger.kernel.org, Andrew Morton , Dennis Zhou , Tejun Heo , Christoph Lameter , linux-mm@kvack.org, "linux-trace-users@vger.kernel.org" Subject: Re: [PATCH v2] percpu: improve percpu_alloc_percpu event trace Message-ID: <20220515180640.0ae2ead5@gandalf.local.home> In-Reply-To: References: <2b388d09-940e-990f-1f8a-2fdaa9210fa0@openvz.org> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 10 May 2022 19:33:17 -0700 Roman Gushchin wrote: > --- a/include/trace/events/percpu.h > > +++ b/include/trace/events/percpu.h > > @@ -6,15 +6,20 @@ > > #define _TRACE_PERCPU_H > > > > #include > > +#include > > > > TRACE_EVENT(percpu_alloc_percpu, > > > > - TP_PROTO(bool reserved, bool is_atomic, size_t size, > > - size_t align, void *base_addr, int off, void __percpu *ptr), > > + TP_PROTO(unsigned long call_site, > > + bool reserved, bool is_atomic, size_t size, > > + size_t align, void *base_addr, int off, > > + void __percpu *ptr, size_t bytes_alloc, gfp_t gfp_flags), > > Don't we want to preserve the order and add the call_site at the end? > Trace events are not ABI, but if we don't have a strong reason to break it, > I'd preserve the old order. Ideally everyone should be using libtraceevent which will parse the format file for the needed entries. Nothing (important) should be parsing the raw ascii from the trace files. It's slow and unreliable. The raw format (trace_pipe_raw) files, along with libtraceevent will handle fining the fields you are looking for, even if the fields move around (internally or externally). Then there's trace-cruncher (a python script that uses libtracefs and libtraceevent) that will work too. https://github.com/vmware/trace-cruncher -- Steve