[lkml]   [2009]   [Aug]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH 4/6] tracing, page-allocator: Add a postprocessing script for page-allocator-related ftrace events

* Mel Gorman <> wrote:

> This patch adds a simple post-processing script for the
> page-allocator-related trace events. It can be used to give an
> indication of who the most allocator-intensive processes are and
> how often the zone lock was taken during the tracing period.
> Example output looks like

Note, this script hard-codes certain aspects of the output format:

+my $regex_traceevent =
+my $regex_fragdetails = 'page=([0-9a-f]*) pfn=([0-9]*) alloc_order=([0-9]*)
+fallback_order=([0-9]*) pageblock_order=([0-9]*) alloc_migratetype=([0-9]*)
+fallback_migratetype=([0-9]*) fragmenting=([0-9]) change_ownership=([0-9])';
+my $regex_statname = '[-0-9]*\s\((.*)\).*';
+my $regex_statppid = '[-0-9]*\s\(.*\)\s[A-Za-z]\s([0-9]*).*';

the proper appproach is to parse /debug/tracing/events/mm/*/format.
That is why we emit a format string - to detach tools and reduce the
semi-ABI effect.


 \ /
  Last update: 2009-08-07 10:03    [W:0.084 / U:0.476 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site