projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Copyright ownership transfer
[lttng-tools.git]
/
src
/
bin
/
lttng
/
commands
/
track-untrack.c
diff --git
a/src/bin/lttng/commands/track-untrack.c
b/src/bin/lttng/commands/track-untrack.c
index d28f8a7e136b321989485976f9e007130655a36e..3b520d1e7d955065770d85ec57e9f539745c94c3 100644
(file)
--- a/
src/bin/lttng/commands/track-untrack.c
+++ b/
src/bin/lttng/commands/track-untrack.c
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (C) 2011
David Goulet <david.goulet@polymtl.ca>
+ * Copyright (C) 2011
EfficiOS Inc.
* Copyright (C) 2015 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
* Copyright (C) 2020 Jérémie Galarneau <jeremie.galarneau@efficios.com>
*
* Copyright (C) 2015 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
* Copyright (C) 2020 Jérémie Galarneau <jeremie.galarneau@efficios.com>
*
@@
-7,11
+7,6
@@
*
*/
*
*/
-#include "common/dynamic-buffer.h"
-#include "common/tracker.h"
-#include "lttng/domain.h"
-#include "lttng/lttng-error.h"
-#include "lttng/tracker.h"
#define _LGPL_SOURCE
#include <ctype.h>
#include <popt.h>
#define _LGPL_SOURCE
#include <ctype.h>
#include <popt.h>
@@
-29,6
+24,10
@@
#include <common/dynamic-array.h>
#include <common/mi-lttng.h>
#include <common/optional.h>
#include <common/dynamic-array.h>
#include <common/mi-lttng.h>
#include <common/optional.h>
+#include <common/dynamic-buffer.h>
+#include <common/tracker.h>
+
+#include <lttng/lttng.h>
#include "../command.h"
#include "../command.h"
@@
-231,7
+230,7
@@
static enum cmd_error_code run_command_string(enum cmd_type cmd_type,
const char *_args,
struct mi_writer *writer)
{
const char *_args,
struct mi_writer *writer)
{
- struct lttng_process_attr_tracker_handle *tracker_handle;
+ struct lttng_process_attr_tracker_handle *tracker_handle
= NULL
;
const enum lttng_error_code handle_ret_code =
lttng_session_get_tracker_handle(session_name,
domain_type, process_attr,
const enum lttng_error_code handle_ret_code =
lttng_session_get_tracker_handle(session_name,
domain_type, process_attr,
@@
-284,7
+283,7
@@
static enum cmd_error_code run_command_string(enum cmd_type cmd_type,
strtoul(one_value_str, NULL, 10);
if (writer) {
strtoul(one_value_str, NULL, 10);
if (writer) {
-
const int
ret = mi_lttng_integral_process_attribute_value(
+ ret = mi_lttng_integral_process_attribute_value(
writer, process_attr,
(int64_t) one_value_int, true);
if (ret) {
writer, process_attr,
(int64_t) one_value_int, true);
if (ret) {
@@
-354,7
+353,7
@@
static enum cmd_error_code run_command_string(enum cmd_type cmd_type,
} else {
if (writer) {
} else {
if (writer) {
-
const int
ret = mi_lttng_string_process_attribute_value(
+ ret = mi_lttng_string_process_attribute_value(
writer, process_attr,
one_value_str, true);
if (ret) {
writer, process_attr,
one_value_str, true);
if (ret) {
@@
-470,7
+469,7
@@
static enum cmd_error_code run_command_string(enum cmd_type cmd_type,
free(prettified_arg);
if (writer) {
free(prettified_arg);
if (writer) {
-
int
ret = mi_lttng_writer_write_element_bool(writer,
+ ret = mi_lttng_writer_write_element_bool(writer,
mi_lttng_element_success,
cmd_ret == CMD_SUCCESS);
mi_lttng_element_success,
cmd_ret == CMD_SUCCESS);
This page took
0.026563 seconds
and
4
git commands to generate.