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

probe begin
{
  println("systemtap starting probe");
  hit_str = ""
}

probe kprobe.function("vfs_read")
{
  hit_str = "probe point hit"
  exit();
}

probe end
{
  println("systemtap ending probe");
  println(hit_str);
  delete hit_str;
}