1 #!/bin/sh 1 #!/bin/sh 2 # SPDX-License-Identifier: GPL-2.0 2 # SPDX-License-Identifier: GPL-2.0 3 # description: Kprobe profile 3 # description: Kprobe profile 4 # requires: kprobe_events 4 # requires: kprobe_events 5 5 6 ! grep -q 'myevent' kprobe_profile 6 ! grep -q 'myevent' kprobe_profile 7 echo "p:myevent $FUNCTION_FORK" > kprobe_event 7 echo "p:myevent $FUNCTION_FORK" > kprobe_events 8 grep -q 'myevent[[:space:]]*0[[:space:]]*0$' k 8 grep -q 'myevent[[:space:]]*0[[:space:]]*0$' kprobe_profile 9 echo 1 > events/kprobes/myevent/enable 9 echo 1 > events/kprobes/myevent/enable 10 ( echo "forked" ) 10 ( echo "forked" ) 11 grep -q 'myevent[[:space:]]*[[:digit:]]*[[:spa 11 grep -q 'myevent[[:space:]]*[[:digit:]]*[[:space:]]*0$' kprobe_profile 12 echo 0 > events/kprobes/myevent/enable 12 echo 0 > events/kprobes/myevent/enable 13 echo > kprobe_events 13 echo > kprobe_events 14 ! grep -q 'myevent' kprobe_profile 14 ! grep -q 'myevent' kprobe_profile
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.