Skip to content

Commit c91b052

Browse files
committed
remove debug output
1 parent 09dfb71 commit c91b052

2 files changed

Lines changed: 3 additions & 10 deletions

File tree

kernel/bpf/ir_kern.c

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,9 @@ int bpf_ir_kern_run(struct bpf_prog **prog_ptr, union bpf_attr *attr,
9090
int err = 0;
9191
struct bpf_prog *prog = *prog_ptr;
9292
printk("Program type: %d", type);
93-
if (type == BPF_PROG_TYPE_SOCKET_FILTER) {
94-
// Filter program, do not run the framework
95-
return bpf_check(prog_ptr, attr, uattr, uattr_size, NULL);
96-
}
97-
// TODO: Check if the program is offloaded to the hardware
98-
// If not, do no run the pipeline
93+
// if (type == BPF_PROG_TYPE_SOCKET_FILTER) {
94+
// return bpf_check(prog_ptr, attr, uattr, uattr_size, NULL);
95+
// }
9996

10097
struct bpf_ir_opts opts = bpf_ir_default_opts();
10198

kernel/bpf/syscall.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2713,7 +2713,6 @@ static int bpf_prog_load(union bpf_attr *attr, bpfptr_t uattr, u32 uattr_size)
27132713

27142714
/* copy epass options from user space */
27152715
if (attr->enable_epass) {
2716-
printk("ePass enabled");
27172716
if (strncpy_from_bpfptr(epass_gopt,
27182717
make_bpfptr(attr->epass_gopt,
27192718
uattr.is_kernel),
@@ -2725,9 +2724,6 @@ static int bpf_prog_load(union bpf_attr *attr, bpfptr_t uattr, u32 uattr_size)
27252724
uattr.is_kernel),
27262725
sizeof(epass_popt) - 1) < 0)
27272726
goto free_prog_sec;
2728-
2729-
printk("epass gopt: %s", epass_gopt);
2730-
printk("epass popt: %s", epass_popt);
27312727
}
27322728

27332729
/* eBPF programs must be GPL compatible to use GPL-ed functions */

0 commit comments

Comments
 (0)