X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fmi-lttng.h;h=c3976681e76fcfe6a90adf134a50aa4c05bec971;hp=23b7810c4680de3b50d694d5b5ae7afa43f5ba0b;hb=bf239d4cf83c083459c7672ac8a1965108bacca6;hpb=ebbf5ab7ebfa3774d5ca1a26d63013384f7e1407 diff --git a/src/common/mi-lttng.h b/src/common/mi-lttng.h index 23b7810c4..c3976681e 100644 --- a/src/common/mi-lttng.h +++ b/src/common/mi-lttng.h @@ -101,8 +101,6 @@ extern const char * const mi_lttng_context_type_perf_thread_counter; extern const char * const mi_lttng_element_perf_counter_context; /* Strings related to pid */ -extern const char * const mi_lttng_element_processes; -extern const char * const mi_lttng_element_process; extern const char * const mi_lttng_element_pid_id; /* Strings related to save command */ @@ -196,8 +194,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; /* @@ -619,6 +615,25 @@ int mi_lttng_processes_open(struct mi_writer *writer); */ int mi_lttng_process(struct mi_writer *writer, pid_t pid , const char *name, int is_open); + +/* + * TODO: move pid of lttng list -u to process semantic on mi api bump + * Machine interface of a Process. + * + * writer An instance of a machine interface writer. + * pid A PID. + * + * is_open Defines whether or not the session element shall be closed. + * This should be used carefully and the client + * must close the pid element. + * Use case: nested addition information on a domain + * ex: channel event. + * + * Returns zero if the element's value could be written. + * Negative values indicate an error. + */ +int mi_lttng_pid(struct mi_writer *writer, pid_t pid , const char *name, + int is_open); /* * Machine interface: open a targets element. *