xref: /linux/tools/testing/selftests/ftrace/test.d/trigger/inter-event/trigger-action-hist-xfail.tc (revision 4b4193256c8d3bc3a5397b5cd9494c2ad386317d)
1a3d86a4aSTom Zanussi#!/bin/sh
2a3d86a4aSTom Zanussi# SPDX-License-Identifier: GPL-2.0
3a3d86a4aSTom Zanussi# description: event trigger - test inter-event histogram trigger expected fail actions
4*1b8eec51SMasami Hiramatsu# requires: set_event snapshot "snapshot()":README
5a3d86a4aSTom Zanussi
6a3d86a4aSTom Zanussifail() { #msg
7a3d86a4aSTom Zanussi    echo $1
8a3d86a4aSTom Zanussi    exit_fail
9a3d86a4aSTom Zanussi}
10a3d86a4aSTom Zanussi
11a3d86a4aSTom Zanussiecho "Test expected snapshot action failure"
12a3d86a4aSTom Zanussi
13ba1b9c50SMasami Hiramatsuecho 'hist:keys=comm:onmatch(sched.sched_wakeup).snapshot()' >> events/sched/sched_waking/trigger && exit_fail
14a3d86a4aSTom Zanussi
15a3d86a4aSTom Zanussiecho "Test expected save action failure"
16a3d86a4aSTom Zanussi
17ba1b9c50SMasami Hiramatsuecho 'hist:keys=comm:onmatch(sched.sched_wakeup).save(comm,prio)' >> events/sched/sched_waking/trigger && exit_fail
18a3d86a4aSTom Zanussi
19a3d86a4aSTom Zanussiexit_xfail
20