diff options
author | Oystein Eftevaag <oysteine@google.com> | 2018-04-12 11:57:09 -0700 |
---|---|---|
committer | Oystein Eftevaag <oysteine@google.com> | 2018-04-12 18:58:34 +0000 |
commit | e65161797027672674de6ca1e450e581bf31bcad (patch) | |
tree | aa81203ef3bd7161d29622864aac5502f19686e0 | |
parent | c0af5300057eb4f9b04fe575e3648d20407b9855 (diff) | |
download | android_external_perfetto-e65161797027672674de6ca1e450e581bf31bcad.tar.gz android_external_perfetto-e65161797027672674de6ca1e450e581bf31bcad.tar.bz2 android_external_perfetto-e65161797027672674de6ca1e450e581bf31bcad.zip |
Export missing symbols for unittests embedding Perfetto as a shared library.
Added: SharedMemory, TraceWriter, Producer, Consumer.
Bug: 76169489
Change-Id: I1cf4bc508bda5d23fdddc4200d164cf509c864fc
-rw-r--r-- | include/perfetto/tracing/core/consumer.h | 4 | ||||
-rw-r--r-- | include/perfetto/tracing/core/producer.h | 3 | ||||
-rw-r--r-- | include/perfetto/tracing/core/shared_memory.h | 4 | ||||
-rw-r--r-- | include/perfetto/tracing/core/trace_writer.h | 3 |
4 files changed, 10 insertions, 4 deletions
diff --git a/include/perfetto/tracing/core/consumer.h b/include/perfetto/tracing/core/consumer.h index 99f912fd..08d50663 100644 --- a/include/perfetto/tracing/core/consumer.h +++ b/include/perfetto/tracing/core/consumer.h @@ -21,11 +21,13 @@ #include <vector> +#include "perfetto/base/export.h" + namespace perfetto { class TracePacket; -class Consumer { +class PERFETTO_EXPORT Consumer { public: virtual ~Consumer(); diff --git a/include/perfetto/tracing/core/producer.h b/include/perfetto/tracing/core/producer.h index 6622b6c2..79900646 100644 --- a/include/perfetto/tracing/core/producer.h +++ b/include/perfetto/tracing/core/producer.h @@ -17,6 +17,7 @@ #ifndef INCLUDE_PERFETTO_TRACING_CORE_PRODUCER_H_ #define INCLUDE_PERFETTO_TRACING_CORE_PRODUCER_H_ +#include "perfetto/base/export.h" #include "perfetto/tracing/core/basic_types.h" namespace perfetto { @@ -41,7 +42,7 @@ class SharedMemory; // This interface is subclassed by: // 1. The actual producer code in the clients e.g., the ftrace reader process. // 2. The transport layer when interposing RPC between service and producers. -class Producer { +class PERFETTO_EXPORT Producer { public: virtual ~Producer(); diff --git a/include/perfetto/tracing/core/shared_memory.h b/include/perfetto/tracing/core/shared_memory.h index 6ff7a660..39c98fc9 100644 --- a/include/perfetto/tracing/core/shared_memory.h +++ b/include/perfetto/tracing/core/shared_memory.h @@ -21,6 +21,8 @@ #include <memory> +#include "perfetto/base/export.h" + namespace perfetto { // An abstract interface that models the shared memory region shared between @@ -30,7 +32,7 @@ namespace perfetto { // memory for the out-of-process case (see src/unix_rpc). // Both this class and the Factory are subclassed by the transport layer, which // will attach platform specific fields to it (e.g., a unix file descriptor). -class SharedMemory { +class PERFETTO_EXPORT SharedMemory { public: class Factory { public: diff --git a/include/perfetto/tracing/core/trace_writer.h b/include/perfetto/tracing/core/trace_writer.h index 38ddbd60..080d01db 100644 --- a/include/perfetto/tracing/core/trace_writer.h +++ b/include/perfetto/tracing/core/trace_writer.h @@ -19,6 +19,7 @@ #include <functional> +#include "perfetto/base/export.h" #include "perfetto/protozero/message_handle.h" #include "perfetto/tracing/core/basic_types.h" @@ -44,7 +45,7 @@ class TracePacket; // Otherwise if the shared memory buffer goes away (e.g. the Service crashes) // the TraceWriter will keep writing into unmapped memory. -class TraceWriter { +class PERFETTO_EXPORT TraceWriter { public: using TracePacketHandle = protozero::MessageHandle<protos::pbzero::TracePacket>; |