projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Session create/release tested.
[lttng-ust.git]
/
tests
/
hello
/
hello.c
diff --git
a/tests/hello/hello.c
b/tests/hello/hello.c
index 469561cc5641462dbb2066ff245939b9a14bb9f9..e8eb78efc93adc2779f681825aca79e95adec909 100644
(file)
--- a/
tests/hello/hello.c
+++ b/
tests/hello/hello.c
@@
-25,6
+25,7
@@
#include <sys/stat.h>
#include <fcntl.h>
#include <signal.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <signal.h>
+#include <string.h>
#include "ust_tests_hello.h"
#include "ust_tests_hello.h"
@@
-39,6
+40,7
@@
int init_int_handler(void)
int result;
struct sigaction act;
int result;
struct sigaction act;
+ memset(&act, 0, sizeof(act));
result = sigemptyset(&act.sa_mask);
if (result == -1) {
perror("sigemptyset");
result = sigemptyset(&act.sa_mask);
if (result == -1) {
perror("sigemptyset");
@@
-64,6
+66,9
@@
int main(int argc, char **argv)
{
int i;
long values[] = { 1, 2, 3 };
{
int i;
long values[] = { 1, 2, 3 };
+ char text[10] = "test";
+ double dbl = 2.0;
+ float flt = 2222.0;
init_int_handler();
init_int_handler();
@@
-72,7
+77,8
@@
int main(int argc, char **argv)
sleep(1);
for (i = 0; i < 50; i++) {
sleep(1);
for (i = 0; i < 50; i++) {
- tracepoint(ust_tests_hello_tptest, i, values);
+ tracepoint(ust_tests_hello_tptest, i, values,
+ text, strlen(text), dbl, flt);
usleep(100000);
}
return 0;
usleep(100000);
}
return 0;
This page took
0.023722 seconds
and
4
git commands to generate.