Re: [PATCH] net: tcp_drop adds `reason` parameter for tracing

From: Steven Rostedt
Date: Wed Aug 25 2021 - 17:47:40 EST


On Wed, 25 Aug 2021 08:39:40 -0700
Eric Dumazet <edumazet@xxxxxxxxxx> wrote:

> Since these drops are hardly hot path, why not simply use a string ?
> An ENUM will not really help grep games.

I'm more concerned with ring buffer space than hot paths. The ring
buffer is limited in size, and the bigger the events, the less there
are.

grep games shouldn't be too bad, since it would find the place that
maps the names with the enums, and then you just search for the enums.

-- Steve