projects
/
lttv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove event.c and type.c
[lttv.git]
/
ltt-usertrace
/
sample-instrument-fct.c
diff --git
a/ltt-usertrace/sample-instrument-fct.c
b/ltt-usertrace/sample-instrument-fct.c
index 37140da8d1cb6f7259a88e437fe153b531f1f69d..cb8732d54d297fe753cd012bae0b92dbad00fd41 100644
(file)
--- a/
ltt-usertrace/sample-instrument-fct.c
+++ b/
ltt-usertrace/sample-instrument-fct.c
@@
-3,9
+3,7
@@
#include <stdio.h>
#include <unistd.h>
#include <stdio.h>
#include <unistd.h>
-#define LTT_TRACE
-#define LTT_BLOCKING 1
-#include <ltt/ltt-facility-user_generic.h>
+
void test_function(void)
void test_function(void)
@@
-16,6
+14,10
@@
void test_function(void)
int main(int argc, char **argv)
{
int main(int argc, char **argv)
{
+ printf("Abort with CTRL-C.\n");
+ printf("See the result file in /tmp/ltt-usertrace.\n");
+
+
while(1) {
test_function();
sleep(1);
while(1) {
test_function();
sleep(1);
This page took
0.022476 seconds
and
4
git commands to generate.