summaryrefslogtreecommitdiffstats
path: root/tools/testing/ktest/examples/bootconfigs/boottrace.bconf
blob: 7aa706cccb3b5525a5290002e267318613ef48dc (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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
ftrace.event {
	task.task_newtask {
		filter = "pid < 128"
		enable
	}
	kprobes.vfs_read {
		probes = "vfs_read $arg1 $arg2"
		filter = "common_pid < 200"
		enable
	}
	synthetic.initcall_latency {
		fields = "unsigned long func", "u64 lat"
		hist {
			keys = func.sym,lat
			values = lat
			sort = lat
		}
	}
	initcall.initcall_start.hist {
		keys = func;
		var.ts0 = common_timestamp.usecs
	}
	initcall.initcall_finish.hist {
		keys = func
		var.lat = common_timestamp.usecs - $ts0
		onmatch {
			event = initcall.initcall_start
			trace = initcall_latency, func, $lat
		}
	}
}

ftrace.instance {
	foo {
		tracer = "function"
		ftrace.filters = "user_*"
		cpumask = 1
		options = nosym-addr
		buffer_size = 512KB
		trace_clock = mono
		event.signal.signal_deliver.actions=snapshot
	}
	bar {
		tracer = "function"
		ftrace.filters = "kernel_*"
		cpumask = 2
		trace_clock = x86-tsc
	}
}

ftrace.alloc_snapshot

kernel {
	trace_options = sym-addr
	trace_event = "initcall:*"
	trace_buf_size = 1M
	ftrace = function
	ftrace_filter = "vfs*"
}