diff options
author | Oystein Eftevaag <oysteine@google.com> | 2018-04-12 13:52:11 -0700 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2018-04-12 13:52:11 -0700 |
commit | f873a38f9bdb6d0ea35a98c4ee1df62f04d3c4b2 (patch) | |
tree | aa81203ef3bd7161d29622864aac5502f19686e0 | |
parent | 659c3bd35a03f5e137b1aefb88e1bb3325d643a8 (diff) | |
parent | d2dcb7b65389e78fd42b3dc73f1caa239cd6e6ad (diff) | |
download | perfetto-f873a38f9bdb6d0ea35a98c4ee1df62f04d3c4b2.tar.gz |
Export missing symbols for unittests embedding Perfetto as a shared library. am: e651617970
am: d2dcb7b653
Change-Id: I381d0ef87f2bfcfc2382f4aa4ce2faebc49d0763
-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 99f912fd6..08d506634 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 6622b6c29..799006464 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 6ff7a6608..39c98fc97 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 38ddbd60b..080d01dba 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>; |