From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1113F360; Thu, 27 Jun 2024 00:09:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719446951; cv=none; b=EyV/XUO/X8Kc/i+S1TwCHYS/B9qCUjkXmOpnGJ0K3b7fVWyPST24gBFNu+pSFVSOFgB4bIrvHjM8y0WjK11iAEEy7GljDRWcE5rHTqwj2Eyye5zhxE2kEqIxne0bYj3IwKd/7mehM2VwTKUg7VqlJF7mpYndL2V1ZpK25KdUUGo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719446951; c=relaxed/simple; bh=hKOTBIUw+Fn6pRctY/GNTgAf6aULAkfzPy+AF408o7A=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=DMR72XNVTa59eT6q+WkDWo2PDKXS24E2+VuxJorC38tdIREn1IxLaXmM45AfW+vMT/KY1r+Slz5/d4VOLLs36K17Pfnvi7GbIGGmGNZMiHK7vpCGRUuGspSvrdSO6oTzsIWjwFWx1Z11CG6EFgZf0Y62WL9EiF5x9xIkwGW1GOw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 37BCBC116B1; Thu, 27 Jun 2024 00:09:08 +0000 (UTC) Date: Wed, 26 Jun 2024 20:09:06 -0400 From: Steven Rostedt To: Tetsuo Handa Cc: Alexei Starovoitov , John Ogness , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , Petr Mladek , Sergey Senozhatsky , bpf , LKML Subject: Re: [PATCH] bpf: defer printk() inside __bpf_prog_run() Message-ID: <20240626200906.37326e17@rorschach.local.home> In-Reply-To: <6264da10-b6a0-40b8-ac26-c044b7f7529c@I-love.SAKURA.ne.jp> References: <345098dc-8cb4-4808-98cf-fa9ab3af4fc4@I-love.SAKURA.ne.jp> <87ed8lxg1c.fsf@jogness.linutronix.de> <60704acc-61bd-4911-bb96-bd1cdd69803d@I-love.SAKURA.ne.jp> <87ikxxxbwd.fsf@jogness.linutronix.de> <7edb0e39-a62e-4aac-a292-3cf7ae26ccbd@I-love.SAKURA.ne.jp> <744c9c43-9e4f-4069-9773-067036237bff@I-love.SAKURA.ne.jp> <20240626122748.065a903b@rorschach.local.home> <20240626183311.05eaf091@rorschach.local.home> <6264da10-b6a0-40b8-ac26-c044b7f7529c@I-love.SAKURA.ne.jp> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: bpf@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Thu, 27 Jun 2024 08:08:57 +0900 Tetsuo Handa wrote: > How do you respond to Petr Mladek's comment > > Yeah, converting printk() into printk_deferred() or using > printk_deferred_enter() around particular code paths is a whac-a-mole > game. > > at https://lkml.kernel.org/r/ZnvVQ5cs9F0b7paI@pathway.suse.cz ? I agree with that. And your solution is no different than whack-a-mole. It's just that you used a bigger hammer to wack the mole. -- Steve