Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5930363rwb; Tue, 22 Nov 2022 06:47:20 -0800 (PST) X-Google-Smtp-Source: AA0mqf48E9+h/UhgxNC3ghaL9+mazZ10DOOQWgO/BFWtpwFhngQ8NOFFxZojbpzhlO7He1ScOYsG X-Received: by 2002:a17:906:b11:b0:7ae:50c6:453a with SMTP id u17-20020a1709060b1100b007ae50c6453amr19784686ejg.596.1669128440525; Tue, 22 Nov 2022 06:47:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669128440; cv=none; d=google.com; s=arc-20160816; b=FIGUBsxKgjRHZ1fv24CKRFS2BRrbgZusTD2karzp0FAnrtbUuAmqGMOqgAp6/jc0XO P/SJLeXWh9YylJGSH0aYUp8kN3NExT2xR8yYhjfn1wyTkpd2vZeA+Ng3ji9siHwsxp9o a+12Tc4PVWIDSLLc2F5+0IDZjzFTnmHRQEyBq5/MgAWYOjflWH3bup221bJN4i/mzjSC psF3oBVWay9qJ3jQ7SWsa71THboIwSzIK+RlTp35UWqfJv14aFtgoxMF7v9ZBuKEzF/k 3zwDQbbH6UmffQvKVe2TGjTMrZEpOXNvebCFlD5E8fitHkZDM5PBaSUFHG0JaU52nn+Q BseQ== 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=9So0O8Pi8i8JHhFiG20jjK2ykR3NF1IMBTGdS9HzvSc=; b=SwmfQEUo0FAdXA64+AjlfK6iTAJ6VHGnQU8EHJriavakQvcddKiXkJnRo0Mrhy5U67 34mT7gXAYNwd1ty8zsBb8PKtXWIkyLcxVlPfu4K68flM83tY8lwztLrJbRvvYBobMNiv +Nx6VwKEJ1LLf1p+XGjh7sxRMHOB3oMMlWEUI1+DmdFKyr9v5ErYmSLCbO8mPLkuGlrF Y/bqXR4SNwUHXTmeTPbv8kcPPGCUkGNOpre59LwydaECm3MmxBayfYxlmFXd1qzxRzsC HqvoOiJMnP3e0OpKN9V7ycEWin3VacxTGQJfNs+QAwlPiI9auTfsjro/TbX6RF1mtzyc aOzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b=gfoaakAT; 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 cx26-20020a05640222ba00b0045fca739593si4639543edb.188.2022.11.22.06.46.56; Tue, 22 Nov 2022 06:47:20 -0800 (PST) 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=gfoaakAT; 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 S233757AbiKVOa7 (ORCPT + 91 others); Tue, 22 Nov 2022 09:30:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49496 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233239AbiKVOa5 (ORCPT ); Tue, 22 Nov 2022 09:30:57 -0500 Received: from fanzine2.igalia.com (fanzine2.igalia.com [213.97.179.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE9A36317F; Tue, 22 Nov 2022 06:30:54 -0800 (PST) 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=9So0O8Pi8i8JHhFiG20jjK2ykR3NF1IMBTGdS9HzvSc=; b=gfoaakATo3McgEoQ5zIJQ3Gsom dufqZdgPKM+yw0jFFN/K6+V7g7l5QwaZOV/0S2RmCXXt15cNLAvk2VhphewPoXa2YAcaOECIr2gzj pP/kEwIlL2NbJOX4eTQidYlo/snxWt1FO1oIKfU5ewy12GTREQtKId7G2AJGDrYUl/GGDIwUtfuDy vNGyHBkQ5D11aIgDyyyXqfReJn5NyJiQtwx9VSsqkqWz3H58/Q0jf0A88u5Ryn7UkSAYIOiFRY3MP UITEbCNj1Wp77PuPX5qEZ7voLPw36j5yCi+XjucIaEBqYPOrBRSQhGun0A700bXW3ntCeLuarNZlC SXGIR7Rw==; Received: from [177.102.6.147] (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 1oxTM4-006y2D-7E; Tue, 22 Nov 2022 14:30:28 +0100 Message-ID: <9d9823a9-255b-84c7-53b1-47fe51e1d756@igalia.com> Date: Tue, 22 Nov 2022 10:30:22 -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: Arjan van de Ven , Xiaoming Ni Cc: Cong Wang , Sebastian Andrzej Siewior , Valentin Schneider , rostedt@goodmis.org, pmladek@suse.com, akpm@linux-foundation.org, kexec@lists.infradead.org, linux-kernel@vger.kernel.org, linux-hyperv@vger.kernel.org, netdev@vger.kernel.org, x86@kernel.org, kernel-dev@igalia.com, kernel@gpiccoli.net 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. > > > include/trace/events/notifiers.h | 69 ++++++++++++++++++++++++++++++++ > kernel/notifier.c | 6 +++ > 2 files changed, 75 insertions(+) > create mode 100644 include/trace/events/notifiers.h > Hi Arjan / Xiaoming / all, monthly ping heh If there's any advice on how to move things here, I would appreciate! Thanks in advance and apologies for the re-pings. Cheers, Guilherme