The sample period for timer can be scaled with --sample-cycle-factor. However, on ppc64, there are multiple timer events depending on which group is being used. This patch pattern matches for the timer events properly.
Signed-off-by: Mel Gorman <m...@csn.ul.ie> --- oprofile_map_events.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oprofile_map_events.pl b/oprofile_map_events.pl index a172325..403bb89 100755 --- a/oprofile_map_events.pl +++ b/oprofile_map_events.pl @@ -103,7 +103,7 @@ if ($oprofile_event eq "") { if ($opt_cycle_factor != 1 || $opt_event_factor != 1) { my ($event, $sample, $mask) = split(/:/, $oprofile_event); - if ($opt_event eq "timer") { + if ($opt_event =~ ^timer[0-9]*/) { $sample *= $opt_cycle_factor; } else { $sample *= $opt_event_factor; ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Libhugetlbfs-devel mailing list Libhugetlbfs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel