android_system_core/debuggerd/libdebuggerd
Elliott Hughes 32d3cdda22 libdebuggerd: fix process uptime.
I was here because we have a case where timeout(1) kills logcat, but
debuggerd alleges that the process that was killed had started less than
a second ago. I'm not sure this is the problem there, but I did notice
that far too many tombstones were claiming improbably short process
uptimes. It turns out that the code was measuring the *thread* uptime,
not the *process* uptime.

Also simplify the code a bit by switching to sysinfo(2) rather than
reading a file.

Test: manual, plus the existing unit test
Change-Id: Ie2810b1d5777ad9182be92bfb3f60795dc978b24
2021-09-21 17:30:30 -07:00
..
include/libdebuggerd [MTE] Add a HWASan-style tag dump to tombstones. 2021-06-28 15:53:10 -07:00
test Merge "debuggerd: store commandline instead of process name." 2021-03-31 08:29:54 +00:00
backtrace.cpp debuggerd: store commandline instead of process name. 2021-03-30 12:15:56 -07:00
gwp_asan.cpp Merge "Support MTE and GWP-ASan features in proto tombstones." 2021-03-19 23:42:23 +00:00
open_files_list.cpp libdebuggerd: decode fdsan owner tags. 2018-08-28 13:48:08 -07:00
scudo.cpp Support MTE and GWP-ASan features in proto tombstones. 2021-03-16 10:59:39 -07:00
tombstone.cpp Remove trailing newlines from abort message. 2021-08-18 14:13:02 -07:00
tombstone_proto.cpp libdebuggerd: fix process uptime. 2021-09-21 17:30:30 -07:00
tombstone_proto_to_text.cpp Add fault address marker in proto to tombstone. 2021-08-23 16:25:13 -07:00
utility.cpp Update for new TRAP_PERF value. 2021-07-01 03:35:24 +00:00