/* bpf_prog_array, used by kernel internally to keep track of attached BPF * programs to a given BPF hook (e.g., for tracepoints) doesn't allow the same * BPF program to be attached multiple times. So have three identical copies * ready to attach to the same tracepoint.
*/
SEC("tp/syscalls/sys_enter_nanosleep") int handle_tp1(struct pt_regs *ctx)
{
update(ctx, &tp_res); return 0;
}
SEC("tp/syscalls/sys_enter_nanosleep") int handle_tp2(struct pt_regs *ctx)
{
update(ctx, &tp_res); return 0;
}
SEC("tp/syscalls/sys_enter_nanosleep") int handle_tp3(void *ctx)
{
update(ctx, &tp_res); return 1;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.