Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1666683

Re: [PATCH] oom, trace: Remove ENUM evaluation of COMPACTION_FEEDBACK

From Steven Rostedt <rostedt@goodmis.org>
Newsgroups linux.kernel
Subject Re: [PATCH] oom, trace: Remove ENUM evaluation of COMPACTION_FEEDBACK
Date 2017-06-15 14:00 +0200
Message-ID <tSBBo-210-13@gated-at.bofh.it> (permalink)
References <tSAvE-1ng-9@gated-at.bofh.it> <tSAFl-1qG-37@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu, 15 Jun 2017 12:57:21 +0200
Michal Hocko <mhocko@kernel.org> wrote:

> >  #define COMPACTION_FEEDBACK             \
> >         EM(COMPACTION_FAILED,           "failed")       \
> >         EM(COMPACTION_WITHDRAWN,        "withdrawn")    \
> >         EMe(COMPACTION_PROGRESS,        "progress")
> > 
> > Which is still needed for the __print_symbolic() usage in the
> > trace_event. But it is not needed to be evaluated.
> > 
> > Removing the evaluation part removes the unnecessary evaluations of
> > numbers to numbers.  
> 
> I will be honest with you. Even if I understood how this voodoo mapping
> works I forgot everything. So if the COMPACTION_*->names keeps working
> I have no objection to the patch.

Yes it does. It you want to verify, simply boot the kernel without the
patch and do:

 # cat /sys/kernel/debug/tracing/events/*/*/format > ~/formats1

Add the patch, compile and boot that kernel.

 # cat /sys/kernel/debug/tracing/events/*/*/format > ~/formats2

then:

 # diff formats1 formats2

and they should be the same, with the exception that the ID:'s can
change.

Also, let me send a v2. Resending this patch (from the private one)
seems to broke the format of it.

-- Steve

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH] oom, trace: Remove ENUM evaluation of COMPACTION_FEEDBACK Steven Rostedt <rostedt@goodmis.org> - 2017-06-15 12:50 +0200
  Re: [PATCH] oom, trace: Remove ENUM evaluation of COMPACTION_FEEDBACK Michal Hocko <mhocko@kernel.org> - 2017-06-15 13:00 +0200
    Re: [PATCH] oom, trace: Remove ENUM evaluation of  COMPACTION_FEEDBACK Steven Rostedt <rostedt@goodmis.org> - 2017-06-15 14:00 +0200

csiph-web