Cut off process names for profiling.

/proc/<pid>/comm cannot be longer than 16 characters. Because of this,
packages starting with android.hardware.* etc.. are indistinguishable
between tool that use comm to identify processes. This makes using tools
like systrace extremely difficult and error prone.

Test: external/chromium-trace/systrace.py -b 32000 audio sched freq idle
workq irq binder_driver am sync hal app pm ss -t 5
Test: (sanity) hidl_test
Bug: 33664825

(cherry picked from commit 405d76134f5ec033817a21fbbcc13083fe0349fe)
Merged-In: I4c9ba4d75b9ad1c1161335fe3595e13ac3222bb6
Change-Id: I4c9ba4d75b9ad1c1161335fe3595e13ac3222bb6
diff --git a/transport/include/hidl/ServiceManagement.h b/transport/include/hidl/ServiceManagement.h
index 2035fb7..2b2266b 100644
--- a/transport/include/hidl/ServiceManagement.h
+++ b/transport/include/hidl/ServiceManagement.h
@@ -39,6 +39,12 @@
 sp<::android::hidl::manager::V1_0::IServiceManager> getPassthroughServiceManager();
 
 namespace details {
+// e.x.: android.hardware.foo@1.0, IFoo, default
+void onRegistration(const std::string &packageName,
+                    const std::string &interfaceName,
+                    const std::string &instanceName);
+
+// e.x.: android.hardware.foo@1.0::IFoo, default
 void waitForHwService(const std::string &interface, const std::string &instanceName);
 };