Skip to content

Commit

Permalink
add debug msg for the hooked function
Browse files Browse the repository at this point in the history
Signed-off-by: ruitianzhong <ruitian-zhong@outlook.com>
  • Loading branch information
ruitianzhong committed Mar 8, 2024
1 parent 78eb181 commit 1649913
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion user/module/probe_bash.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
{
Expand Down

0 comments on commit 1649913

Please sign in to comment.