Lines Matching defs:stream_id
85 static struct bpf_stream *bpf_stream_get(enum bpf_stream_id stream_id, struct bpf_prog_aux *aux)
87 if (stream_id != BPF_STDOUT && stream_id != BPF_STDERR)
89 return &aux->stream[stream_id - 1];
199 int bpf_prog_stream_read(struct bpf_prog *prog, enum bpf_stream_id stream_id, void __user *buf, int len)
203 stream = bpf_stream_get(stream_id, prog->aux);
215 __bpf_kfunc int bpf_stream_vprintk(int stream_id, const char *fmt__str, const void *args,
227 stream = bpf_stream_get(stream_id, aux);
249 __bpf_kfunc int bpf_stream_print_stack(int stream_id, struct bpf_prog_aux *aux)
255 if (!bpf_stream_get(stream_id, aux))
260 bpf_stream_stage(ss, prog, stream_id, ({
330 enum bpf_stream_id stream_id)
336 stream = bpf_stream_get(stream_id, prog->aux);