Eunomia  0.1.0
A lightweight eBPF-based CloudNative Monitor tool for Container Security and Observability
uprobe_helpers.h File Reference
#include <sys/types.h>
#include <unistd.h>
#include <gelf.h>
Include dependency graph for uprobe_helpers.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int get_pid_binary_path (pid_t pid, char *path, size_t path_sz)
 
int get_pid_lib_path (pid_t pid, const char *lib, char *path, size_t path_sz)
 
int resolve_binary_path (const char *binary, pid_t pid, char *path, size_t path_sz)
 
off_t get_elf_func_offset (const char *path, const char *func)
 
Elf * open_elf (const char *path, int *fd_close)
 
Elf * open_elf_by_fd (int fd)
 
void close_elf (Elf *e, int fd_close)
 

Function Documentation

◆ close_elf()

void close_elf ( Elf *  e,
int  fd_close 
)
Here is the caller graph for this function:

◆ get_elf_func_offset()

off_t get_elf_func_offset ( const char *  path,
const char *  func 
)
Here is the call graph for this function:

◆ get_pid_binary_path()

int get_pid_binary_path ( pid_t  pid,
char *  path,
size_t  path_sz 
)
Here is the caller graph for this function:

◆ get_pid_lib_path()

int get_pid_lib_path ( pid_t  pid,
const char *  lib,
char *  path,
size_t  path_sz 
)
Here is the caller graph for this function:

◆ open_elf()

Elf* open_elf ( const char *  path,
int *  fd_close 
)
Here is the caller graph for this function:

◆ open_elf_by_fd()

Elf* open_elf_by_fd ( int  fd)

◆ resolve_binary_path()

int resolve_binary_path ( const char *  binary,
pid_t  pid,
char *  path,
size_t  path_sz 
)
Here is the call graph for this function: