do_dump_sa

- module
- ucli
This commit is contained in:
zy
2023-12-12 04:05:56 -05:00
parent 96462422ce
commit 69bf4c8c69
7 changed files with 155 additions and 75 deletions

View File

@@ -11,6 +11,7 @@
mm_tree mm_tree_struct;
struct diag_variant_buffer load_monitor_variant_buffer;
struct diag_variant_buffer stand_alone_buffer;
typedef struct {
struct rcu_head rcu_head;
@@ -382,7 +383,8 @@ void diag_task_brief(struct task_struct *tsk, task_detail *detail) {
detail->cgroup_cpuset[CGROUP_NAME_LEN - 1] = 0; // cgroup cpuset name
}
// void diag_task_user_stack(struct task_struct *tsk, user_stack_detail *detail) {
// void diag_task_user_stack(struct task_struct *tsk, user_stack_detail *detail)
// {
// struct pt_regs *regs;
// unsigned long sp, ip, bp;
// struct task_struct *leader;
@@ -426,10 +428,10 @@ void diag_task_brief(struct task_struct *tsk, task_detail *detail) {
/**
* @brief diag task kernel stack | -> to orig_stack_trace_save_tsk
*
* @param tsk
* @param detail
* @return unsigned int
*
* @param tsk
* @param detail
* @return unsigned int
*/
unsigned int diag_task_kern_stack(struct task_struct *tsk,
kern_stack_detail *detail) {
@@ -438,11 +440,11 @@ unsigned int diag_task_kern_stack(struct task_struct *tsk,
/**
* @brief diag task proc chains
*
* @param style
* @param tsk
* @param mm_tree
* @param detail
*
* @param style
* @param tsk
* @param mm_tree
* @param detail
*/
void dump_proc_chains_argv(int style, struct task_struct *tsk, mm_tree *mm_tree,
proc_chains_detail *detail) {