cat > "${tmp_expected_stdout}" <<- EOF
- name: hello
owner uid: ${uid}
- condition: event rule hit
+ condition: event rule matches
rule: test-name (type: tracepoint, domain: ust)
actions:
notify
cat > "${tmp_expected_stdout}" <<- EOF
- name: A
owner uid: ${uid}
- condition: event rule hit
+ condition: event rule matches
rule: aaa (type: tracepoint, domain: ust, filter: p == 2)
actions:
notify
errors: none
- name: B
owner uid: ${uid}
- condition: event rule hit
+ condition: event rule matches
rule: gerboise (type: tracepoint, domain: ust, log level at least INFO)
actions:
notify
errors: none
- name: C
owner uid: ${uid}
- condition: event rule hit
+ condition: event rule matches
rule: * (type: tracepoint, domain: ust)
actions:
notify
errors: none
- name: D
owner uid: ${uid}
- condition: event rule hit
+ condition: event rule matches
rule: hello* (type: tracepoint, domain: ust, exclusions: hello2,hello3,hello4)
actions:
notify
errors: none
- name: E
owner uid: ${uid}
- condition: event rule hit
+ condition: event rule matches
rule: lemming (type: tracepoint, domain: ust, log level is WARNING)
actions:
notify
errors: none
- name: F
owner uid: ${uid}
- condition: event rule hit
+ condition: event rule matches
rule: capture-payload-field (type: tracepoint, domain: ust)
captures:
- a
errors: none
- name: G
owner uid: ${uid}
- condition: event rule hit
+ condition: event rule matches
rule: capture-array (type: tracepoint, domain: ust)
captures:
- a[2]
errors: none
- name: H
owner uid: ${uid}
- condition: event rule hit
+ condition: event rule matches
rule: capture-chan-ctx (type: tracepoint, domain: ust)
captures:
- \$ctx.vpid
errors: none
- name: I
owner uid: ${uid}
- condition: event rule hit
+ condition: event rule matches
rule: capture-app-ctx (type: tracepoint, domain: ust)
captures:
- \$app.iga:active_clients
errors: none
- name: J
owner uid: ${uid}
- condition: event rule hit
+ condition: event rule matches
rule: lemming (type: tracepoint, domain: ust)
actions:
notify
cat > "${tmp_expected_stdout}" <<- EOF
- name: T0
owner uid: ${uid}
- condition: event rule hit
+ condition: event rule matches
rule: my_channel_enable (type: probe, location: lttng_channel_enable)
actions:
notify
errors: none
- name: T1
owner uid: ${uid}
- condition: event rule hit
+ condition: event rule matches
rule: my_channel_enable (type: probe, location: ${base_symbol}+${offset_hex})
actions:
notify
errors: none
- name: T2
owner uid: ${uid}
- condition: event rule hit
+ condition: event rule matches
rule: my_channel_enable (type: probe, location: 0x${channel_enable_addr})
actions:
notify
cat > "${tmp_expected_stdout}" <<- EOF
- name: T0
owner uid: ${uid}
- condition: event rule hit
+ condition: event rule matches
rule: ma-probe-elf (type: userspace probe, location type: ELF, location: ${uprobe_elf_binary}:${elf_function_name})
actions:
notify
cat > "${tmp_expected_stdout}" <<- EOF
- name: T0
owner uid: 0
- condition: event rule hit
+ condition: event rule matches
rule: ma-probe-sdt (type: userspace probe, location type: SDT, location: ${uprobe_sdt_binary}:${sdt_provider_name}:${sdt_probe_name})
actions:
notify
cat > "${tmp_expected_stdout}" <<- EOF
- name: T0
owner uid: ${uid}
- condition: event rule hit
+ condition: event rule matches
rule: open (type: syscall:entry+exit)
actions:
notify
errors: none
- name: T1
owner uid: ${uid}
- condition: event rule hit
+ condition: event rule matches
rule: open (type: syscall:entry)
actions:
notify
errors: none
- name: T2
owner uid: ${uid}
- condition: event rule hit
+ condition: event rule matches
rule: open (type: syscall:exit)
actions:
notify
errors: none
- name: T3
owner uid: ${uid}
- condition: event rule hit
+ condition: event rule matches
rule: open (type: syscall:entry+exit)
actions:
notify
errors: none
- name: T4
owner uid: ${uid}
- condition: event rule hit
+ condition: event rule matches
rule: ptrace (type: syscall:entry+exit, filter: a > 2)
actions:
notify
cat > "${tmp_expected_stdout}" <<- EOF
- name: T0
owner uid: ${uid}
- condition: event rule hit
+ condition: event rule matches
rule: some-event (type: tracepoint, domain: ust)
actions:
snapshot session \`ze-session\`
errors: none
- name: T1
owner uid: ${uid}
- condition: event rule hit
+ condition: event rule matches
rule: some-event (type: tracepoint, domain: ust)
actions:
snapshot session \`ze-session\`, path: /some/path
errors: none
- name: T2
owner uid: ${uid}
- condition: event rule hit
+ condition: event rule matches
rule: some-event (type: tracepoint, domain: ust)
actions:
snapshot session \`ze-session\`, path: /some/other/path
errors: none
- name: T3
owner uid: ${uid}
- condition: event rule hit
+ condition: event rule matches
rule: some-event (type: tracepoint, domain: ust)
actions:
snapshot session \`ze-session\`, url: net://1.2.3.4
errors: none
- name: T4
owner uid: ${uid}
- condition: event rule hit
+ condition: event rule matches
rule: some-event (type: tracepoint, domain: ust)
actions:
snapshot session \`ze-session\`, url: net://1.2.3.4:1234:1235
errors: none
- name: T5
owner uid: ${uid}
- condition: event rule hit
+ condition: event rule matches
rule: some-event (type: tracepoint, domain: ust)
actions:
snapshot session \`ze-session\`, control url: tcp://1.2.3.4:1111, data url: tcp://1.2.3.4:1112
errors: none
- name: T6
owner uid: ${uid}
- condition: event rule hit
+ condition: event rule matches
rule: some-event (type: tracepoint, domain: ust)
actions:
snapshot session \`ze-session\`, path: /some/path, max size: 1234
errors: none
- name: T7
owner uid: ${uid}
- condition: event rule hit
+ condition: event rule matches
rule: some-event (type: tracepoint, domain: ust)
actions:
snapshot session \`ze-session\`, path: /some/path, name: meh
errors: none
- name: T8
owner uid: ${uid}
- condition: event rule hit
+ condition: event rule matches
rule: some-event (type: tracepoint, domain: ust)
actions:
snapshot session \`ze-session\`, rate policy: after every 10 occurrences
errors: none
- name: T9
owner uid: ${uid}
- condition: event rule hit
+ condition: event rule matches
rule: some-event (type: tracepoint, domain: ust)
actions:
snapshot session \`ze-session\`, rate policy: once after 10 occurrences
cat > "${tmp_expected_stdout}" <<- EOF
- name: T0
owner uid: ${uid}
- condition: event rule hit
+ condition: event rule matches
rule: some-event (type: tracepoint, domain: ust)
actions:
notify, rate policy: once after 5 occurrences
errors: none
- name: T1
owner uid: ${uid}
- condition: event rule hit
+ condition: event rule matches
rule: some-event (type: tracepoint, domain: ust)
actions:
notify, rate policy: after every 10 occurrences