44# Licensed under the Universal Permissive License v 1.0
55# as shown at https://oss.oracle.com/licenses/upl/
66
7+ # bengsig 8-may-2023 - Top 6->8 included
8+ # bengsig ??? 2019 - Creation
9+
710# This is the first step that is done from runsys.rwl.
811# We do little more than finding the six top ash
912# events, save those in the rwloadsim schema
1619#
1720# Note that the ashdata table that will be filled in
1821# step2 doens't have information about WHICH events
19- # are included, it only has columns named E1 until E6 .
20- # The mapping of E1 .. E6 to event names is saved
22+ # are included, it only has columns named E1 until E8 .
23+ # The mapping of E1 .. E8 to event names is saved
2124# in the rwlash table that we insert into here
2225# and later use in csvdata.rwl to create the final
2326# gnuplot line
@@ -69,9 +72,11 @@ procedure ashstep1(string starttime) nostatistics
6972 writeline yt, ", nvl( E4,0)";
7073 writeline yt, ", nvl( E5,0)";
7174 writeline yt, ", nvl( E6,0)";
75+ writeline yt, ", nvl( E7,0)";
76+ writeline yt, ", nvl( E8,0)";
7277 writeline yt, ", nvl( OTHER,0)";
7378 writeline yt, "from (";
74- writeline yt, "select sample_time_utc,CPU,E1,E2,E3,E4,E5,E6,OTHER";
79+ writeline yt, "select sample_time_utc,CPU,E1,E2,E3,E4,E5,E6,E7,E8, OTHER";
7580 writeline yt, "from (";
7681 writeline yt, "select sample_time_utc";
7782 writeline yt, ", event";
@@ -82,7 +87,7 @@ procedure ashstep1(string starttime) nostatistics
8287 writeline yt, ", decode(event";
8388 enum := 1;
8489 # stop after the top 6 events by count
85- for evgroup at systemdb and enum <= 6 loop
90+ for evgroup at systemdb and enum <= 8 loop
8691 writeline yt, ", '"||event||"', 'E"||enum||"'";
8792 insevname;
8893 enum += 1;
@@ -105,6 +110,8 @@ procedure ashstep1(string starttime) nostatistics
105110 writeline yt, ", 'E4' as E4";
106111 writeline yt, ", 'E5' as E5";
107112 writeline yt, ", 'E6' as E6";
113+ writeline yt, ", 'E7' as E7";
114+ writeline yt, ", 'E8' as E8";
108115 writeline yt, ", 'CPU' as CPU";
109116 writeline yt, ", 'OTHER'as OTHER";
110117 writeline yt, ")))";
0 commit comments