port: add support for BSD mktemp Use '-t' which is portable instead of the GNU specific '--tmpdir'. Change-Id: I430af6b96c27c2766a2cc4b5574af8563297d717 Signed-off-by: Michael Jeanson <mjeanson@efficios.com> Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Remove lttng_event_rule_tracepoint lttng_event_rule_tracepoint is "exploded" in: lttng_event_rule_user_tracepoint lttng_event_rule_kernel_tracepoint lttng_event_rule_jul_logging lttng_event_rule_python_logging lttng_event_rule_log4j_logging On the CLI front, the `--domain` option for the add-trigger is removed since for each event rule type the domain is implicit based on the type. `--type` accepts the following: kernel kernel:tracepoint kernel:kprobe kernel:uprobe syscall syscall:entry syscall:exit syscall:entry+exit syscall:* kernel:syscall kernel:syscall:entry kernel:syscall:exit kernel:syscall:entry+exit kernel:syscall:* user user:tracepoint python python:logging jul jul:logging log4j log4j:logging kprobe function Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com> Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com> Change-Id: I4a0489f8f2a79a2c967f5d69461bed10f40b8278
Cleanup: tests: name all temporary files to better identify leakage When using a template, we need to add `--tmpdir` to the `mktemp` arguments to place the tmp files in `/tmp` or `$TMPDIR`. Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com> Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com> Change-Id: Id107530578d91700b726ceec016a8cef772e94b0
lttng add-trigger: replace domain options with single --domain Implement the proposal to replace the --userspace, --kernel, --log4j, --jul and --python options, used to select a domain, with a single --domain option that takes an argument. Change-Id: I9c5ff77523bb974bc1facb6732f3122c2e30395e Signed-off-by: Simon Marchi <simon.marchi@efficios.com> Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
lttng add-trigger: some updates to event rule to new syntax Implement a few of the proposals for the event rule syntax related to event names that we want to adopt for the add-trigger command. - Remove the positional argument (tracepoint name). - Add --name option for tracepoints, syscalls and loggers. - Add --event-name option for probes. - Rename --exclude to --exclude-names. - Remove the --all/-a option. The equivalent now is to omit --name, which is the equivalent of --name=*. Change-Id: I7161570a47716c458a60d679bc229a8c8843b04f Signed-off-by: Simon Marchi <simon.marchi@efficios.com> Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
lttng add-trigger: rename on-event condition to event-rule-matches Implement the proposal to rename the on-event condition to event-rule-matches. This patch only updates the CLI, the API will be renamed later. Change-Id: I341d11922998043414028477fb65cfbb5a2d66cd Signed-off-by: Simon Marchi <simon.marchi@efficios.com> Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
add-trigger: rename --fire-* to --rate-policy=*:value With the move to firing policy to the action and the renaming to rate policy, a rename of the CLI options is necessary. We introduce the following format: --rate-policy=<type>:<value> Where type is either: once-after or every. Value is an unsigned long long value. Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com> Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com> Change-Id: I6df264c536293e686033d0baa8fe870c75c28b8d
Rename firing policy to rate policy This is necessary since that now that the policy is moved to the actions it is a bit weird to use the term "firing". CLI change is done in a later patch. Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com> Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com> Change-Id: Id6940a49cd0640a8fa7145dab5b805fcfa515f40