Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp4555546rwi; Mon, 17 Oct 2022 07:47:04 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5g09jpy150fL5QQPipKx+Busc5QGaD1LQsui9fBKPxlUeNB+FoWU1DVCd/Swwz0mx1uqf0 X-Received: by 2002:a17:90b:17d2:b0:20d:6c68:6df8 with SMTP id me18-20020a17090b17d200b0020d6c686df8mr14056025pjb.54.1666018023889; Mon, 17 Oct 2022 07:47:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666018023; cv=none; d=google.com; s=arc-20160816; b=sy1R9MU0iAE9mDly0FlIpPVsbA/XvrDBhxRbPwwx9d4Yk5nkE4u0aRneHDZFiZcQIa wkPnokLRJyMZtm3XiM83w3v2btqKyLbZuZvwQwz2kH5sy7rXUoAtG0NTGZ0K0XiBUZX4 PsJqfhM+NBRRJxQnJHKZn9RdQDKNADWk+pg/JCfK91WPYrI+VbVet8G/yarcpE7yrhr9 AhceVWU6ALZpznXN8UpcTofGCSinLHlEYFMBDTF0B8Pu14jwcc2mATYgGOreBxYN6UTu Duij3r+9rWs3YuC1XVNQsY7NNz2x4K4fHep8nbJvkOhWa+xR88AYJmpD2jh1CyckeiZv 1DxA== 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=GbXz7tq7NKssUrzdAXnhJuuFnjt3brcW7Q8fQGb47u4=; b=d7R/lw9+2+NrMweTqM3EVcDbO8QZjuRopLMsLqZx0FtsOtvrExWhtfXiIvYGGH1L/p +8vGQ1KfUhehQg4v2mlqJRXuYgHbsNkT93rY3BL5v2sjp2ZxD/PtL/VCf2GNbxWNZtCI 0iSDrUTWezV8V5LAVF3V1K8RtrdTljlTQHv/1hb++QeEenGl8c6MARYXBaw/gjbuzzbG 6YxHEcCHh80n5TnQJm8xd0BLpTVC1HD66IVwcXSImkNSO+xDEmcXQrceowrZfNXnkyRf oq0Jm1/UwQ5m2yQcg6SpUI51/2HMXxmfSbkZ9/uxf992Yefu0hh17TK4WPbkXNoDDRJG mEyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b=eM47RKzF; 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 a8-20020a170902ecc800b00184fa228b8dsi12835296plh.574.2022.10.17.07.46.49; Mon, 17 Oct 2022 07:47:03 -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=fail header.i=@igalia.com header.s=20170329 header.b=eM47RKzF; 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 S229797AbiJQOEt (ORCPT + 99 others); Mon, 17 Oct 2022 10:04:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55114 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229722AbiJQOEp (ORCPT ); Mon, 17 Oct 2022 10:04:45 -0400 Received: from fanzine2.igalia.com (fanzine.igalia.com [178.60.130.6]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9425BDF59; Mon, 17 Oct 2022 07:04:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:Cc:To:Subject:MIME-Version:Date:Message-ID:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=GbXz7tq7NKssUrzdAXnhJuuFnjt3brcW7Q8fQGb47u4=; b=eM47RKzF0IQwdt7hI0PEPj+40X caFLkkwVlwn5ckZgsjsUTCxLDHhGJF8xxp14yF4RilkN1gu3siZsXclb2GYrTdJi6w5EpqMz9tJQG 91MLbhlIuBF9QNbj1ALRdyF5i44Clj48UPwEWKotTmIC6yGv2ckeS/OmqatBQ47zIFNLyhX2J7mMh GIg4UsmFp+0q1KpPCdUI3T2UhZsS/orgALxmq79TNa5b3g8tdfYwOcxoZcQjBVsXB78ZIOuUDdZwf /yrRFzXCLpviiaNU480fL+nNnu9B8/HFEPFo3xYRcc/csY+e5PB7ZHSoCxG8kNtHOPWszDFqvfJHi QazzIumQ==; Received: from [179.113.159.85] (helo=[192.168.1.60]) by fanzine2.igalia.com with esmtpsa (Cipher TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_128_GCM:128) (Exim) id 1okQjQ-000ONG-2j; Mon, 17 Oct 2022 16:04:39 +0200 Message-ID: <4fb9381a-72f3-4ef0-fca5-05f3a06c64f4@igalia.com> Date: Mon, 17 Oct 2022 11:04:14 -0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.2 Subject: Re: [PATCH V3 07/11] notifiers: Add tracepoints to the notifiers infrastructure Content-Language: en-US To: akpm@linux-foundation.org, linux-kernel@vger.kernel.org, Xiaoming Ni , Arjan van de Ven Cc: pmladek@suse.com, bhe@redhat.com, linux-hyperv@vger.kernel.org, netdev@vger.kernel.org, x86@kernel.org, kernel-dev@igalia.com, kernel@gpiccoli.net, halves@canonical.com, fabiomirmar@gmail.com, alejandro.j.jimenez@oracle.com, andriy.shevchenko@linux.intel.com, arnd@arndb.de, bp@alien8.de, corbet@lwn.net, d.hatayama@jp.fujitsu.com, dave.hansen@linux.intel.com, dyoung@redhat.com, feng.tang@intel.com, gregkh@linuxfoundation.org, mikelley@microsoft.com, hidehiro.kawai.ez@hitachi.com, jgross@suse.com, john.ogness@linutronix.de, keescook@chromium.org, luto@kernel.org, mhiramat@kernel.org, mingo@redhat.com, paulmck@kernel.org, peterz@infradead.org, rostedt@goodmis.org, senozhatsky@chromium.org, stern@rowland.harvard.edu, tglx@linutronix.de, vgoyal@redhat.com, vkuznets@redhat.com, will@kernel.org, xuqiang36@huawei.com, Cong Wang , Sebastian Andrzej Siewior , Valentin Schneider , kexec@lists.infradead.org References: <20220819221731.480795-1-gpiccoli@igalia.com> <20220819221731.480795-8-gpiccoli@igalia.com> From: "Guilherme G. Piccoli" In-Reply-To: <20220819221731.480795-8-gpiccoli@igalia.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS 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 19/08/2022 19:17, Guilherme G. Piccoli wrote: > Currently there is no way to show the callback names for registered, > unregistered or executed notifiers. This is very useful for debug > purposes, hence add this functionality here in the form of notifiers' > tracepoints, one per operation. > > Cc: Arjan van de Ven > Cc: Cong Wang > Cc: Sebastian Andrzej Siewior > Cc: Steven Rostedt > Cc: Valentin Schneider > Cc: Xiaoming Ni > Signed-off-by: Guilherme G. Piccoli > > --- > > V3: > - Yet another major change - thanks to Arjan's great suggestion, > refactored the code to make use of tracepoints instead of guarding > the output with a Kconfig debug setting. > > V2: > - Major improvement thanks to the great idea from Xiaoming - changed > all the ksym wheel reinvention to printk %ps modifier; > > - Instead of ifdefs, using IS_ENABLED() - thanks Steven. > > - Removed an unlikely() hint on debug path. > Hi Arjan / all, apologies for the re-ping. Did you have a chance to take a look in this one, is there anything else I could improve? Thanks in advance, Guilherme