projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tests: Fix: arm64 use sys_openat instead of sys_open
[lttng-tools.git]
/
tests
/
utils
/
testapp
/
gen-ust-nevents
/
gen-ust-nevents.c
diff --git
a/tests/utils/testapp/gen-ust-nevents/gen-ust-nevents.c
b/tests/utils/testapp/gen-ust-nevents/gen-ust-nevents.c
index 9d9f171b4616425b99116088306dedb9d16d7990..17fd8626ca5e03b14852a5c1466313aa5fc5924b 100644
(file)
--- a/
tests/utils/testapp/gen-ust-nevents/gen-ust-nevents.c
+++ b/
tests/utils/testapp/gen-ust-nevents/gen-ust-nevents.c
@@
-26,6
+26,7
@@
#include <sys/types.h>
#include <unistd.h>
#include "utils.h"
#include <sys/types.h>
#include <unistd.h>
#include "utils.h"
+#include "signal-helper.h"
#define TRACEPOINT_DEFINE
#include "tp.h"
#define TRACEPOINT_DEFINE
#include "tp.h"
@@
-40,6
+41,11
@@
int main(int argc, char **argv)
unsigned int nr_iter = 100;
useconds_t nr_usec = 0;
unsigned int nr_iter = 100;
useconds_t nr_usec = 0;
+ if (set_signal_handler()) {
+ ret = -1;
+ goto end;
+ }
+
if (argc >= 2) {
nr_iter = atoi(argv[1]);
}
if (argc >= 2) {
nr_iter = atoi(argv[1]);
}
@@
-67,6
+73,9
@@
int main(int argc, char **argv)
goto end;
}
}
goto end;
}
}
+ if (should_quit) {
+ break;
+ }
}
end:
}
end:
This page took
0.024345 seconds
and
4
git commands to generate.