From: Jonathan Rajotte Date: Fri, 10 Apr 2015 17:17:25 +0000 (-0400) Subject: Cleanup: reuse tracker* element from config X-Git-Tag: v2.8.0-rc1~492 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=f95771e88e932a4accf0fa152d8d14b43278920f;p=lttng-tools.git Cleanup: reuse tracker* element from config Signed-off-by: Jonathan Rajotte Signed-off-by: Jérémie Galarneau --- diff --git a/src/common/mi-lttng.c b/src/common/mi-lttng.c index f2d223f86..cc2d25b52 100644 --- a/src/common/mi-lttng.c +++ b/src/common/mi-lttng.c @@ -80,7 +80,6 @@ const char * const mi_lttng_element_perf_counter_context = "perf_counter_context /* Strings related to pid */ const char * const mi_lttng_element_processes = "processes"; const char * const mi_lttng_element_process = "process"; -const char * const mi_lttng_element_pid_id = "id"; /* Strings related to save command */ const char * const mi_lttng_element_save = "save"; @@ -165,8 +164,6 @@ const char * const mi_lttng_element_snapshot_session_name = "session_name"; const char * const mi_lttng_element_snapshots = "snapshots"; /* String related to track/untrack command */ -const char * const mi_lttng_element_track_untrack_targets = "targets"; -const char * const mi_lttng_element_track_untrack_pid_target = "pid_target"; const char * const mi_lttng_element_track_untrack_all_wildcard = "*"; @@ -1201,7 +1198,7 @@ LTTNG_HIDDEN int mi_lttng_targets_open(struct mi_writer *writer) { return mi_lttng_writer_open_element(writer, - mi_lttng_element_track_untrack_targets); + config_element_targets); } LTTNG_HIDDEN @@ -1210,7 +1207,7 @@ int mi_lttng_pid_target(struct mi_writer *writer, pid_t pid, int is_open) int ret; ret = mi_lttng_writer_open_element(writer, - mi_lttng_element_track_untrack_pid_target); + config_element_target_pid); if (ret) { goto end; } diff --git a/src/common/mi-lttng.h b/src/common/mi-lttng.h index 23b7810c4..3722e54e2 100644 --- a/src/common/mi-lttng.h +++ b/src/common/mi-lttng.h @@ -196,8 +196,6 @@ const char *mi_lttng_buffertype_string(enum lttng_buffer_type value); const char *mi_lttng_calibratetype_string(enum lttng_calibrate_type val); /* String related to track/untrack command */ -const char * const mi_lttng_element_track_untrack_targets; -const char * const mi_lttng_element_track_untrack_pid_target; const char * const mi_lttng_element_track_untrack_all_wildcard; /*