sessiond: generate trigger name: name triggers with the 'trigger' prefix
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 30 Jun 2021 22:47:52 +0000 (18:47 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 7 Jul 2021 21:31:33 +0000 (17:31 -0400)
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 <jeremie.galarneau@efficios.com>
Change-Id: Id61cd4716bb4c080d9242853c366e14542f60f7c

src/common/trigger.c

index 8a88c6d91ffb84d1e50a293dbca334b1bb4d0552..a599fa3982b98853951d2f8f296007aa67fe4970 100644 (file)
@@ -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;
This page took 0.026857 seconds and 4 git commands to generate.