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
11 cat kprobe_events
>> $testlog
13 echo 1 > events
/kprobes
/enable
15 echo 0 > events
/kprobes
/enable
17 echo "Waiting for unoptimizing & freeing"