diff options
author | Ryan Savitski <rsavitski@google.com> | 2020-01-06 16:51:05 +0000 |
---|---|---|
committer | Ryan Savitski <rsavitski@google.com> | 2020-01-15 22:55:04 +0000 |
commit | e95316330bbbad46ef1cb3e0fa612639698b55cd (patch) | |
tree | 235ad453cda544dff949af6495e48d2ffa2d8ed8 /libc/malloc_debug/malloc_debug.cpp | |
parent | 175c8867b05ec14a8da1fd528c2bf17c4e67c280 (diff) |
platform profiler signal: add traced_perf codepath
This patch adds a case for the profiling signal handler (previously just
for native heapprofd profiling) when si_value == 1, corresponding to
traced_perf being the requesting party.
The handler opens /proc/self/{maps,mem}, connects to (init-created)
/dev/socket/traced_perf, and then sends the fds over the socket.
Everything happens synchronously within the signal handler. Socket is
made non-blocking, and we do not retry.
Bug: 144281346
Change-Id: Iea904694caeefe317ed8818e5b150e8819af91c2
Diffstat (limited to 'libc/malloc_debug/malloc_debug.cpp')
0 files changed, 0 insertions, 0 deletions