Lines Matching defs:prog
13 * USAGE: hbm [-d] [-l] [-n <id>] [-r <rate>] [-s] [-t <secs>] [-w] [-h] [prog]
17 * -n <#> To create cgroup \"/hbm#\" and attach prog
29 * prog BPF program file name. Name defaults to hbm_out_kern.o
123 static int prog_load(char *prog)
127 .file = prog,
135 if (access(prog, O_RDONLY) < 0) {
136 printf("Error accessing file %s: %s\n", prog, strerror(errno));
151 printf("ERROR: bpf_prog_load_xattr failed for: %s\n", prog);
161 static int run_bpf_prog(char *prog, int cg_id)
172 map_fd = prog_load(prog);
203 log_err("Attaching prog");
415 " [-s] [-t <secs>] [-w] [-h] [prog]\n"
421 " -n <#> to create cgroup \"/hbm#\" and attach prog\n"
433 " prog BPF program file name. Name defaults to\n"
439 char *prog = "hbm_out_kern.o";
455 prog = "hbm_edt_kern.o";
496 prog = argv[optind];
497 printf("HBM prog: %s\n", prog != NULL ? prog : "NULL");
499 return run_bpf_prog(prog, cg_id);