openbmc / openbmc-test-automation

Apache License 2.0
100 stars 92 forks source link

FFDC to collect PLDM strace log ? #2158

Closed gkeishin closed 2 years ago

gkeishin commented 2 years ago
strace -p `pidof pldmd`

Ideally, this needs to be collected in the event when PLDM hung, but the log collector won't have that logic to check..

so if we can collect this one? run the command and then CTRL +C after 5-10 seconds

@peterp-ibm can u check on it.

gkeishin commented 2 years ago

Probably not a good idea to put this in for generic log collection. only on failure.. but lets see if we can learn something from it to improve the script

peterp-ibm commented 2 years ago

To get strace output need to use option '-o' or pipe stderr to a file strace -p $(pidof pldmd) -o /tmp/pldmd.txt strace -p $(pidof pldmd) 2> /tmp/pldmd.txt

Now the issue is how to interrupt/stop strace without ffdc code having to look at the command itself.

peterp-ibm commented 2 years ago

Done! https://gerrit.openbmc-project.xyz/c/openbmc/openbmc-test-automation/+/51705 Committed for review and merge.