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 7for i in `seq 0 255`; do 8 echo p $FUNCTION_FORK+${i} >> kprobe_events || continue 9done 10 11cat kprobe_events >> $testlog 12 13echo 1 > events/kprobes/enable 14( echo "forked" ) 15echo 0 > events/kprobes/enable 16echo > kprobe_events 17echo "Waiting for unoptimizing & freeing" 18sleep 5 19echo "Done" 20