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 v6.5-rc3 48 lines 992 B view raw
1/* Copyright (c) 2016 Facebook 2 * 3 * This program is free software; you can redistribute it and/or 4 * modify it under the terms of version 2 of the GNU General Public 5 * License as published by the Free Software Foundation. 6 */ 7#include "vmlinux.h" 8#include <bpf/bpf_helpers.h> 9 10/* from /sys/kernel/tracing/events/task/task_rename/format */ 11struct task_rename { 12 __u64 pad; 13 __u32 pid; 14 char oldcomm[TASK_COMM_LEN]; 15 char newcomm[TASK_COMM_LEN]; 16 __u16 oom_score_adj; 17}; 18SEC("tracepoint/task/task_rename") 19int prog(struct task_rename *ctx) 20{ 21 return 0; 22} 23 24/* from /sys/kernel/tracing/events/fib/fib_table_lookup/format */ 25struct fib_table_lookup { 26 __u64 pad; 27 __u32 tb_id; 28 int err; 29 int oif; 30 int iif; 31 __u8 proto; 32 __u8 tos; 33 __u8 scope; 34 __u8 flags; 35 __u8 src[4]; 36 __u8 dst[4]; 37 __u8 gw4[4]; 38 __u8 gw6[16]; 39 __u16 sport; 40 __u16 dport; 41 char name[16]; 42}; 43SEC("tracepoint/fib/fib_table_lookup") 44int prog2(struct fib_table_lookup *ctx) 45{ 46 return 0; 47} 48char _license[] SEC("license") = "GPL";