函数源码

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source File:kernel\trace\bpf_trace.c Create Date:2022-07-27 13:47:41
首页 Copyright©Brick

1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
static const struct bpf_func_proto *
raw_tp_prog_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog)
{
    switch (func_id) {
    case BPF_FUNC_perf_event_output:
        return &bpf_perf_event_output_proto_raw_tp;
    case BPF_FUNC_get_stackid:
        return &bpf_get_stackid_proto_raw_tp;
    case BPF_FUNC_get_stack:
        return &bpf_get_stack_proto_raw_tp;
    default:
        return tracing_func_proto(func_id, prog);
    }
}