Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp349206iob; Fri, 13 May 2022 03:08:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxImysqtrsM17lRWwCSpkxr8j0zEBPO4/4oPjlZmOaVXAx6q2Dv2vYcIJ55KQwcO5QjhQ3g X-Received: by 2002:a17:907:2cc5:b0:6f8:63e4:5959 with SMTP id hg5-20020a1709072cc500b006f863e45959mr3736472ejc.138.1652436489197; Fri, 13 May 2022 03:08:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652436489; cv=none; d=google.com; s=arc-20160816; b=RRRoWODPbbqxyV9PnlqpOLawHGrAPkb+EJWhAoXwA8ZvHMLlbliXUSADWrknb7CTiW KGAqlaEFdYjlJAmTkj4JpJZQOW4T6h3/Pnj1PwISDvK7QbMEqVYAXw9S6mdOsXQExjBN /v+k2EZn96/j2O7xCVdabj0hojGrlgvAgqA9u+DGtYo85ZIUOConqjDSA1S0FzZ3DAxi Wgd7WuujbOwK4fZrRAE2MHnL+CyJ5ZExeeT+TsueT1dfyazrjZmzn17Mv8BDBUj9uRC5 0fC2VEnBJeU+bfbWdiLyEr1vVbary4lsNpLTmLrBXQjqg0TtniOvWJD34WUeSm3c3IJr zyuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:dkim-signature:date; bh=hGt3BnCoU4kW+K89I9JK4z3L3KmFUi2s6F9PRzSqJy4=; b=aDKwIVAjLVdVyl304c1KrFemsGR/jWY1ErjvIwqTXWePGoxJWF+F1wtb//7pylU6a8 DMUURNZW9vflZcU/VLvRP78Q8pzlqFxWqNETCedJ4uTdhnyNI0BLLmnyUuwxcDxpsgSV 5KPyj4CtH+22lwHoiyiFIsoIwgITG5w88jHAexZHgPOa9DHrO6ltddVpsp0UZ2Rwnnb1 NjNfeysbveeROz/nM8RobvuKsqRiR1+mQYWklHKx01YVXG27RmXyv1Mc8pWBgUuS2/U3 wczqdZKlvT33mW3fdlqxl89K6ObWgwpSxZ8VEKkrVj6nIQqXUHnh5LbURq2VeyLVtBPz /zWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=je+mlCfA; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gn9-20020a1709070d0900b006e87643da69si2002946ejc.746.2022.05.13.03.07.40; Fri, 13 May 2022 03:08:09 -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; dkim=pass header.i=@linux.dev header.s=key1 header.b=je+mlCfA; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345588AbiEKRau (ORCPT + 99 others); Wed, 11 May 2022 13:30:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243285AbiEKRar (ORCPT ); Wed, 11 May 2022 13:30:47 -0400 Received: from out2.migadu.com (out2.migadu.com [IPv6:2001:41d0:2:aacc::]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 70587FF7; Wed, 11 May 2022 10:30:46 -0700 (PDT) Date: Wed, 11 May 2022 10:30:37 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1652290243; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=hGt3BnCoU4kW+K89I9JK4z3L3KmFUi2s6F9PRzSqJy4=; b=je+mlCfAdY+4OyJgDBp5E3GBVuEBLdvt6J+eoOdJnIYkin2GEDUy3o1Xu4pmthPdnADjnW y1H2V1XbN5Q/fcQSXljhOoimbX3DNpiiDGnDR+z0zWakiPMO6Msv/BaB0DNLnlU7MSn595 ruFFuRlABf7+uSqATZ77rTKjlERBqG0= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Roman Gushchin To: Vasily Averin Cc: Shakeel Butt , Steven Rostedt , 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 Subject: Re: [PATCH v2] percpu: improve percpu_alloc_percpu event trace Message-ID: References: <2b388d09-940e-990f-1f8a-2fdaa9210fa0@openvz.org> <30a47b4e-7c4b-cd2d-998d-cfaf8d12d342@openvz.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <30a47b4e-7c4b-cd2d-998d-cfaf8d12d342@openvz.org> X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: linux.dev X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Wed, May 11, 2022 at 08:11:54AM +0300, Vasily Averin wrote: > On 5/11/22 05:33, Roman Gushchin wrote: > > On Fri, May 06, 2022 at 10:29:25PM +0300, Vasily Averin wrote: > >> 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. > > I checked recent trace patches and found that order changes is acceptable. > > commit 8c39b8bc82aafcc8dd378bd79c76fac8e8a89c8d > Author: David Howells > Date: Fri Jan 14 11:44:54 2022 +0000 > > cachefiles: Make some tracepoint adjustments > > - TP_printk("o=%08x i=%lx e=%d", > - __entry->obj, __entry->ino, __entry->error) > + TP_printk("o=%08x dB=%lx B=%lx e=%d", > + __entry->obj, __entry->dino, __entry->ino, __entry->error) > > On the other hand I'm agree to keep old order by default. > that's why I added bytes_alloc and gfp_flags to end of output. > However I think call_site is an exception. In all cases found, > call_site is output first. > For me personally it simplified output parsing. > > So I would like to know Steven's position on this question. Ok, not a strong opinion, I think both options are acceptable. Thanks!