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 03B78347C7; Wed, 15 Oct 2025 16:49:59 +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=1760547000; cv=none; b=NlHFktXFkqJS7Md8n766/Orm9Cqu3jXgJ7s6RjmeU++5hD+730qlY7fqFhhwRPU5LXPp+I3zd+zOKEywrUyQ0IdIQtGNiiUMzX3LjyKRnOhRKesNM2Z4Tb/B+2kne4w5mM8LH7rcwrJJcSObCC7NYfCLKX5Nd0Q7XWWPOOzX2yI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760547000; c=relaxed/simple; bh=jHn8mBTmQDsers17Sc22lz/OU2GHErVRpMh14tH0dTE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ZWy6q8WeKBjZDqjZS67FSwBlvxrEEYiK10gJNLg9cODTojax+m3XHqPg/FyJ5EXcpjCBKqAzFyvoQp94rjza7vqkiv5sxd5CAZJxA3i+VCTTyudUxPmGNHpqwFO5jSb0z6qEgrSSVCQtAv0X3drhtdus9SovhP1wXCMXYSMkYI8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=CUxAGSU3; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="CUxAGSU3" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B5DABC4CEF8; Wed, 15 Oct 2025 16:49:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1760546999; bh=jHn8mBTmQDsers17Sc22lz/OU2GHErVRpMh14tH0dTE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=CUxAGSU3nPV3urotXuxZIAo8PEzSkNs7oylf/pifc6hd1vMqsTRC9QJdoAQCQPm1m bUdYs8A768fWWFwXy3cEey3CzQqmcOQV2Q4QzYoNt70jjgSSKONfb+RcaFCwiS+nB8 GhcVtHa4bNdVCSM1kntsSZejXd4NYdsJ4XklyJ1WW/lFo/0Jci5mDtpRwjy5QfAzm0 dDOVIQm5jvqBHU9qSqD1rCNa4PWeCb9fyFXAFUVDpFcEGpW38ivXDfO1D5hzIqAbLe nrGlUNvmobPiG/YPt3R5nc7gFYCPvjspJx5FC6NhCJIEwK+BDo51cRTm3b2OcMAF6k kGhhh7bwTVSOw== Date: Wed, 15 Oct 2025 17:49:55 +0100 From: Simon Horman To: Florian Westphal Cc: Eric Dumazet , Wang Liang , nhorman@tuxdriver.com, davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, yuehaibing@huawei.com, zhangchangzhong@huawei.com Subject: Re: [PATCH RFC net-next] net: drop_monitor: Add debugfs support Message-ID: References: <20251015101417.1511732-1-wangliang74@huawei.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Wed, Oct 15, 2025 at 01:14:47PM +0200, Florian Westphal wrote: > Eric Dumazet wrote: > > I do not understand the fascination with net/core/drop_monitor.c, > > which looks very old school to me, > > and misses all the features, flexibility, scalability that 'perf', > > eBPF tracing, bpftrace, .... have today. > > > > Adding /sys/kernel/debug/drop_monitor/* is even more old school. > > > > Not mentioning the maintenance burden. > > > > For me the choice is easy : > > > > # CONFIG_NET_DROP_MONITOR is not set > > > > perf record -ag -e skb:kfree_skb sleep 1 > > > > perf script # or perf report > > Maybe: > > diff --git a/net/Kconfig b/net/Kconfig > --- a/net/Kconfig > +++ b/net/Kconfig > @@ -400,15 +400,15 @@ config NET_PKTGEN > module will be called pktgen. > > config NET_DROP_MONITOR > - tristate "Network packet drop alerting service" > + tristate "Legacy network packet drop alerting service" +1 ...