repo.or.cz
/
linux
/
fpc-iii.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
x86/mm/pat: Don't report PAT on CPUs that don't support it
[linux/fpc-iii.git]
/
samples
/
bpf
/
tracex1_user.c
blob
31a48183beea6185bab62e581c8172429bfe13ca
1
#include <stdio.h>
2
#include <linux/bpf.h>
3
#include <unistd.h>
4
#include
"libbpf.h"
5
#include
"bpf_load.h"
6
7
int
main
(
int
ac
,
char
**
argv
)
8
{
9
FILE
*
f
;
10
char
filename
[
256
];
11
12
snprintf
(
filename
,
sizeof
(
filename
),
"%s_kern.o"
,
argv
[
0
]);
13
14
if
(
load_bpf_file
(
filename
)) {
15
printf
(
"%s"
,
bpf_log_buf
);
16
return
1
;
17
}
18
19
f
=
popen
(
"taskset 1 ping -c5 localhost"
,
"r"
);
20
(
void
)
f
;
21
22
read_trace_pipe
();
23
24
return
0
;
25
}