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 v4.18-rc8 21 lines 494 B view raw
1/* SPDX-License-Identifier: GPL-2.0 */ 2#ifndef __TRACE_HELPER_H 3#define __TRACE_HELPER_H 4 5#include <libbpf.h> 6 7struct ksym { 8 long addr; 9 char *name; 10}; 11 12int load_kallsyms(void); 13struct ksym *ksym_search(long key); 14long ksym_get_addr(const char *name); 15 16typedef enum bpf_perf_event_ret (*perf_event_print_fn)(void *data, int size); 17 18int perf_event_mmap(int fd); 19/* return LIBBPF_PERF_EVENT_DONE or LIBBPF_PERF_EVENT_ERROR */ 20int perf_event_poller(int fd, perf_event_print_fn output_fn); 21#endif