Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add namespace of the process in the coredump filename. (sonic-net#1091)
Look for namespace of this process in crashing process's environ file.If any, add it to core filename as < binary name >.< timestamp >.< local pid inside container >.< ns > .core.gz. e.g. orchagent.1599073263.45.5.core.gz <-- 5 is the asic namespace. For processes that don't have asic namespace, there is no change. e.g. snmpd.1599073245.27.core.gz The /etc/sysctl.conf kernel.core_pattern is set to pass pid in host as last arg.
- Loading branch information