.. | .. |
---|
1 | 1 | #!/bin/sh |
---|
2 | 2 | # SPDX-License-Identifier: GPL-2.0 |
---|
3 | 3 | # description: Register/unregister many kprobe events |
---|
4 | | - |
---|
5 | | -[ -f kprobe_events ] || exit_unsupported # this is configurable |
---|
| 4 | +# requires: kprobe_events |
---|
6 | 5 | |
---|
7 | 6 | # ftrace fentry skip size depends on the machine architecture. |
---|
8 | 7 | # Currently HAVE_KPROBES_ON_FTRACE defined on x86 and powerpc64le |
---|
.. | .. |
---|
11 | 10 | ppc64le) OFFS=8;; |
---|
12 | 11 | *) OFFS=0;; |
---|
13 | 12 | esac |
---|
14 | | - |
---|
15 | | -if [ -d events/kprobes ]; then |
---|
16 | | - echo 0 > events/kprobes/enable |
---|
17 | | - echo > kprobe_events |
---|
18 | | -fi |
---|
19 | 13 | |
---|
20 | 14 | N=0 |
---|
21 | 15 | echo "Setup up kprobes on first available 256 text symbols" |
---|