add init script for last-mile logging

Add a script which configures the kernel tracing subsystem,
as needed by the last-mile logging feature.

Key points of this configuration:
- Last-mile logging uses an isolated trace "instance", so as
  not to interfere with atrace. This isolated instance has
  its own configuration of which events are enabled, and its
  own trace buffer.
- The set of trace events is configured in this init script,
  so as to limit the amount of privilege granted to system_server.

Bug: 34181209
Test: tests/wifitests/runtest.sh and manual testing (see below)

Manual test
-----------
1. Build image with this patch and r.android.com/318940
2. Verify that system boots and that we can connect to GoogleGuest.
   (Testing of actual trace functionality will occur after we've
   landed some more dependencies.)

Change-Id: I3848464691ffc2ddc40cf0b48e0b4e2a424fbc90
2 files changed
tree: 67850856c77b03be54f5579f429041e6e4664265
  1. libwifi_hal/
  2. libwifi_system/
  3. service/
  4. tests/
  5. PREUPLOAD.cfg