summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.base/overflow_error.stp
blob: f5a3e917ecff03475a27e775a84c5c4a78612ac7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# overflow some stuff to see if error message point to the correct thing.
global count;
global overflow1[3];
global overflow2[5];

probe timer.ms(10)
{
  if (count <= 3)
    {
      overflow1[count++] = gettimeofday_ns();
    }
  else
    {
      overflow2[count++] <<< gettimeofday_ns();
    }
}

probe timer.s(3)
{
  exit();
}