Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / tools / testing / selftests / ftrace / test.d / kprobe / kprobe_insn_boundary.tc
blob4f7cc318f3316e1c3b30a5c28735a6af59ad3133
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
7 for i in `seq 0 255`; do
8 echo p $FUNCTION_FORK+${i} >> kprobe_events || continue
9 done
11 cat kprobe_events >> $testlog
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"