Re: [PATCH] trace/page_ref: print out the page migratetype name

From: Huang Shijie
Date: Wed Mar 27 2019 - 20:56:53 EST


On Wed, Mar 27, 2019 at 09:24:22AM -0400, Steven Rostedt wrote:
> On Wed, 27 Mar 2019 13:09:37 +0800
> Huang Shijie <sjhuang@xxxxxxxxxxx> wrote:
>
> > Print out the page migratetype name which is more readable.
>
> Except that it breaks perf and trace-cmd, as they wont know what a
> migratetype_names array contains.
>
> See how writeback does it. Which would be something like this for you.
>
> /* enums need to be exported to user space */
Thanks for pointing this...

I did not notice that it will breaks the perf and trace-cmd.

So please just ignore this patch.

Thanks
Huang Shijie