summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.base/kprobes.stp
blob: 62c18347205b71cb071f70301e2d8a0080762b74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
 * kprobes.stp
 * Probe to test the functionality of kprobe-based probes
 * (Dwarfless Probing)
 */

probe begin
{
  println("\n Systemtap starting probe");
}

probe kprobe.function("vfs_read")
{
  printf("\n probe point hit");
  exit();
}

probe end
{
  println("\n Systemtap starting probe");
}