From 16499135b871853e09c6aa3dfb4ed186260deae1 Mon Sep 17 00:00:00 2001 From: ruitianzhong Date: Fri, 8 Mar 2024 15:28:23 +0800 Subject: [PATCH] add debug msg for the hooked function Signed-off-by: ruitianzhong --- user/module/probe_bash.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/user/module/probe_bash.go b/user/module/probe_bash.go index 47c47be46..d11450a02 100644 --- a/user/module/probe_bash.go +++ b/user/module/probe_bash.go @@ -173,7 +173,8 @@ func (b *MBashProbe) setupManagers() { b.logger.Printf("%s\tHOOK binrayPath:%s, FunctionName:%s\n", b.Name(), binaryPath, readlineFuncName) b.logger.Printf("%s\tHOOK binrayPath:%s, FunctionName:execute_command\n", b.Name(), binaryPath) - + b.logger.Printf("%s\tHOOK binrayPath:%s, FunctionName:exit_builtin\n", b.Name(), binaryPath) + b.logger.Printf("%s\tHOOK binrayPath:%s, FunctionName:exec_builtin\n", b.Name(), binaryPath) b.bpfManager = &manager.Manager{ Probes: []*manager.Probe{ {