.. | .. |
---|
1 | 1 | #!/bin/sh |
---|
2 | 2 | # SPDX-License-Identifier: GPL-2.0 |
---|
3 | 3 | # description: ftrace - function graph filters |
---|
| 4 | +# requires: set_ftrace_filter function_graph:tracer |
---|
4 | 5 | |
---|
5 | 6 | # Make sure that function graph filtering works |
---|
6 | 7 | |
---|
7 | | -if ! grep -q function_graph available_tracers; then |
---|
8 | | - echo "no function graph tracer configured" |
---|
9 | | - exit_unsupported |
---|
10 | | -fi |
---|
11 | | - |
---|
12 | | -do_reset() { |
---|
13 | | - reset_tracer |
---|
14 | | - enable_tracing |
---|
15 | | - clear_trace |
---|
16 | | -} |
---|
17 | | - |
---|
18 | 8 | fail() { # msg |
---|
19 | | - do_reset |
---|
20 | 9 | echo $1 |
---|
21 | 10 | exit_fail |
---|
22 | 11 | } |
---|
.. | .. |
---|
47 | 36 | if [ $count -eq 0 ]; then |
---|
48 | 37 | fail "No schedule traces found?" |
---|
49 | 38 | fi |
---|
50 | | - |
---|
51 | | -do_reset |
---|
52 | 39 | |
---|
53 | 40 | exit 0 |
---|