lkml.org 
[lkml]   [2017]   [Oct]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] tracing, memcg, vmscan: Hide trace events when not in use
On Fri, 13 Oct 2017 08:38:26 +0200
Michal Hocko <mhocko@kernel.org> wrote:

> I do not understand the ftrace machinery

Not many do :-/

> and I have to admit I was under
> impression that nothing really gets defined if the code using them
> doesn't exist but if this is not the case then this patch makes sense to
> me

Sometimes events are created by kernel proper that are used by modules,
or created by modules to be used by other modules (kvm does this with
kvm_intel and kvm_amd). Unfortunately, for these cases they need to
stay. Or later, I plan on moving them to where they are used, because
they have the same issue (wasting memory).

>
> > Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
>
> Acked-by: Michal Hocko <mhocko@suse.com>

Thanks!

-- Steve

\
 
 \ /
  Last update: 2017-10-13 16:30    [W:0.170 / U:0.312 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site