projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: fix deadlock with dlopen() lttng-ust
[lttng-ust.git]
/
tests
/
test-nevents
/
prog.c
diff --git
a/tests/test-nevents/prog.c
b/tests/test-nevents/prog.c
index 6b80d7faa2cb660760d31dcc0f7fa635136e5b2f..6d6ba96ddb78dae178db02c0e32b582eeebd07e4 100644
(file)
--- a/
tests/test-nevents/prog.c
+++ b/
tests/test-nevents/prog.c
@@
-15,9
+15,13
@@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+/* This test generates a trace of a certain number of events. It is used to
+ * check that no events are lost while tracing.
+ */
+
#include <string.h>
#include <stdlib.h>
#include <string.h>
#include <stdlib.h>
-#include <ust/
ust
.h>
+#include <ust/
marker
.h>
#define N_ITER 100000
#define N_ITER 100000
@@
-26,8
+30,8
@@
int main()
int i;
for(i=0; i<N_ITER; i++) {
int i;
for(i=0; i<N_ITER; i++) {
-
trace_mark(ust,
an_event, "%d", i);
-
trace_mark(ust,
another_event, "%s", "Hello, World!");
+
ust_marker(
an_event, "%d", i);
+
ust_marker(
another_event, "%s", "Hello, World!");
}
return 0;
}
return 0;
This page took
0.033653 seconds
and
4
git commands to generate.