projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
benchmark tool
[lttng-ust.git]
/
libust
/
serialize.c
diff --git
a/libust/serialize.c
b/libust/serialize.c
index 8f393ed074d08ad98836db24e39ae729cd0f0122..4c23e8dd02451d46d6b8de34c418d40e872bc9f3 100644
(file)
--- a/
libust/serialize.c
+++ b/
libust/serialize.c
@@
-623,11
+623,11
@@
notrace void ltt_vtrace(const struct marker *mdata, void *probe_data,
return;
rcu_read_lock(); //ust// rcu_read_lock_sched_notrace();
return;
rcu_read_lock(); //ust// rcu_read_lock_sched_notrace();
-//ust// cpu = smp_processor_id();
cpu = ust_get_cpu();
cpu = ust_get_cpu();
-//ust// __get_cpu_var(ltt_nesting)++;
- /* FIXME: should nesting be per-cpu? */
- ltt_nesting++;
+
+ /* Force volatile access. */
+ STORE_SHARED(ltt_nesting, LOAD_SHARED(ltt_nesting) + 1);
+ barrier();
pdata = (struct ltt_active_marker *)probe_data;
eID = mdata->event_id;
pdata = (struct ltt_active_marker *)probe_data;
eID = mdata->event_id;
@@
-710,10
+710,12
@@
notrace void ltt_vtrace(const struct marker *mdata, void *probe_data,
va_end(args_copy);
/* Out-of-order commit */
ltt_commit_slot(channel, buf, buf_offset, data_size, slot_size);
va_end(args_copy);
/* Out-of-order commit */
ltt_commit_slot(channel, buf, buf_offset, data_size, slot_size);
- DBG("just commited event
at offset %ld and size %zd"
, buf_offset, slot_size);
+ DBG("just commited event
(%s/%s) at offset %ld and size %zd", mdata->channel, mdata->name
, buf_offset, slot_size);
}
}
-//ust// __get_cpu_var(ltt_nesting)--;
- ltt_nesting--;
+
+ barrier();
+ STORE_SHARED(ltt_nesting, 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.024103 seconds
and
4
git commands to generate.