Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at master 15 lines 275 B view raw
1// SPDX-License-Identifier: GPL-2.0 2#include "vmlinux.h" 3#include <bpf/bpf_helpers.h> 4#include <string.h> 5 6struct pt_regs regs; 7 8char _license[] SEC("license") = "GPL"; 9 10SEC("uprobe") 11int probe(struct pt_regs *ctx) 12{ 13 __builtin_memcpy(&regs, ctx, sizeof(regs)); 14 return 0; 15}