⚲
Project
General
Profile
Sign in
Register
Home
Projects
Help
Search
:
Babeltrace
All Projects
LTTng
»
Babeltrace
Overview
Activity
Roadmap
Issues
Gantt
Calendar
News
Repository
Download (711 Bytes)
Bug #1179
» main.c
Francis Deslauriers, 03/21/2019 02:23 PM
#include
<stdio.h>
#include
<unistd.h>
#include
"tp.h"
#include
<sys/types.h>
#include
<sys/stat.h>
#include
<fcntl.h>
#define NUM_OF_SENSOR 2
void
allo
(
int
a
)
{
tracepoint
(
my_app
,
current_temp
,
70
+
(
rand
()
%
30
),
"🔥"
);
}
int
main
(
int
argc
,
char
*
argv
[])
{
int
x
,
rand_id
;
x
=
12
;
tracepoint
(
my_app
,
adjust_sensor
,
3
);
tracepoint
(
my_app
,
empty
);
for
(
int
i
=
0
;
i
<
6
;
i
++
)
{
tracepoint
(
my_app
,
current_temp
,
50
+
(
rand
()
%
10
),
"❄️"
);
}
for
(
int
i
=
0
;
i
<
6
;
i
++
)
{
allo
(
i
);
}
tracepoint
(
my_app
,
temp_too_high_crash
,
103
,
"🌋"
);
int
fd
=
open
(
"/proc/self/maps"
,
O_RDONLY
);
char
buf
[
50001
];
read
(
fd
,
buf
,
50000
);
close
(
fd
);
return
0
;
}
« Previous
1
2
3
4
Next »
(2-2/4)
Loading...