- --condition on-event foo -u bozo
-test_failure "--condition on-event: --all with --probe" \
- "Error: Can't use -a/--all with probe event rules." \
- --condition on-event --probe=do_sys_open --all
-test_failure "--condition on-event: missing tracepoint name with --probe" \
- "Error: Need to provide either a tracepoint name or -a/--all." \
- --condition on-event -k --probe do_sys_open
-
-test_failure "--condition on-event: missing tracepoint name with --userspace-probe" \
- "Error: Need to provide either a tracepoint name or -a/--all." \
- --condition on-event -k --userspace-probe=${uprobe_elf_binary}:test_function
-
-test_failure "--condition on-event: extra argument with --userspace-probe" \
- "Error: Unexpected argument 'world'" \
- --condition on-event -k --userspace-probe=${uprobe_elf_binary}:test_failure hello world
-
-test_failure "--condition on-event: missing tracepoint name with --syscall" \
- "Error: Need to provide either a tracepoint name or -a/--all." \
- --condition on-event -k --syscall
-
-test_failure "--condition on-event: extra argument with --syscall" \
- "Error: Unexpected argument 'open'" \
- --condition on-event -k --syscall open open
+ --condition event-rule-matches -u bozo
+
+test_failure "--condition event-rule-matches: --name with --probe" \
+ "Error: Can't use --name with probe event rules." \
+ --condition event-rule-matches --probe=do_sys_open --name='hello'