-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Stack_Analyzer:优化代码内容,删减不必要结构体 (#709)
* new arrangement Signed-off-by: LiuLingze <[email protected]> * update introduction Signed-off-by: LiuLingze <[email protected]> * update action Signed-off-by: LiuLingze <[email protected]> * modify submodule Signed-off-by: LiuLingze <[email protected]> * remove assets Signed-off-by: LiuLingze <[email protected]> * modify doc Signed-off-by: LiuLingze <[email protected]> * modify submodule Signed-off-by: LiuLingze <[email protected]> * modify ignore Signed-off-by: LiuLingze <[email protected]> * modify ignore Signed-off-by: LiuLingze <[email protected]> * 优化代码内容,删减不必要结构体 --------- Signed-off-by: LiuLingze <[email protected]> Co-authored-by: LiuLingze <[email protected]> Co-authored-by: 刘凌泽 <[email protected]>
- Loading branch information
1 parent
b5d90c1
commit e3540e4
Showing
6 changed files
with
375 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/* 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> | ||
#include <gelf.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); | ||
Elf *open_elf(const char *path, int *fd_close); | ||
Elf *open_elf_by_fd(int fd); | ||
void close_elf(Elf *e, int fd_close); | ||
|
||
#endif /* __UPROBE_HELPERS_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.