int target_pid = 0; void *user_ptr = 0; int read_ret[10];
char _license[] SEC("license") = "GPL";
/* * These are the kfuncs, the others are helpers
*/ int bpf_copy_from_user_str(void *dst, u32, constvoid *, u64) __weak __ksym; int bpf_copy_from_user_task_str(void *dst, u32, constvoid *, struct task_struct *, u64) __weak __ksym;
SEC("fentry/" SYS_PREFIX "sys_nanosleep") int do_probe_read(void *ctx)
{ char buf[8];
if ((bpf_get_current_pid_tgid() >> 32) != target_pid) return 0;
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.