Skip to content

Commit 5adfabd

Browse files
committed
add ifdef bpf as its needed only in kernel space (and compiles on RHEL)
1 parent aed3850 commit 5adfabd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

next/src/xcapture.h

+2
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,10 @@
3434
#define PF_KTHREAD 0x00200000 /* I am a kernel thread */
3535

3636
// Separate output files in CSV mode
37+
#ifndef __BPF__
3738
extern FILE *sample_output_file;
3839
extern FILE *completion_output_file;
40+
#endif
3941

4042
#define SAMPLE_CSV_FILE "xcapture_samples.csv"
4143
#define COMPLETION_CSV_FILE "xcapture_sc_completion.csv"

0 commit comments

Comments
 (0)