#!/usr/bin/probevue /* Globals */ long r_op_count; /* Count of read operations */ @@BEGIN { /* Reset all values */ r_op_count = 0; printf("Script starting.\n"); trace(r_op_count); } @@syscall:*:read:entry { r_op_count++; trace(r_op_count); } @@interval:*:clock:1000 { trace(r_op_count); printf("Ops an interval (long long - %%lld): %lld\n", r_op_count); printf("Ops an interval (long - %%ld) : %ld\n", r_op_count); printf("Ops an interval (int - %%d) : %d\n", r_op_count); printf("Ops an interval (long long - %%llX): %llX\n", r_op_count); trace(r_op_count); /* Reset the values */ r_op_count = 0; trace(r_op_count); } @@interval:*:clock:2100 { printf("Script exiting.\n"); trace(r_op_count); exit(); }