diff options
Diffstat (limited to 'usr.bin/kdump/kdump.c')
-rw-r--r-- | usr.bin/kdump/kdump.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/kdump/kdump.c b/usr.bin/kdump/kdump.c index 57f5ce2..44ee14e 100644 --- a/usr.bin/kdump/kdump.c +++ b/usr.bin/kdump/kdump.c @@ -251,7 +251,8 @@ main(int argc, char *argv[]) } } if (trpoints & (1<<ktr_header.ktr_type)) - if (pid == 0 || ktr_header.ktr_pid == pid) + if (pid == 0 || ktr_header.ktr_pid == pid || + ktr_header.ktr_tid == pid) dumpheader(&ktr_header); if ((ktrlen = ktr_header.ktr_len) < 0) errx(1, "bogus length 0x%x", ktrlen); @@ -266,7 +267,8 @@ main(int argc, char *argv[]) if (fetchprocinfo(&ktr_header, (u_int *)m) != 0) continue; sv_flags = abidump(&ktr_header); - if (pid && ktr_header.ktr_pid != pid) + if (pid && ktr_header.ktr_pid != pid && + ktr_header.ktr_tid != pid) continue; if ((trpoints & (1<<ktr_header.ktr_type)) == 0) continue; |