|
Eunomia
0.1.0
A lightweight eBPF-based CloudNative Monitor tool for Container Security and Observability
|
#include "helpers/trace_helpers.h"#include <bpf/bpf.h>#include <bpf/btf.h>#include <bpf/libbpf.h>#include <ctype.h>#include <errno.h>#include <fcntl.h>#include <limits.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <sys/resource.h>#include <time.h>#include <unistd.h>#include "helpers/uprobe_helpers.h"
Classes | |
| struct | ksyms |
| struct | load_range |
| struct | dso |
| struct | map |
| struct | syms |
| struct | syms_cache |
| struct | partitions |
Macros | |
| #define | _GNU_SOURCE |
| #define | min(x, y) |
| #define | DISK_NAME_LEN 32 |
| #define | MINORBITS 20 |
| #define | MINORMASK ((1U << MINORBITS) - 1) |
| #define | MKDEV(ma, mi) (((ma) << MINORBITS) | (mi)) |
| #define | STARTS_WITH(mapname, prefix) (!strncmp(mapname, prefix, sizeof(prefix) - 1)) |
Enumerations | |
| enum | elf_type { EXEC, DYN, PERF_MAP, VDSO, UNKNOWN } |
Functions | |
| struct ksyms * | ksyms__load (void) |
| void | ksyms__free (struct ksyms *ksyms) |
| const struct ksym * | ksyms__map_addr (const struct ksyms *ksyms, unsigned long addr) |
| const struct ksym * | ksyms__get_symbol (const struct ksyms *ksyms, const char *name) |
| struct syms * | syms__load_file (const char *fname) |
| struct syms * | syms__load_pid (pid_t tgid) |
| void | syms__free (struct syms *syms) |
| const struct sym * | syms__map_addr (const struct syms *syms, unsigned long addr) |
| struct syms_cache * | syms_cache__new (int nr) |
| void | syms_cache__free (struct syms_cache *syms_cache) |
| struct syms * | syms_cache__get_syms (struct syms_cache *syms_cache, int tgid) |
| struct partitions * | partitions__load (void) |
| void | partitions__free (struct partitions *partitions) |
| const struct partition * | partitions__get_by_dev (const struct partitions *partitions, unsigned int dev) |
| const struct partition * | partitions__get_by_name (const struct partitions *partitions, const char *name) |
| void | print_log2_hist (unsigned int *vals, int vals_size, const char *val_type) |
| void | print_linear_hist (unsigned int *vals, int vals_size, unsigned int base, unsigned int step, const char *val_type) |
| unsigned long long | get_ktime_ns (void) |
| bool | is_kernel_module (const char *name) |
| bool | fentry_can_attach (const char *name, const char *mod) |
| bool | kprobe_exists (const char *name) |
| bool | vmlinux_btf_exists (void) |
| bool | module_btf_exists (const char *mod) |
| #define _GNU_SOURCE |
| #define DISK_NAME_LEN 32 |
| #define min | ( | x, | |
| y | |||
| ) |
| #define MINORBITS 20 |
| #define MINORMASK ((1U << MINORBITS) - 1) |
| #define MKDEV | ( | ma, | |
| mi | |||
| ) | (((ma) << MINORBITS) | (mi)) |
| #define STARTS_WITH | ( | mapname, | |
| prefix | |||
| ) | (!strncmp(mapname, prefix, sizeof(prefix) - 1)) |
| enum elf_type |
| bool fentry_can_attach | ( | const char * | name, |
| const char * | mod | ||
| ) |

| unsigned long long get_ktime_ns | ( | void | ) |
| bool is_kernel_module | ( | const char * | name | ) |
| bool kprobe_exists | ( | const char * | name | ) |
| void ksyms__free | ( | struct ksyms * | ksyms | ) |
| struct ksyms* ksyms__load | ( | void | ) |
| bool module_btf_exists | ( | const char * | mod | ) |

| void partitions__free | ( | struct partitions * | partitions | ) |
| const struct partition* partitions__get_by_dev | ( | const struct partitions * | partitions, |
| unsigned int | dev | ||
| ) |
| const struct partition* partitions__get_by_name | ( | const struct partitions * | partitions, |
| const char * | name | ||
| ) |
| struct partitions* partitions__load | ( | void | ) |
| void print_linear_hist | ( | unsigned int * | vals, |
| int | vals_size, | ||
| unsigned int | base, | ||
| unsigned int | step, | ||
| const char * | val_type | ||
| ) |
| void print_log2_hist | ( | unsigned int * | vals, |
| int | vals_size, | ||
| const char * | val_type | ||
| ) |
| void syms__free | ( | struct syms * | syms | ) |

| struct syms* syms__load_file | ( | const char * | fname | ) |

| struct syms* syms__load_pid | ( | pid_t | tgid | ) |


| void syms_cache__free | ( | struct syms_cache * | syms_cache | ) |

| struct syms* syms_cache__get_syms | ( | struct syms_cache * | syms_cache, |
| int | tgid | ||
| ) |

| struct syms_cache* syms_cache__new | ( | int | nr | ) |
| bool vmlinux_btf_exists | ( | void | ) |
