lcc/clcc/lib/helpers/uprobe_helpers.h (9 lines of code) (raw):

/* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */ /* Copyright (c) 2021 Google LLC. */ #ifndef __UPROBE_HELPERS_H #define __UPROBE_HELPERS_H #include <sys/types.h> #include <unistd.h> 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); #endif /* __UPROBE_HELPERS_H */