From: Jérémie Galarneau Date: Wed, 30 Jun 2021 22:47:52 +0000 (-0400) Subject: sessiond: generate trigger name: name triggers with the 'trigger' prefix X-Git-Tag: v2.13.0-rc3~21 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=51620a0a2448088db4295839d6f0d4af0d7099b9;p=lttng-tools.git sessiond: generate trigger name: name triggers with the 'trigger' prefix Generated trigger names currently have the form TN, where N is the number of generated trigger names over the lifetime of the session daemon. The form 'triggerN' seems more in line with autogenerated names such as channel names (e.g. 'channel0'). Signed-off-by: Jérémie Galarneau Change-Id: Id61cd4716bb4c080d9242853c366e14542f60f7c --- diff --git a/src/common/trigger.c b/src/common/trigger.c index 8a88c6d91..a599fa398 100644 --- a/src/common/trigger.c +++ b/src/common/trigger.c @@ -460,7 +460,7 @@ int lttng_trigger_generate_name(struct lttng_trigger *trigger, int ret = 0; char *generated_name = NULL; - ret = asprintf(&generated_name, "T%" PRIu64 "", unique_id); + ret = asprintf(&generated_name, "trigger%" PRIu64 "", unique_id); if (ret < 0) { ERR("Failed to generate trigger name"); ret = -1;