projects
/
ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Disable exit fast test (known issue)
[ust.git]
/
libust
/
tracectl.c
diff --git
a/libust/tracectl.c
b/libust/tracectl.c
index bd640c3ecd9ecb363285d92ce62dc225a1713808..410b1c72e75cb52a2fd24a2898c590f31c011455 100644
(file)
--- a/
libust/tracectl.c
+++ b/
libust/tracectl.c
@@
-34,7
+34,7
@@
#include <fcntl.h>
#include <poll.h>
#include <regex.h>
#include <fcntl.h>
#include <poll.h>
#include <regex.h>
-#include <urcu/uatomic
_arch
.h>
+#include <urcu/uatomic.h>
#include <urcu/list.h>
#include <ust/marker.h>
#include <urcu/list.h>
#include <ust/marker.h>
@@
-104,7
+104,6
@@
static void print_ust_marker(FILE *fp)
{
struct ust_marker_iter iter;
{
struct ust_marker_iter iter;
- lock_ust_marker();
ust_marker_iter_reset(&iter);
ust_marker_iter_start(&iter);
ust_marker_iter_reset(&iter);
ust_marker_iter_start(&iter);
@@
-120,14
+119,13
@@
static void print_ust_marker(FILE *fp)
*/
ust_marker_iter_next(&iter);
}
*/
ust_marker_iter_next(&iter);
}
- u
nlock_ust_marker(
);
+ u
st_marker_iter_stop(&iter
);
}
static void print_trace_events(FILE *fp)
{
struct trace_event_iter iter;
}
static void print_trace_events(FILE *fp)
{
struct trace_event_iter iter;
- lock_trace_events();
trace_event_iter_reset(&iter);
trace_event_iter_start(&iter);
trace_event_iter_reset(&iter);
trace_event_iter_start(&iter);
@@
-135,7
+133,7
@@
static void print_trace_events(FILE *fp)
fprintf(fp, "trace_event: %s\n", (*iter.trace_event)->name);
trace_event_iter_next(&iter);
}
fprintf(fp, "trace_event: %s\n", (*iter.trace_event)->name);
trace_event_iter_next(&iter);
}
-
unlock_trace_events(
);
+
trace_event_iter_stop(&iter
);
}
static int connect_ustconsumer(void)
}
static int connect_ustconsumer(void)
@@
-1315,18
+1313,17
@@
static void __attribute__((constructor)) init()
DBG("UST traces will not be synchronized with LTTng traces");
}
DBG("UST traces will not be synchronized with LTTng traces");
}
+ if (getenv("UST_TRACE") || getenv("UST_AUTOPROBE")) {
+ /* Ensure ust_marker control is initialized */
+ init_ust_marker_control();
+ }
+
autoprobe_val = getenv("UST_AUTOPROBE");
if (autoprobe_val) {
struct ust_marker_iter iter;
DBG("Autoprobe enabled.");
autoprobe_val = getenv("UST_AUTOPROBE");
if (autoprobe_val) {
struct ust_marker_iter iter;
DBG("Autoprobe enabled.");
- /* Ensure ust_marker are initialized */
- //init_ust_marker();
-
- /* Ensure ust_marker control is initialized, for the probe */
- init_ust_marker_control();
-
/* first, set the callback that will connect the
* probe on new ust_marker
*/
/* first, set the callback that will connect the
* probe on new ust_marker
*/
@@
-1358,6
+1355,7
@@
static void __attribute__((constructor)) init()
auto_probe_connect(*iter.ust_marker);
ust_marker_iter_next(&iter);
}
auto_probe_connect(*iter.ust_marker);
ust_marker_iter_next(&iter);
}
+ ust_marker_iter_stop(&iter);
}
if (getenv("UST_OVERWRITE")) {
}
if (getenv("UST_OVERWRITE")) {
@@
-1401,12
+1399,6
@@
static void __attribute__((constructor)) init()
DBG("starting early tracing");
DBG("starting early tracing");
- /* Ensure ust_marker control is initialized */
- init_ust_marker_control();
-
- /* Ensure ust_marker are initialized */
- init_ust_marker();
-
/* Ensure buffers are initialized, for the transport to be available.
* We are about to set a trace type and it will fail without this.
*/
/* Ensure buffers are initialized, for the transport to be available.
* We are about to set a trace type and it will fail without this.
*/
@@
-1717,7
+1709,6
@@
static void ust_after_fork_common(ust_fork_info_t *fork_info)
pthread_mutex_unlock(&listen_sock_mutex);
pthread_mutex_unlock(&listener_thread_data_mutex);
pthread_mutex_unlock(&listen_sock_mutex);
pthread_mutex_unlock(&listener_thread_data_mutex);
-
/* Restore signals */
result = sigprocmask(SIG_SETMASK, &fork_info->orig_sigs, NULL);
if (result == -1) {
/* Restore signals */
result = sigprocmask(SIG_SETMASK, &fork_info->orig_sigs, NULL);
if (result == -1) {
@@
-1741,7
+1732,7
@@
void ust_after_fork_child(ust_fork_info_t *fork_info)
/* Sanitize the child */
ust_fork();
/* Sanitize the child */
ust_fork();
- /*
Then r
elease mutexes and reenable signals */
+ /*
R
elease mutexes and reenable signals */
ust_after_fork_common(fork_info);
}
ust_after_fork_common(fork_info);
}
This page took
0.024683 seconds
and
4
git commands to generate.