Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp6671183iob; Wed, 11 May 2022 02:48:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzsCwQWhHHhEaNJC0GuEWIWVzLkrkIHwEVBNeWPdWkQolKUJ6NjsIr32NEqgcP8pvPYUpIk X-Received: by 2002:a17:90b:4a84:b0:1dc:67e9:a92c with SMTP id lp4-20020a17090b4a8400b001dc67e9a92cmr4404220pjb.141.1652262497148; Wed, 11 May 2022 02:48:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652262497; cv=none; d=google.com; s=arc-20160816; b=vdatNdgBjs9spXD7tVmPRXlXJ+ttr1V1flT0gSYEMQrlvu4ldkATSF9gr1oDPm2srV so4ZRdOjNeKhp4p9aSnPM26Eq7OVYOFH9pOzjIT0PlYtuxTOlfzBxmtpThV5p1lppDh7 MFZDGP8kXPlbuCNwpk10zB7KLcbCUKfA4uC8J8wxzXcLUFw9SoKz6UluqUzDXoIQb2wn 5ZUBlhLr0lLPi3VSjpvWBFx5JK/xrTbPumoi8x14UkHzPMV0mNNZIEzHGICJVxGiG36W uOUtAyY6L0kt0XGsCxcvhE1U7lM3vWAskbjGXQUVaSFVzKLdi4hb4E+IsWN2vCp68+un Kh+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=FsqMLvYhC8qarZmsr+129u+7sKwrIH+JPr+bFWl7+5k=; b=fiPCtApXazc1TaeEiKMH+1B5sT1OKnBpdl/K9E8JU2zXLHk/jM4OAcSfGgxwGCd6qd Rnguz56hVXzvY07JZFUen99QDl4OcuCGAPh2za+/Py5N2D3rViqgFRr6el2fcDBmb61D kZVDw+BT8Zz4ElHSuFbJAN+WhicFNtiZVjqjhQsXYPxCjQjEo//UP2keWCDhYuM+xX2P ns11PA8wXkHbozpaFHtufNWUkf5WIZibsUMgWc8ImtrBDx14pc/nQo9FsmDHdwGu70Tn EXyIHzOo80kMtsIgIMuEHET07X0dk1GK1vp8RjyVSPl3v+sD0rz/VG+kF0QHh13lKjTs N4aQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@openvz-org.20210112.gappssmtp.com header.s=20210112 header.b=0aG7kU3e; 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=fail (p=NONE sp=NONE dis=NONE) header.from=openvz.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e17-20020a631e11000000b003c6ac289928si2303216pge.117.2022.05.11.02.48.06; Wed, 11 May 2022 02:48:17 -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=@openvz-org.20210112.gappssmtp.com header.s=20210112 header.b=0aG7kU3e; 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=fail (p=NONE sp=NONE dis=NONE) header.from=openvz.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236526AbiEKFMC (ORCPT + 99 others); Wed, 11 May 2022 01:12:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229994AbiEKFMA (ORCPT ); Wed, 11 May 2022 01:12:00 -0400 Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com [IPv6:2a00:1450:4864:20::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 407C798094 for ; Tue, 10 May 2022 22:11:58 -0700 (PDT) Received: by mail-lj1-x231.google.com with SMTP id y19so1118617ljd.4 for ; Tue, 10 May 2022 22:11:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=openvz-org.20210112.gappssmtp.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=FsqMLvYhC8qarZmsr+129u+7sKwrIH+JPr+bFWl7+5k=; b=0aG7kU3eWAaKIv/Td9eRJ5q6oW+7HIa6nEf1s1DtvmoURqmTGUjIfod6WyVpZrOLQG edcTzONtr1MlDcl4mYXZXlsIlXhzvwUxwe7+C22rF9/+P8fccOBzqemsYOYv9io4jg/Q ZgiPvF/qI3UxE9/Jabe8hGdEibI51Ou1/0olIozn+yzyLafL/VSUFC/vqkEt/EM112RX JZcFcxwbJrUGmZwAYuNCS4ajsGwlkMVLFLO0ecCSpRxV5PwCaCzILghm/8EO5CELGx8d qxMOR0ACQ4+iZMB4bvvnZ73gAsuc+A36M7mRsYxpGgDt2PYVqARDUdyhG0vim6eZh8WI nPOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=FsqMLvYhC8qarZmsr+129u+7sKwrIH+JPr+bFWl7+5k=; b=wDxn6apZj36azyDt67R8Ca9nQfKLIMhu2rvAX9bsn1F5cGC5McgZ9aUXQ34Al9+zVI Pc7NHqVc1+PKiZnctgpBWRbaomCc7wwZIzNVNyhKqBmegllD1BM4UC3VSk8lfH0AOCm3 tmUGdSXOR4/mb4yXk0tgqTa24t3Z9v431pmp69Bicjdrd6zwCuA+7eZYmZtXfTceRIiG BPZI/02TUqqCxX7c3f5OGFS6mQp3R94TF+8mjusn2fEhhdydXJ35s6LRVooe0kV6RAAz yq/ZlcpaN4EM9n1FiJ29r0Tf4X+eEcQrRQWgKLLGroEwfEwivtRkzaWyaUmXJXQSOzAv 620w== X-Gm-Message-State: AOAM530AxfIXRGx4LLPP08kfXGBuX8eyESNrrezC29ZdFu5D3MT8i5nk 3HKoOD8Knbk57HfwF8+LL0ZOKA== X-Received: by 2002:a2e:9ecb:0:b0:24b:4e2a:a555 with SMTP id h11-20020a2e9ecb000000b0024b4e2aa555mr15778281ljk.149.1652245916570; Tue, 10 May 2022 22:11:56 -0700 (PDT) Received: from [192.168.1.65] ([46.188.121.177]) by smtp.gmail.com with ESMTPSA id m3-20020ac24283000000b0047255d210f4sm119249lfh.35.2022.05.10.22.11.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 10 May 2022 22:11:56 -0700 (PDT) Message-ID: <30a47b4e-7c4b-cd2d-998d-cfaf8d12d342@openvz.org> Date: Wed, 11 May 2022 08:11:54 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: [PATCH v2] percpu: improve percpu_alloc_percpu event trace Content-Language: en-US To: Roman Gushchin 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 References: <2b388d09-940e-990f-1f8a-2fdaa9210fa0@openvz.org> From: Vasily Averin In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,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 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. Thank you, Vasily Averin