Skip to content
Snippets Groups Projects
Commit 60ad08fb authored by mandersch's avatar mandersch
Browse files

Update Perl Module generation to fit our changes

parent a1d9464b
No related branches found
No related tags found
No related merge requests found
......@@ -14,10 +14,9 @@ sub parse_plan_csv
while (<FILE>)
{
if (/\s*(\d+)\s*,\s*(\d+)\s*/)
if (/\s*(\d+)\s*/)
{
push(@expected_results, {mode => 'EXEC', nr => $counter, time => $1});
push(@expected_results, {mode => 'IDLE', nr => $counter, time => $2});
$counter++;
}
}
......
......@@ -46,15 +46,14 @@ sub process_plan
my @plan = parse_plan_csv ($plan_file);
my @formatted_plan;
for (my $i = 0; $i < scalar @plan ; $i += 2) {
for (my $i = 0; $i < scalar @plan ; $i += 1) {
if ($plan[$i]->{time} >= 20000000000)
{
print("ERROR: Watchdog will cause kernel panic!\n");
}
push(@formatted_plan, {
exec_t => $plan[$i]->{time},
idle_t => $plan[$i+1]->{time},
index => $i/2
index => $i
});
}
......
EXEC_TIME, IDLE_TIME
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 1000000000
1000000000 , 0
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
821500
\ No newline at end of file
EXEC_TIME, IDLE_TIME
19900000000, 1900000000
1000000000, 0
825000
150024
\ No newline at end of file
......@@ -14,7 +14,6 @@ static int loop_thread_func(void *data)
while (!kthread_should_stop()) {
int a = 0;
int b = 0;
set_current_state(TASK_INTERRUPTIBLE);
for (;a < 200000; a++){b = b + a;}
printk("b = %d\n", b);
schedule();
......
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
560000
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment