Re: [PATCH] tracing: gfp: Fix the GFP enum values shown for user space tracing tools

From: Steven Rostedt
Date: Thu Jan 16 2025 - 15:12:37 EST


On Thu, 16 Jan 2025 11:30:52 -0800
Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> wrote:

> On Thu, 16 Jan 2025 at 11:30, Steven Rostedt <rostedt@xxxxxxxxxxx> wrote:
> >
> > Would it at least be OK to add a comment there to update the tracing code
> > if a new GFP flag is added?
>
> Sure.

Heh, there's already a comment, and I can make the changes there:


/*
* In case of changes, please don't forget to update
* include/trace/events/mmflags.h and tools/perf/builtin-kmem.c
*/

enum {
___GFP_DMA_BIT,
___GFP_HIGHMEM_BIT,
[..]

-- Steve