Skip to content

Commit

Permalink
debug/collect-info: Include dump by goroutine leak detector.
Browse files Browse the repository at this point in the history
Add a step to copy the goroutine leak detector stack dump (sigusr1) from
/persist/agentdebug/watcher/ to the collected output directory as
`goroutin-leak-detector-stacks-dump`, if present.

Signed-off-by: Nikolay Martyanov <[email protected]>
  • Loading branch information
OhmSpectator authored and eriknordmark committed Nov 9, 2024
1 parent e8e3b1b commit e2a67f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/debug/scripts/collect-info.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

# Script version, don't forget to bump up once something is changed

VERSION=30
VERSION=31
# Add required packages here, it will be passed to "apk add".
# Once something added here don't forget to add the same package
# to the Dockerfile ('ENV PKGS' line) of the debug container,
Expand Down Expand Up @@ -457,6 +457,7 @@ ln -s /persist/log "$DIR/persist-log"
ln -s /persist/netdump "$DIR/persist-netdump"
ln -s /persist/kcrashes "$DIR/persist-kcrashes"
[ -d /persist/memory-monitor/output ] && ln -s /persist/memory-monitor/output "$DIR/persist-memory-monitor-output"
[ -f /persist/agentdebug/watcher/sigusr1 ] && cp /persist/agentdebug/watcher/sigusr1 "$DIR/goroutin-leak-detector-stacks-dump"
ln -s /run "$DIR/root-run"
cp -r /sys/fs/cgroup/memory "$DIR/sys-fs-cgroup-memory" >/dev/null 2>&1
[ -f /persist/SMART_details.json ] && ln -s /persist/SMART_details* "$DIR/"
Expand Down

0 comments on commit e2a67f5

Please sign in to comment.