Lines Matching refs:prog
342 int bpf_prog_stream_read(struct bpf_prog *prog, enum bpf_stream_id stream_id, void __user *buf, int… in bpf_prog_stream_read() argument
346 stream = bpf_stream_get(stream_id, prog->aux); in bpf_prog_stream_read()
395 void bpf_prog_stream_init(struct bpf_prog *prog) in bpf_prog_stream_init() argument
399 for (i = 0; i < ARRAY_SIZE(prog->aux->stream); i++) { in bpf_prog_stream_init()
400 atomic_set(&prog->aux->stream[i].capacity, 0); in bpf_prog_stream_init()
401 init_llist_head(&prog->aux->stream[i].log); in bpf_prog_stream_init()
402 mutex_init(&prog->aux->stream[i].lock); in bpf_prog_stream_init()
403 prog->aux->stream[i].backlog_head = NULL; in bpf_prog_stream_init()
404 prog->aux->stream[i].backlog_tail = NULL; in bpf_prog_stream_init()
408 void bpf_prog_stream_free(struct bpf_prog *prog) in bpf_prog_stream_free() argument
413 for (i = 0; i < ARRAY_SIZE(prog->aux->stream); i++) { in bpf_prog_stream_free()
414 list = llist_del_all(&prog->aux->stream[i].log); in bpf_prog_stream_free()
416 bpf_stream_free_list(prog->aux->stream[i].backlog_head); in bpf_prog_stream_free()
453 int bpf_stream_stage_commit(struct bpf_stream_stage *ss, struct bpf_prog *prog, in bpf_stream_stage_commit() argument
460 stream = bpf_stream_get(stream_id, prog->aux); in bpf_stream_stage_commit()
490 struct bpf_prog *prog; in dump_stack_cb() local
494 prog = bpf_prog_ksym_find(ip); in dump_stack_cb()
496 if (prog) { in dump_stack_cb()
497 ret = bpf_prog_get_file_line(prog, ip, &file, &line, &num); in dump_stack_cb()