1 #!/bin/sh 2 # SPDX-License-Identifier: GPL-2.0-or-later 3 # Copyright (C) 2023 Akanksha J N, IBM corporation 4 # description: Register multiple kprobe events in a function 5 # requires: kprobe_events 6 7 for i in `seq 0 255`; do 8 echo p $FUNCTION_FORK+${i} >> kprobe_events || continue 9 done 10 11 cat kprobe_events >> $testlog 12 13 echo 1 > events/kprobes/enable 14 ( echo "forked" ) 15 echo 0 > events/kprobes/enable 16 echo > kprobe_events 17 echo "Waiting for unoptimizing & freeing" 18 sleep 5 19 echo "Done"
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.