heapprofd: fork mode: pass cmdline as a flag to heapprofd

Client now reads (and normalizes) /proc/own_pid/cmdline, passing it as a
separate flag to heapprofd. The forked heapprofd is otherwise unable to access
the target's cmdline entry due to hidepid.

Note also that this is making the client give up if it's unable to parse the
cmdline. Previously we would still try to carry on just using the pid (so
by-cmdline configs wouldn't work, but by-pid would).

Bug: 120185246
Change-Id: I849c4c18cd68e290077fe2633c851eb4fefd9fef
diff --git a/Android.bp b/Android.bp
index 77bcbbd..ec143a5 100644
--- a/Android.bp
+++ b/Android.bp
@@ -161,6 +161,7 @@
     "src/base/watchdog_posix.cc",
     "src/profiling/memory/client.cc",
     "src/profiling/memory/malloc_hooks.cc",
+    "src/profiling/memory/proc_utils.cc",
     "src/profiling/memory/sampler.cc",
     "src/profiling/memory/wire_protocol.cc",
   ],