Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp1642651ioo; Sun, 22 May 2022 22:43:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwf63aR0qFQEn1qOUFhnV4H4d0F8TnhhUsmmJuBwAJAlm8gn7ajtq87cyHh1Q/BYkWHY+z6 X-Received: by 2002:a17:90a:c084:b0:1e0:1a48:e01b with SMTP id o4-20020a17090ac08400b001e01a48e01bmr11178534pjs.65.1653284581101; Sun, 22 May 2022 22:43:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653284581; cv=none; d=google.com; s=arc-20160816; b=JP8tNXuIPoDGBpQscx9Xkry8iLegmZv9jVpRwbR+SLlYOx+sPCy7h6kNKNBZ+PkjkV E2g1VqQVw0C3eM0x9zU4zN2b28EhMADij3gckhYXBTe5gBat9UbsVDcUx+boLkC1llc8 UO109GMRPQiiHwLkTfYsHqC9lrVWW4g/pTGIRn2aStMJdKSMAv2OQxylcF7/CTiqcRbE jiBOuYP6qdpRF7u1OKvIYvxI2DE154ENopVc38dR12zqTHh2gOcNVnJcn4N8Zrwxjrxd 8VaXzmJd9OyzLovVOqs5OIw3am3rGIBWyADPqBVC78t+rKYNMHhg3CzeQv/AstxwyHCV kqXQ== 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=LQdic5D2mWyJy+0s57aqv9AapzRzXHTJwfJI8BE4AEc=; b=MEKhtwKDL9q/OWGJNPmBHGwPJMqB0Sc8gRAn6uihXvblH4ZSR49NxNY2Y+vP4qUJCL Z/aotcLTttv+GZt8Hxx4oO6ssBF+49jO9de7j4Fq8woTXziDfIsQcuBNkPUeS4B70qKd fAeboc4S1TUsXN9o5ITXWS9xe6VhdGfqHWXnVSKezIDhhSL1kOQuylHIl/JJBNe1PZoE MoHSGQ5oIiOaWg6dn84VzUfQHA4U/oDDjJsoKXKdpkWkFn84rWo+AYWGGVy5WqLp6ikF Lluw98kVBAoHKsHenai8d4OMtfCnJzOa32Ne0U45vftK3KXXJZVkXd7JZt5h1cWNnOes FxMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@openvz-org.20210112.gappssmtp.com header.s=20210112 header.b=dtMTibjG; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id j9-20020a170903024900b001590118e14dsi10731182plh.108.2022.05.22.22.43.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 May 2022 22:43:01 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@openvz-org.20210112.gappssmtp.com header.s=20210112 header.b=dtMTibjG; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=openvz.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id AF69D21E11; Sun, 22 May 2022 22:42:25 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344480AbiEUScR (ORCPT + 99 others); Sat, 21 May 2022 14:32:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41374 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238619AbiEUScQ (ORCPT ); Sat, 21 May 2022 14:32:16 -0400 Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A906666A9 for ; Sat, 21 May 2022 11:32:14 -0700 (PDT) Received: by mail-lj1-x229.google.com with SMTP id h8so12841272ljb.6 for ; Sat, 21 May 2022 11:32:14 -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=LQdic5D2mWyJy+0s57aqv9AapzRzXHTJwfJI8BE4AEc=; b=dtMTibjG/ktDXCJMVAEnJNykhvUx5B/p4FDm+DFx085Tn5NCToh6aVKUHumRUF//Ff tv3jvIqQmEUOha8bhOTjTHjWVtjTNH8f8Qxu6dBUkKMjPmtLnXD2+kY7dJ+AhZLNe16E +KJZwnO0TRjsdt/Ko9CYbxWT/7pCRhDl5IeHh2WxeJ5JB68QrBEFFAnUfl8F9f6T6dJk 6gUAwEWAJa7oXIByFX/y8bsiSxiQN6bX01Wm1+R/d5+yCRZ4QGrsqrjWzT6p7YxR1k1I c1aPtBu0InXsS2YaRxkJtlHo96fZbv9cC3+hXxbBeSj2QxivJNupczKbCKiP+lLtyS1A eL/g== 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=LQdic5D2mWyJy+0s57aqv9AapzRzXHTJwfJI8BE4AEc=; b=uCiUR3l0NKAzC0MjB3BPBWF01anopFDEdHL9B1jE6cL5Tv+6FMXi330+IiDoBWyVLQ p3Xjk/pBWrKlZJOAThxmjkg4AZre+Ub5UqhgaC9o/tUq6Vn1jWZ6C5rZGcMlXh8T3bdI wCIk9n8kSvsOqwR78YgiTf8NSkWxD7ci67XQQfNhgY1auyYDl3lBfM6Ffo/ddGUL/21p 5oPJ383Nxi3vTwVPJ8oPqIrzzAAyquL8wFNfSGQINsukbAEPUHvLRU15q8Jcn4sBSw7A JFZHJ/AjkDpw7s2h5gLUeIkg5qqVQ6aZbcWb2z7ZZTG5gozc5OhJQVDpOYTqs1+Ocsr7 dN+g== X-Gm-Message-State: AOAM531bW9HDWCN8MAs9klAAlQAeGc+B+/iCVlHOz/P88Dbvus5Jq4os l1JYZ3iEqlOE/ntqjoTjAFn4Pw== X-Received: by 2002:a2e:8907:0:b0:253:c8e5:1fac with SMTP id d7-20020a2e8907000000b00253c8e51facmr8806691lji.338.1653157932817; Sat, 21 May 2022 11:32:12 -0700 (PDT) Received: from [192.168.1.65] ([46.188.121.185]) by smtp.gmail.com with ESMTPSA id r19-20020ac252b3000000b00477c05f9ffbsm1149830lfm.9.2022.05.21.11.32.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 21 May 2022 11:32:12 -0700 (PDT) Message-ID: <0c73ce5c-3625-6187-820e-1277e168b3bc@openvz.org> Date: Sat, 21 May 2022 21:32:11 +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 v3] tracing: add 'accounted' entry into output of allocation tracepoints Content-Language: en-US To: Steven Rostedt Cc: YoPOhRctb8wwbmY5@carbon, Shakeel Butt , Roman Gushchin , Vlastimil Babka , Matthew Wilcox , Hyeonggon Yoo <42.hyeyoo@gmail.com>, Muchun Song , kernel@openvz.org, linux-kernel@vger.kernel.org, Ingo Molnar , Andrew Morton , linux-mm@kvack.org, Joonsoo Kim , David Rientjes , Pekka Enberg , Christoph Lameter , Michal Hocko References: <20220518160447.20a7b96f@gandalf.local.home> <20220519100348.101d027d@gandalf.local.home> <20220519123255.543b8db6@gandalf.local.home> From: Vasily Averin In-Reply-To: <20220519123255.543b8db6@gandalf.local.home> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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/19/22 19:32, Steven Rostedt wrote: > On Thu, 19 May 2022 19:29:36 +0300 > Vasily Averin wrote: > >> Frankly speaking I vote for performance with both hands. >> However I'm still would like to avoid new sparse warnings. >> Christoph Hellwig just recently taught me, "never add '__force' before >> thinking hard about them", but in this case I would need to use it three times. >> >> I found that bitwise typecasts can be avoided by using translation unions. >> >> What do you think about following trick? > > It's really up to you memory management folks. Although I may need to > update libtraceevent to handle the union case. That may be a bit tricky. In this case, I would like to keep sub-optimal v3 patch version. If necessary, we can improve the performance later, and right now I will send v4 with minor patch description changes and ask Andrew Morton to include it in the mm tree. Thank you, Vasily Averin