mirror of
https://github.com/nxp-imx/linux-imx.git
synced 2025-07-12 20:35:23 +02:00
selftests/ftrace: Fix BTFARG testcase to check fprobe is enabled correctly
commit2fd3ef1b92
upstream. Since the dynevent/add_remove_btfarg.tc test case forgets to ensure that fprobe is enabled for some structure field access tests which uses the fprobe, it fails if CONFIG_FPROBE=n or CONFIG_FPROBE_EVENTS=n. Fixes it to ensure the fprobe events are supported. Fixes:d892d3d3d8
("selftests/ftrace: Add BTF fields access testcases") Cc: stable@vger.kernel.org Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
b1c2d09a40
commit
775de4e954
|
@ -53,7 +53,7 @@ fi
|
||||||
|
|
||||||
echo > dynamic_events
|
echo > dynamic_events
|
||||||
|
|
||||||
if [ "$FIELDS" ] ; then
|
if [ "$FIELDS" -a "$FPROBES" ] ; then
|
||||||
echo "t:tpevent ${TP2} obj_size=s->object_size" >> dynamic_events
|
echo "t:tpevent ${TP2} obj_size=s->object_size" >> dynamic_events
|
||||||
echo "f:fpevent ${TP3}%return path=\$retval->name:string" >> dynamic_events
|
echo "f:fpevent ${TP3}%return path=\$retval->name:string" >> dynamic_events
|
||||||
echo "t:tpevent2 ${TP4} p->se.group_node.next->prev" >> dynamic_events
|
echo "t:tpevent2 ${TP4} p->se.group_node.next->prev" >> dynamic_events
|
||||||
|
|
Loading…
Reference in New Issue
Block a user