Add API to enable additional producer_name_filter entries in a session
Change-Id: I5a5517e95402ce31b6f639549a219793f6edefda
diff --git a/src/tracing/core/tracing_service_impl.h b/src/tracing/core/tracing_service_impl.h
index cc9bee6..d3e33ca 100644
--- a/src/tracing/core/tracing_service_impl.h
+++ b/src/tracing/core/tracing_service_impl.h
@@ -161,6 +161,7 @@
// TracingService::ConsumerEndpoint implementation.
void EnableTracing(const TraceConfig&, base::ScopedFile) override;
+ void ChangeTraceConfig(const TraceConfig& cfg) override;
void StartTracing() override;
void DisableTracing() override;
void ReadBuffers() override;
@@ -214,6 +215,8 @@
bool EnableTracing(ConsumerEndpointImpl*,
const TraceConfig&,
base::ScopedFile);
+ void ChangeTraceConfig(ConsumerEndpointImpl*, const TraceConfig&);
+
bool StartTracing(TracingSessionID);
void DisableTracing(TracingSessionID, bool disable_immediately = false);
void Flush(TracingSessionID tsid,
@@ -330,9 +333,9 @@
// prevent that a consumer re-attaches to a session from a different uid.
uid_t const consumer_uid;
- // The original trace config provided by the Consumer when calling
- // EnableTracing().
- const TraceConfig config;
+ // The trace config provided by the Consumer when calling
+ // EnableTracing(), plus any updates performed by ChangeTraceConfig.
+ TraceConfig config;
// List of data source instances that have been enabled on the various
// producers for this tracing session.