.. | .. |
---|
1 | 1 | #!/bin/sh |
---|
2 | 2 | # SPDX-License-Identifier: GPL-2.0 |
---|
3 | 3 | # description: Kprobe events - probe points |
---|
4 | | - |
---|
5 | | -[ -f kprobe_events ] || exit_unsupported # this is configurable |
---|
| 4 | +# requires: kprobe_events |
---|
6 | 5 | |
---|
7 | 6 | TARGET_FUNC=tracefs_create_dir |
---|
8 | 7 | |
---|
.. | .. |
---|
30 | 29 | UINT_TEST=yes |
---|
31 | 30 | fi |
---|
32 | 31 | |
---|
33 | | -echo 0 > events/enable |
---|
34 | | -echo > kprobe_events |
---|
35 | 32 | echo "p:testprobe ${TARGET_FUNC}" > kprobe_events |
---|
36 | 33 | echo "p:testprobe ${TARGET}" > kprobe_events |
---|
37 | 34 | echo "p:testprobe ${TARGET_FUNC}${NEXT}" > kprobe_events |
---|
.. | .. |
---|
39 | 36 | if [ "${UINT_TEST}" = yes ]; then |
---|
40 | 37 | ! echo "p:testprobe ${TARGET_FUNC}${OVERFLOW}" > kprobe_events |
---|
41 | 38 | fi |
---|
42 | | -echo > kprobe_events |
---|
43 | | -clear_trace |
---|