From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3E12AC433FE for ; Tue, 17 May 2022 13:38:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347934AbiEQNiE (ORCPT ); Tue, 17 May 2022 09:38:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346878AbiEQNh7 (ORCPT ); Tue, 17 May 2022 09:37:59 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 048664198E for ; Tue, 17 May 2022 06:37:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=40nH6wtaPQSKPcYfhRzm0nohHoI8B7JXQDWdeAfb0LM=; b=ZmhUd+DTB2IdZZo+5NYoVuK+/q hCaQHZ5E7hsxCJ73Jv1dv/2RIKwUzzLBanXefYUYfRR8oScViC+nxZsT342Qa818iBkowrJaQGgz7 3izE9vtXhP6ahmKTtP2qbY388OFC84VQWA8QZUykGQ6jEe2ixqKVFF7C2/TA+xUiOE7pT8ICODeP+ IAiyYNDfAp9gPNkUEJh0vRMmHgzRPhrvoOvyZGFSSJL3F7iFKt+zHVQQA0jgL0BuDvuq+PEhglRwp wQ+fSlRsuG6kF1dNxWYzmrB3He0+j81Dm4vpE6Ddc8/erheaRVaUlZmQnmlnOJEDtBdrJW1QUhcDN WTMp3rtA==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nqxOV-00AtRa-6q; Tue, 17 May 2022 13:37:47 +0000 Date: Tue, 17 May 2022 14:37:47 +0100 From: Matthew Wilcox To: YoMccU66auLAPEHa@casper.infradead.org Cc: Steven Rostedt , Shakeel Butt , Roman Gushchin , Vlastimil Babka , 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 Subject: Re: [PATCH v2] tracing: add ACCOUNT flag for allocations from marked slab caches Message-ID: References: <8ef9de6a-7497-07f7-852c-befcc3843771@openvz.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8ef9de6a-7497-07f7-852c-befcc3843771@openvz.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 17, 2022 at 12:44:14PM +0300, Vasily Averin wrote: > 2) rework kmem_cache_alloc* tracepoints to use cachep instead > of current cachep->*size parameters. Now kmalloc[_node] and > kmem_cache_alloc[_node] tracepoints do not use common template You can keep the common template. Just pass in s->object_size as well as s.