Eunomia
0.1.0
A lightweight eBPF-based CloudNative Monitor tool for Container Security and Observability
|
Go to the documentation of this file.
2 #ifndef __TRACE_HELPERS_H
3 #define __TRACE_HELPERS_H
7 #define NSEC_PER_SEC 1000000000ULL
56 void print_log2_hist(
unsigned int *vals,
int vals_size,
const char *val_type);
58 unsigned int step,
const char *val_type);
const struct partition * partitions__get_by_dev(const struct partitions *partitions, unsigned int dev)
Definition: trace_helpers.c:880
const struct ksym * ksyms__get_symbol(const struct ksyms *ksyms, const char *name)
Definition: trace_helpers.c:178
Definition: trace_helpers.c:807
Definition: trace_helpers.h:42
void syms_cache__free(struct syms_cache *syms_cache)
Definition: trace_helpers.c:774
unsigned long start
Definition: trace_helpers.h:25
struct syms * syms__load_pid(int tgid)
void ksyms__free(struct ksyms *ksyms)
Definition: trace_helpers.c:146
void partitions__free(struct partitions *partitions)
Definition: trace_helpers.c:867
const struct ksym * ksyms__map_addr(const struct ksyms *ksyms, unsigned long addr)
Definition: trace_helpers.c:156
bool is_kernel_module(const char *name)
Definition: trace_helpers.c:1002
const char * name
Definition: trace_helpers.h:24
bool kprobe_exists(const char *name)
Definition: trace_helpers.c:1098
Definition: trace_helpers.h:23
const char * name
Definition: trace_helpers.h:10
Definition: trace_helpers.c:240
const struct partition * partitions__get_by_name(const struct partitions *partitions, const char *name)
Definition: trace_helpers.c:893
void syms__free(struct syms *syms)
Definition: trace_helpers.c:728
unsigned int dev
Definition: trace_helpers.h:44
void print_log2_hist(unsigned int *vals, int vals_size, const char *val_type)
Definition: trace_helpers.c:923
struct syms_cache * syms_cache__new(int nr)
Definition: trace_helpers.c:762
struct ksyms * ksyms__load(void)
Definition: trace_helpers.c:104
struct partitions * partitions__load(void)
Definition: trace_helpers.c:830
void print_linear_hist(unsigned int *vals, int vals_size, unsigned int base, unsigned int step, const char *val_type)
Definition: trace_helpers.c:963
bool vmlinux_btf_exists(void)
Definition: trace_helpers.c:1154
Definition: trace_helpers.h:9
Definition: trace_helpers.c:42
int nr
Definition: trace_helpers.c:759
bool module_btf_exists(const char *mod)
Definition: trace_helpers.c:1161
const struct sym * syms__map_addr(const struct syms *syms, unsigned long addr)
Definition: trace_helpers.c:741
struct syms * syms_cache__get_syms(struct syms_cache *syms_cache, int tgid)
Definition: trace_helpers.c:787
char * name
Definition: trace_helpers.h:43
unsigned long long get_ktime_ns(void)
Definition: trace_helpers.c:994
struct syms * syms__load_file(const char *fname)
Definition: trace_helpers.c:663
Definition: trace_helpers.c:752
unsigned long size
Definition: trace_helpers.h:26
bool fentry_can_attach(const char *name, const char *mod)
Definition: trace_helpers.c:1058
unsigned long addr
Definition: trace_helpers.h:11