Re: [PATCH 1/3] Add a new field to struct shrinker
From: Tony Jones
Date: Fri Jul 22 2016 - 21:27:19 EST
On 07/20/2016 07:54 AM, Michal Hocko wrote:
>> Michal, just to make sure I understand you correctly, do you mean that we
>> could infer the names of the shrinkers by looking at the names of their callbacks?
> Yes, %ps can then be used for the name of the shrinker structure
> (assuming it is available).
This is fine for emitting via the ftrace /sys interface, but in order to have the data [name] get
marshalled thru to perf (for example) you need to add it to the TP_fast_assign entry.