Em Fri, Nov 13, 2015 at 12:29:13PM +, Wang Nan escreveu:
> By extending the syntax of BPF object section names, this patch allows
> user to attach BPF programs to symbol in modules. For example:
>
> SEC("module=i915\n"
> "parse_cmds=i915_parse_cmds")
> int parse_cmds(void *ctx)
> {
>
By extending the syntax of BPF object section names, this patch allows
user to attach BPF programs to symbol in modules. For example:
SEC("module=i915\n"
"parse_cmds=i915_parse_cmds")
int parse_cmds(void *ctx)
{
return 1;
}
Implementation is very simple: like what 'perf probe' does,
2 matches
Mail list logo