projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add condition-targeting error query
[lttng-tools.git]
/
tests
/
regression
/
tools
/
trigger
/
test_list_triggers_cli
diff --git
a/tests/regression/tools/trigger/test_list_triggers_cli
b/tests/regression/tools/trigger/test_list_triggers_cli
index c55cbcc38238a55d0b75422900e83f44bce080ed..dcc6344385f15d394f2c4187f5a506bc39756e1e 100755
(executable)
--- a/
tests/regression/tools/trigger/test_list_triggers_cli
+++ b/
tests/regression/tools/trigger/test_list_triggers_cli
@@
-62,6
+62,7
@@
test_top_level_options ()
owner uid: ${uid}
condition: event rule matches
rule: test-name (type: user tracepoint)
owner uid: ${uid}
condition: event rule matches
rule: test-name (type: user tracepoint)
+ errors: none
actions:
notify
errors: none
actions:
notify
errors: none
@@
-93,6
+94,7
@@
test_event_rule_matches_tracepoint ()
owner uid: ${uid}
condition: event rule matches
rule: aaa (type: user tracepoint, filter: p == 2)
owner uid: ${uid}
condition: event rule matches
rule: aaa (type: user tracepoint, filter: p == 2)
+ errors: none
actions:
notify
errors: none
actions:
notify
errors: none
@@
-101,6
+103,7
@@
test_event_rule_matches_tracepoint ()
owner uid: ${uid}
condition: event rule matches
rule: gerboise (type: user tracepoint, log level at least INFO)
owner uid: ${uid}
condition: event rule matches
rule: gerboise (type: user tracepoint, log level at least INFO)
+ errors: none
actions:
notify
errors: none
actions:
notify
errors: none
@@
-109,6
+112,7
@@
test_event_rule_matches_tracepoint ()
owner uid: ${uid}
condition: event rule matches
rule: * (type: user tracepoint)
owner uid: ${uid}
condition: event rule matches
rule: * (type: user tracepoint)
+ errors: none
actions:
notify
errors: none
actions:
notify
errors: none
@@
-117,6
+121,7
@@
test_event_rule_matches_tracepoint ()
owner uid: ${uid}
condition: event rule matches
rule: hello* (type: user tracepoint, exclusions: hello2,hello3,hello4)
owner uid: ${uid}
condition: event rule matches
rule: hello* (type: user tracepoint, exclusions: hello2,hello3,hello4)
+ errors: none
actions:
notify
errors: none
actions:
notify
errors: none
@@
-125,6
+130,7
@@
test_event_rule_matches_tracepoint ()
owner uid: ${uid}
condition: event rule matches
rule: lemming (type: user tracepoint, log level is WARNING)
owner uid: ${uid}
condition: event rule matches
rule: lemming (type: user tracepoint, log level is WARNING)
+ errors: none
actions:
notify
errors: none
actions:
notify
errors: none
@@
-135,6
+141,7
@@
test_event_rule_matches_tracepoint ()
rule: capture-payload-field (type: user tracepoint)
captures:
- a
rule: capture-payload-field (type: user tracepoint)
captures:
- a
+ errors: none
actions:
notify
errors: none
actions:
notify
errors: none
@@
-146,6
+153,7
@@
test_event_rule_matches_tracepoint ()
captures:
- a[2]
- \$ctx.tourlou[18]
captures:
- a[2]
- \$ctx.tourlou[18]
+ errors: none
actions:
notify
errors: none
actions:
notify
errors: none
@@
-156,6
+164,7
@@
test_event_rule_matches_tracepoint ()
rule: capture-chan-ctx (type: user tracepoint)
captures:
- \$ctx.vpid
rule: capture-chan-ctx (type: user tracepoint)
captures:
- \$ctx.vpid
+ errors: none
actions:
notify
errors: none
actions:
notify
errors: none
@@
-166,6
+175,7
@@
test_event_rule_matches_tracepoint ()
rule: capture-app-ctx (type: user tracepoint)
captures:
- \$app.iga:active_clients
rule: capture-app-ctx (type: user tracepoint)
captures:
- \$app.iga:active_clients
+ errors: none
actions:
notify
errors: none
actions:
notify
errors: none
@@
-174,6
+184,7
@@
test_event_rule_matches_tracepoint ()
owner uid: ${uid}
condition: event rule matches
rule: lemming (type: user tracepoint)
owner uid: ${uid}
condition: event rule matches
rule: lemming (type: user tracepoint)
+ errors: none
actions:
notify
errors: none
actions:
notify
errors: none
@@
-226,6
+237,7
@@
test_event_rule_matches_probe ()
owner uid: ${uid}
condition: event rule matches
rule: my_channel_enable (type: kernel:kprobe, location: lttng_channel_enable)
owner uid: ${uid}
condition: event rule matches
rule: my_channel_enable (type: kernel:kprobe, location: lttng_channel_enable)
+ errors: none
actions:
notify
errors: none
actions:
notify
errors: none
@@
-234,6
+246,7
@@
test_event_rule_matches_probe ()
owner uid: ${uid}
condition: event rule matches
rule: my_channel_enable (type: kernel:kprobe, location: ${base_symbol}+${offset_hex})
owner uid: ${uid}
condition: event rule matches
rule: my_channel_enable (type: kernel:kprobe, location: ${base_symbol}+${offset_hex})
+ errors: none
actions:
notify
errors: none
actions:
notify
errors: none
@@
-242,6
+255,7
@@
test_event_rule_matches_probe ()
owner uid: ${uid}
condition: event rule matches
rule: my_channel_enable (type: kernel:kprobe, location: 0x${channel_enable_addr})
owner uid: ${uid}
condition: event rule matches
rule: my_channel_enable (type: kernel:kprobe, location: 0x${channel_enable_addr})
+ errors: none
actions:
notify
errors: none
actions:
notify
errors: none
@@
-268,6
+282,7
@@
test_event_rule_matches_userspace_probe_elf ()
owner uid: ${uid}
condition: event rule matches
rule: ma-probe-elf (type: kernel:uprobe, location type: ELF, location: ${uprobe_elf_binary}:${elf_function_name})
owner uid: ${uid}
condition: event rule matches
rule: ma-probe-elf (type: kernel:uprobe, location type: ELF, location: ${uprobe_elf_binary}:${elf_function_name})
+ errors: none
actions:
notify
errors: none
actions:
notify
errors: none
@@
-293,6
+308,7
@@
test_event_rule_matches_userspace_probe_sdt ()
owner uid: 0
condition: event rule matches
rule: ma-probe-sdt (type: kernel:uprobe, location type: SDT, location: ${uprobe_sdt_binary}:${sdt_provider_name}:${sdt_probe_name})
owner uid: 0
condition: event rule matches
rule: ma-probe-sdt (type: kernel:uprobe, location type: SDT, location: ${uprobe_sdt_binary}:${sdt_provider_name}:${sdt_probe_name})
+ errors: none
actions:
notify
errors: none
actions:
notify
errors: none
@@
-319,6
+335,7
@@
test_event_rule_matches_syscall ()
owner uid: ${uid}
condition: event rule matches
rule: open (type: kernel:syscall:entry+exit)
owner uid: ${uid}
condition: event rule matches
rule: open (type: kernel:syscall:entry+exit)
+ errors: none
actions:
notify
errors: none
actions:
notify
errors: none
@@
-327,6
+344,7
@@
test_event_rule_matches_syscall ()
owner uid: ${uid}
condition: event rule matches
rule: open (type: kernel:syscall:entry)
owner uid: ${uid}
condition: event rule matches
rule: open (type: kernel:syscall:entry)
+ errors: none
actions:
notify
errors: none
actions:
notify
errors: none
@@
-335,6
+353,7
@@
test_event_rule_matches_syscall ()
owner uid: ${uid}
condition: event rule matches
rule: open (type: kernel:syscall:exit)
owner uid: ${uid}
condition: event rule matches
rule: open (type: kernel:syscall:exit)
+ errors: none
actions:
notify
errors: none
actions:
notify
errors: none
@@
-343,6
+362,7
@@
test_event_rule_matches_syscall ()
owner uid: ${uid}
condition: event rule matches
rule: open (type: kernel:syscall:entry+exit)
owner uid: ${uid}
condition: event rule matches
rule: open (type: kernel:syscall:entry+exit)
+ errors: none
actions:
notify
errors: none
actions:
notify
errors: none
@@
-351,6
+371,7
@@
test_event_rule_matches_syscall ()
owner uid: ${uid}
condition: event rule matches
rule: ptrace (type: kernel:syscall:entry+exit, filter: a > 2)
owner uid: ${uid}
condition: event rule matches
rule: ptrace (type: kernel:syscall:entry+exit, filter: a > 2)
+ errors: none
actions:
notify
errors: none
actions:
notify
errors: none
@@
-376,6
+397,7
@@
test_session_consumed_size_condition ()
condition: session consumed size
session name: the-session-name
threshold: 1234 bytes
condition: session consumed size
session name: the-session-name
threshold: 1234 bytes
+ errors: none
actions:
notify
errors: none
actions:
notify
errors: none
@@
-399,6
+421,7
@@
test_buffer_usage_conditions ()
channel name: the-channel-name
domain: ust
threshold (bytes): 1234
channel name: the-channel-name
domain: ust
threshold (bytes): 1234
+ errors: none
actions:
notify
errors: none
actions:
notify
errors: none
@@
-410,6
+433,7
@@
test_buffer_usage_conditions ()
channel name: the-channel-name
domain: ust
threshold (ratio): 0.25
channel name: the-channel-name
domain: ust
threshold (ratio): 0.25
+ errors: none
actions:
notify
errors: none
actions:
notify
errors: none
@@
-421,6
+445,7
@@
test_buffer_usage_conditions ()
channel name: the-channel-name
domain: ust
threshold (bytes): 2345
channel name: the-channel-name
domain: ust
threshold (bytes): 2345
+ errors: none
actions:
notify
errors: none
actions:
notify
errors: none
@@
-432,6
+457,7
@@
test_buffer_usage_conditions ()
channel name: the-channel-name
domain: ust
threshold (ratio): 0.40
channel name: the-channel-name
domain: ust
threshold (ratio): 0.40
+ errors: none
actions:
notify
errors: none
actions:
notify
errors: none
@@
-455,6
+481,7
@@
test_session_rotation_conditions ()
owner uid: ${uid}
condition: session rotation completed
session name: the-session-name
owner uid: ${uid}
condition: session rotation completed
session name: the-session-name
+ errors: none
actions:
notify
errors: none
actions:
notify
errors: none
@@
-463,6
+490,7
@@
test_session_rotation_conditions ()
owner uid: ${uid}
condition: session rotation ongoing
session name: the-session-name
owner uid: ${uid}
condition: session rotation ongoing
session name: the-session-name
+ errors: none
actions:
notify
errors: none
actions:
notify
errors: none
@@
-495,6
+523,7
@@
test_snapshot_action ()
owner uid: ${uid}
condition: event rule matches
rule: some-event (type: user tracepoint)
owner uid: ${uid}
condition: event rule matches
rule: some-event (type: user tracepoint)
+ errors: none
actions:
snapshot session \`ze-session\`
errors: none
actions:
snapshot session \`ze-session\`
errors: none
@@
-503,6
+532,7
@@
test_snapshot_action ()
owner uid: ${uid}
condition: event rule matches
rule: some-event (type: user tracepoint)
owner uid: ${uid}
condition: event rule matches
rule: some-event (type: user tracepoint)
+ errors: none
actions:
snapshot session \`ze-session\`, path: /some/path
errors: none
actions:
snapshot session \`ze-session\`, path: /some/path
errors: none
@@
-511,6
+541,7
@@
test_snapshot_action ()
owner uid: ${uid}
condition: event rule matches
rule: some-event (type: user tracepoint)
owner uid: ${uid}
condition: event rule matches
rule: some-event (type: user tracepoint)
+ errors: none
actions:
snapshot session \`ze-session\`, path: /some/other/path
errors: none
actions:
snapshot session \`ze-session\`, path: /some/other/path
errors: none
@@
-519,6
+550,7
@@
test_snapshot_action ()
owner uid: ${uid}
condition: event rule matches
rule: some-event (type: user tracepoint)
owner uid: ${uid}
condition: event rule matches
rule: some-event (type: user tracepoint)
+ errors: none
actions:
snapshot session \`ze-session\`, url: net://1.2.3.4
errors: none
actions:
snapshot session \`ze-session\`, url: net://1.2.3.4
errors: none
@@
-527,6
+559,7
@@
test_snapshot_action ()
owner uid: ${uid}
condition: event rule matches
rule: some-event (type: user tracepoint)
owner uid: ${uid}
condition: event rule matches
rule: some-event (type: user tracepoint)
+ errors: none
actions:
snapshot session \`ze-session\`, url: net://1.2.3.4:1234:1235
errors: none
actions:
snapshot session \`ze-session\`, url: net://1.2.3.4:1234:1235
errors: none
@@
-535,6
+568,7
@@
test_snapshot_action ()
owner uid: ${uid}
condition: event rule matches
rule: some-event (type: user tracepoint)
owner uid: ${uid}
condition: event rule matches
rule: some-event (type: user tracepoint)
+ errors: none
actions:
snapshot session \`ze-session\`, control url: tcp://1.2.3.4:1111, data url: tcp://1.2.3.4:1112
errors: none
actions:
snapshot session \`ze-session\`, control url: tcp://1.2.3.4:1111, data url: tcp://1.2.3.4:1112
errors: none
@@
-543,6
+577,7
@@
test_snapshot_action ()
owner uid: ${uid}
condition: event rule matches
rule: some-event (type: user tracepoint)
owner uid: ${uid}
condition: event rule matches
rule: some-event (type: user tracepoint)
+ errors: none
actions:
snapshot session \`ze-session\`, path: /some/path, max size: 1234
errors: none
actions:
snapshot session \`ze-session\`, path: /some/path, max size: 1234
errors: none
@@
-551,6
+586,7
@@
test_snapshot_action ()
owner uid: ${uid}
condition: event rule matches
rule: some-event (type: user tracepoint)
owner uid: ${uid}
condition: event rule matches
rule: some-event (type: user tracepoint)
+ errors: none
actions:
snapshot session \`ze-session\`, path: /some/path, name: meh
errors: none
actions:
snapshot session \`ze-session\`, path: /some/path, name: meh
errors: none
@@
-559,6
+595,7
@@
test_snapshot_action ()
owner uid: ${uid}
condition: event rule matches
rule: some-event (type: user tracepoint)
owner uid: ${uid}
condition: event rule matches
rule: some-event (type: user tracepoint)
+ errors: none
actions:
snapshot session \`ze-session\`, rate policy: every 10 occurrences
errors: none
actions:
snapshot session \`ze-session\`, rate policy: every 10 occurrences
errors: none
@@
-567,6
+604,7
@@
test_snapshot_action ()
owner uid: ${uid}
condition: event rule matches
rule: some-event (type: user tracepoint)
owner uid: ${uid}
condition: event rule matches
rule: some-event (type: user tracepoint)
+ errors: none
actions:
snapshot session \`ze-session\`, rate policy: once after 10 occurrences
errors: none
actions:
snapshot session \`ze-session\`, rate policy: once after 10 occurrences
errors: none
@@
-597,6
+635,7
@@
test_notify_action ()
owner uid: ${uid}
condition: event rule matches
rule: some-event (type: user tracepoint)
owner uid: ${uid}
condition: event rule matches
rule: some-event (type: user tracepoint)
+ errors: none
actions:
notify, rate policy: once after 5 occurrences
errors: none
actions:
notify, rate policy: once after 5 occurrences
errors: none
@@
-605,6
+644,7
@@
test_notify_action ()
owner uid: ${uid}
condition: event rule matches
rule: some-event (type: user tracepoint)
owner uid: ${uid}
condition: event rule matches
rule: some-event (type: user tracepoint)
+ errors: none
actions:
notify, rate policy: every 10 occurrences
errors: none
actions:
notify, rate policy: every 10 occurrences
errors: none
This page took
0.02717 seconds
and
4
git commands to generate.