Skip to content

Commit

Permalink
chore: auto-include strace klib if user passes --trace/--syscall-summary
Browse files Browse the repository at this point in the history
  • Loading branch information
rinor committed Jun 7, 2024
1 parent 18af2a4 commit bdeb7c5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/flags_run_local_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"fmt"
"net"
"os/exec"
"slices"
"strconv"
"strings"
"time"
Expand Down Expand Up @@ -77,6 +78,10 @@ func (flags *RunLocalInstanceCommandFlags) MergeToConfig(c *types.Config) error
c.Debugflags = append(c.Debugflags, "syscall_summary")
}

if (flags.Trace || flags.SyscallSummary) && !slices.Contains(c.Klibs, "strace") {
c.Klibs = append(c.Klibs, "strace") // debugsyscalls, notrace, tracelist, syscall_summary
}

if flags.MissingFiles {
c.Debugflags = append(c.Debugflags, "missing_files")
}
Expand Down

0 comments on commit bdeb7c5

Please sign in to comment.