projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Filters: generate backward compatible "get field" and "get context" instructions
[lttng-tools.git]
/
tests
/
regression
/
tools
/
filtering
/
gen-ust-events.c
diff --git
a/tests/regression/tools/filtering/gen-ust-events.c
b/tests/regression/tools/filtering/gen-ust-events.c
index c789c89d43312a54aa67fb69e71e02c5b28492c1..91360afb97f06bc98040f2276a6c482d3b78ab61 100644
(file)
--- a/
tests/regression/tools/filtering/gen-ust-events.c
+++ b/
tests/regression/tools/filtering/gen-ust-events.c
@@
-32,6
+32,7
@@
int main(int argc, char **argv)
{
int i, netint;
long values[] = { 1, 2, 3 };
{
int i, netint;
long values[] = { 1, 2, 3 };
+ uint32_t net_values[] = { 1, 2, 3 };
char text[10] = "test";
char escape[10] = "\\*";
double dbl = 2.0;
char text[10] = "test";
char escape[10] = "\\*";
double dbl = 2.0;
@@
-49,9
+50,14
@@
int main(int argc, char **argv)
nr_usec = atoi(argv[2]);
}
nr_usec = atoi(argv[2]);
}
+ for (i = 0; i < 3; i++) {
+ net_values[i] = htonl(net_values[i]);
+ }
+
for (i = 0; i < nr_iter; i++) {
netint = htonl(i);
for (i = 0; i < nr_iter; i++) {
netint = htonl(i);
- tracepoint(tp, tptest, i, netint, values, text, strlen(text), escape, dbl, flt);
+ tracepoint(tp, tptest, i, netint, values, text, strlen(text), escape, dbl, flt,
+ net_values);
usleep(nr_usec);
}
usleep(nr_usec);
}
This page took
0.024028 seconds
and
4
git commands to generate.