projects
/
ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make root able to connect to any traceable app
[ust.git]
/
libust
/
serialize.c
diff --git
a/libust/serialize.c
b/libust/serialize.c
index bd947ab1f90d9cd1358bae1538d0f80de2429e62..8aa3f4b73fac66330c139e6572dd1bfb407b728d 100644
(file)
--- a/
libust/serialize.c
+++ b/
libust/serialize.c
@@
-429,7
+429,7
@@
static inline size_t serialize_trace_data(struct ust_buffer *buf,
*/
tracer_stack_pos++;
assert(tracer_stack_pos <= TRACER_STACK_LEN);
*/
tracer_stack_pos++;
assert(tracer_stack_pos <= TRACER_STACK_LEN);
- barrier();
+
cmm_
barrier();
tracer_stack[*stack_pos_ctx] =
strlen(tmp.v_string.s) + 1;
}
tracer_stack[*stack_pos_ctx] =
strlen(tmp.v_string.s) + 1;
}
@@
-657,9
+657,9
@@
notrace void ltt_vtrace(const struct marker *mdata, void *probe_data,
cpu = ust_get_cpu();
/* Force volatile access. */
cpu = ust_get_cpu();
/* Force volatile access. */
-
STORE_SHARED(ltt_nesting,
LOAD_SHARED(ltt_nesting) + 1);
+
CMM_STORE_SHARED(ltt_nesting, CMM_
LOAD_SHARED(ltt_nesting) + 1);
stack_pos_ctx = tracer_stack_pos;
stack_pos_ctx = tracer_stack_pos;
- barrier();
+
cmm_
barrier();
pdata = (struct ltt_active_marker *)probe_data;
eID = mdata->event_id;
pdata = (struct ltt_active_marker *)probe_data;
eID = mdata->event_id;
@@
-685,7
+685,7
@@
notrace void ltt_vtrace(const struct marker *mdata, void *probe_data,
va_end(args_copy);
/* Iterate on each trace */
va_end(args_copy);
/* Iterate on each trace */
- list_for_each_entry_rcu(trace, <t_traces.head, list) {
+
cds_
list_for_each_entry_rcu(trace, <t_traces.head, list) {
/*
* Expect the filter to filter out events. If we get here,
* we went through tracepoint activation as a first step.
/*
* Expect the filter to filter out events. If we get here,
* we went through tracepoint activation as a first step.
@@
-745,9
+745,9
@@
notrace void ltt_vtrace(const struct marker *mdata, void *probe_data,
DBG("just commited event (%s/%s) at offset %ld and size %zd", mdata->channel, mdata->name, buf_offset, slot_size);
}
DBG("just commited event (%s/%s) at offset %ld and size %zd", mdata->channel, mdata->name, buf_offset, slot_size);
}
- barrier();
+
cmm_
barrier();
tracer_stack_pos = stack_pos_ctx;
tracer_stack_pos = stack_pos_ctx;
-
STORE_SHARED(ltt_nesting,
LOAD_SHARED(ltt_nesting) - 1);
+
CMM_STORE_SHARED(ltt_nesting, CMM_
LOAD_SHARED(ltt_nesting) - 1);
rcu_read_unlock(); //ust// rcu_read_unlock_sched_notrace();
}
rcu_read_unlock(); //ust// rcu_read_unlock_sched_notrace();
}
This page took
0.023964 seconds
and
4
git commands to generate.