Home
last modified time | relevance | path

Searched refs:ds_config (Results 1 – 25 of 39) sorted by relevance

12

/external/perfetto/src/profiling/common/
Dproducer_support_unittest.cc30 DataSourceConfig ds_config; in TEST() local
31 ds_config.set_enable_extra_guardrails(true); in TEST()
32 EXPECT_TRUE(CanProfileAndroid(ds_config, 1, {}, "userdebug", "/dev/null")); in TEST()
36 DataSourceConfig ds_config; in TEST() local
37 ds_config.set_enable_extra_guardrails(false); in TEST()
44 EXPECT_TRUE(CanProfileAndroid(ds_config, 10001, {}, "userdebug", tmp.path())); in TEST()
48 DataSourceConfig ds_config; in TEST() local
49 ds_config.set_enable_extra_guardrails(true); in TEST()
56 EXPECT_TRUE(CanProfileAndroid(ds_config, 10001, {}, "userdebug", tmp.path())); in TEST()
60 DataSourceConfig ds_config; in TEST() local
[all …]
Dproducer_support.cc33 bool CanProfile(const DataSourceConfig& ds_config, in CanProfile() argument
42 base::ignore_result(ds_config); in CanProfile()
50 return CanProfileAndroid(ds_config, uid, installed_by, std::string(buf), in CanProfile()
55 bool CanProfileAndroid(const DataSourceConfig& ds_config, in CanProfileAndroid() argument
100 switch (ds_config.session_initiator()) { in CanProfileAndroid()
Dproducer_support.h28 bool CanProfile(const DataSourceConfig& ds_config,
31 bool CanProfileAndroid(const DataSourceConfig& ds_config,
/external/perfetto/test/
Dend_to_end_integrationtest.cc261 auto* ds_config = trace_config->add_data_sources()->mutable_config(); in SetTraceConfigForBugreportTest() local
262 ds_config->set_name("android.perfetto.FakeProducer"); in SetTraceConfigForBugreportTest()
263 ds_config->mutable_for_testing()->set_message_count(3); in SetTraceConfigForBugreportTest()
264 ds_config->mutable_for_testing()->set_message_size(10); in SetTraceConfigForBugreportTest()
265 ds_config->mutable_for_testing()->set_send_batch_on_register(true); in SetTraceConfigForBugreportTest()
319 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in TEST_F() local
320 ds_config->set_name("linux.ftrace"); in TEST_F()
321 ds_config->set_target_buffer(0); in TEST_F()
326 ds_config->set_ftrace_config_raw(ftrace_config.SerializeAsString()); in TEST_F()
366 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in TEST_F() local
[all …]
Dend_to_end_benchmark.cc52 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in BenchmarkProducer() local
53 ds_config->set_name("android.perfetto.FakeProducer"); in BenchmarkProducer()
54 ds_config->set_target_buffer(0); in BenchmarkProducer()
65 ds_config->mutable_for_testing()->set_seed(kRandomSeed); in BenchmarkProducer()
66 ds_config->mutable_for_testing()->set_message_count(message_count); in BenchmarkProducer()
67 ds_config->mutable_for_testing()->set_message_size(message_bytes); in BenchmarkProducer()
68 ds_config->mutable_for_testing()->set_max_messages_per_second(messages_per_s); in BenchmarkProducer()
145 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in BenchmarkConsumer() local
146 ds_config->set_name("android.perfetto.FakeProducer"); in BenchmarkConsumer()
147 ds_config->set_target_buffer(0); in BenchmarkConsumer()
[all …]
Dend_to_end_shared_memory_fuzzer.cc170 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in FuzzSharedMemory() local
171 ds_config->set_name("android.perfetto.FakeProducer"); in FuzzSharedMemory()
172 ds_config->set_target_buffer(0); in FuzzSharedMemory()
/external/perfetto/test/cts/
Dend_to_end_integrationtest_cts.cc72 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in TestMockProducer() local
73 ds_config->set_name(producer_name); in TestMockProducer()
74 ds_config->set_target_buffer(0); in TestMockProducer()
79 ds_config->mutable_for_testing()->set_seed(kRandomSeed); in TestMockProducer()
80 ds_config->mutable_for_testing()->set_message_count(kEventCount); in TestMockProducer()
81 ds_config->mutable_for_testing()->set_message_size(kMessageSizeBytes); in TestMockProducer()
82 ds_config->mutable_for_testing()->set_send_batch_on_register(true); in TestMockProducer()
Dheapprofd_test_cts.cc83 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in ProfileRuntime() local
84 ds_config->set_name("android.heapprofd"); in ProfileRuntime()
85 ds_config->set_target_buffer(0); in ProfileRuntime()
92 ds_config->set_heapprofd_config_raw(heapprofd_config.SerializeAsString()); in ProfileRuntime()
124 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in ProfileStartup() local
125 ds_config->set_name("android.heapprofd"); in ProfileStartup()
126 ds_config->set_target_buffer(0); in ProfileStartup()
133 ds_config->set_heapprofd_config_raw(heapprofd_config.SerializeAsString()); in ProfileStartup()
Dheapprofd_java_test_cts.cc73 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in ProfileRuntime() local
74 ds_config->set_name("android.java_hprof"); in ProfileRuntime()
75 ds_config->set_target_buffer(0); in ProfileRuntime()
79 ds_config->set_java_hprof_config_raw(java_hprof_config.SerializeAsString()); in ProfileRuntime()
Dtraced_perf_test_cts.cc84 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in ProfileSystemWide() local
85 ds_config->set_name("linux.perf"); in ProfileSystemWide()
86 ds_config->set_target_buffer(0); in ProfileSystemWide()
92 ds_config->set_perf_event_config_raw(perf_config.SerializeAsString()); in ProfileSystemWide()
/external/perfetto/src/traced/probes/ftrace/
Dftrace_config_muxer_unittest.cc232 const FtraceDataSourceConfig* ds_config = model.GetDataSourceConfig(id); in TEST_F() local
233 ASSERT_TRUE(ds_config); in TEST_F()
234 ASSERT_THAT(ds_config->event_filter.GetEnabledEvents(), in TEST_F()
271 const FtraceDataSourceConfig* ds_config = model.GetDataSourceConfig(id); in TEST_F() local
272 ASSERT_THAT(ds_config->event_filter.GetEnabledEvents(), in TEST_F()
334 const FtraceDataSourceConfig* ds_config = model.GetDataSourceConfig(id); in TEST_F() local
335 ASSERT_TRUE(ds_config); in TEST_F()
336 ASSERT_THAT(ds_config->event_filter.GetEnabledEvents(), in TEST_F()
384 const FtraceDataSourceConfig* ds_config = model.GetDataSourceConfig(id); in TEST_F() local
385 ASSERT_TRUE(ds_config); in TEST_F()
[all …]
Dcpu_reader_fuzzer.cc56 FtraceDataSourceConfig ds_config{EventFilter{}, in FuzzCpuReaderProcessPagesForDataSource() local
61 ds_config.event_filter.AddEnabledEvent( in FuzzCpuReaderProcessPagesForDataSource()
63 ds_config.event_filter.AddEnabledEvent( in FuzzCpuReaderProcessPagesForDataSource()
68 &ds_config, g_page, /*pages_read=*/1, in FuzzCpuReaderProcessPagesForDataSource()
Dcpu_reader_unittest.cc384 FtraceDataSourceConfig ds_config = EmptyConfig(); in TEST() local
385 ds_config.event_filter.AddEnabledEvent( in TEST()
402 parse_pos, &page_header.value(), table, &ds_config, &compact_buffer, in TEST()
512 FtraceDataSourceConfig ds_config = EmptyConfig(); in TEST() local
513 ds_config.event_filter.AddEnabledEvent( in TEST()
529 &ds_config, &compact_buffer, in TEST()
561 FtraceDataSourceConfig ds_config = EmptyConfig(); in TEST() local
562 ds_config.event_filter.AddEnabledEvent( in TEST()
578 parse_pos, &page_header.value(), table, &ds_config, &compact_buffer, in TEST()
601 FtraceDataSourceConfig ds_config = EmptyConfig(); in TEST() local
[all …]
Dcpu_reader.cc291 const FtraceDataSourceConfig* ds_config, in ProcessPagesForDataSource() argument
299 bool compact_sched_enabled = ds_config->compact_sched.enabled; in ProcessPagesForDataSource()
317 if (ds_config->symbolize_ksyms) { in ProcessPagesForDataSource()
416 ParsePagePayload(parse_pos, &page_header.value(), table, ds_config, in ProcessPagesForDataSource()
488 const FtraceDataSourceConfig* ds_config, in ParsePagePayload() argument
570 if (ds_config->event_filter.IsEventEnabled(ftrace_event_id)) { in ParsePagePayload()
573 bool compact_sched_enabled = ds_config->compact_sched.enabled; in ParsePagePayload()
/external/perfetto/src/traced/service/
Dbuiltin_producer.cc94 const DataSourceConfig& ds_config) { in SetupDataSource() argument
95 if (ds_config.name() == kHeapprofdDataSourceName || in SetupDataSource()
96 ds_config.name() == kJavaHprofDataSourceName) { in SetupDataSource()
103 if (ds_config.name() == kTracedPerfDataSourceName) { in SetupDataSource()
112 const DataSourceConfig& ds_config) { in StartDataSource() argument
115 if (ds_config.name() == MetatraceWriter::kDataSourceName) { in StartDataSource()
117 static_cast<BufferID>(ds_config.target_buffer())); in StartDataSource()
/external/perfetto/src/profiling/memory/
Djava_hprof_producer.cc72 if (!CanProfile(ds.ds_config, uids->effective, in SignalDataSource()
81 static_cast<int32_t>(ds.ds_config.tracing_session_id() % in SignalDataSource()
100 const DataSourceConfig& ds_config) { in SetupDataSource() argument
106 config.ParseFromString(ds_config.java_hprof_config_raw()); in SetupDataSource()
122 ds.ds_config = std::move(ds_config); in SetupDataSource()
Dheapprofd_producer.cc388 const DataSourceConfig& ds_config) { in SetupDataSource() argument
389 if (ds_config.session_initiator() == in SetupDataSource()
395 if (mode_ == HeapprofdMode::kChild && ds_config.enable_extra_guardrails()) { in SetupDataSource()
401 heapprofd_config.ParseFromString(ds_config.heapprofd_config_raw()); in SetupDataSource()
408 if (ds_config.name() != kHeapprofdDataSource) { in SetupDataSource()
439 auto buffer_id = static_cast<BufferID>(ds_config.target_buffer()); in SetupDataSource()
455 auto buffer_id = static_cast<BufferID>(ds_config.target_buffer()); in SetupDataSource()
462 data_source.ds_config = ds_config; in SetupDataSource()
464 data_source.stop_timeout_ms = ds_config.stop_timeout_ms() in SetupDataSource()
465 ? ds_config.stop_timeout_ms() in SetupDataSource()
[all …]
/external/perfetto/src/tracing/test/
Dtracing_integration_test.cc226 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in TEST_F() local
227 ds_config->set_name("perfetto.test"); in TEST_F()
228 ds_config->set_target_buffer(0); in TEST_F()
352 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in TEST_F() local
353 ds_config->set_name("perfetto.test"); in TEST_F()
382 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in TEST_F() local
383 ds_config->set_name("perfetto.test"); in TEST_F()
384 ds_config->set_target_buffer(0); in TEST_F()
473 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in TEST_F() local
474 ds_config->set_name("perfetto.test"); in TEST_F()
[all …]
/external/perfetto/src/tracing/core/
Dtracing_service_impl_unittest.cc313 auto* ds_config = ds->mutable_config(); in TEST_F() local
314 ds_config->set_name("data_source"); in TEST_F()
1408 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in TEST_F() local
1409 ds_config->set_name("data_source"); in TEST_F()
1530 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in TEST_F() local
1531 ds_config->set_name("data_source"); in TEST_F()
1554 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in TEST_F() local
1555 ds_config->set_name("data_source"); in TEST_F()
1614 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in TEST_F() local
1615 ds_config->set_name("data_source"); in TEST_F()
[all …]
/external/perfetto/src/tracing/consumer_api_deprecated/
Dconsumer_api_deprecated_test.cc46 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in GetConfig() local
47 ds_config->set_name("linux.ftrace"); in GetConfig()
53 ds_config->set_ftrace_config_raw(ftrace_config.SerializeAsString()); in GetConfig()
54 ds_config->set_target_buffer(0); in GetConfig()
/external/perfetto/src/traced/probes/ps/
Dprocess_stats_data_source_unittest.cc139 DataSourceConfig ds_config; in TEST_F() local
142 ds_config.set_process_stats_config_raw(cfg.SerializeAsString()); in TEST_F()
143 auto data_source = GetProcessStatsDataSource(ds_config); in TEST_F()
322 DataSourceConfig ds_config; in TEST_F() local
326 ds_config.set_process_stats_config_raw(cfg.SerializeAsString()); in TEST_F()
327 auto data_source = GetProcessStatsDataSource(ds_config); in TEST_F()
401 DataSourceConfig ds_config; in TEST_F() local
406 ds_config.set_process_stats_config_raw(cfg.SerializeAsString()); in TEST_F()
407 auto data_source = GetProcessStatsDataSource(ds_config); in TEST_F()
469 DataSourceConfig ds_config; in TEST_F() local
[all …]
/external/perfetto/src/perfetto_cmd/
Dconfig.cc141 auto* ds_config = config->add_data_sources()->mutable_config(); in CreateConfigFromOptions() local
142 ds_config->set_name("linux.ftrace"); in CreateConfigFromOptions()
150 ds_config->set_ftrace_config_raw(ftrace_cfg.SerializeAsString()); in CreateConfigFromOptions()
/external/perfetto/src/traced/probes/filesystem/
Dinode_file_data_source_unittest.cc89 DataSourceConfig ds_config; in TEST_F() local
93 ds_config.set_inode_file_config_raw(inode_cfg.SerializeAsString()); in TEST_F()
94 auto data_source = GetInodeFileDataSource(ds_config); in TEST_F()
/external/perfetto/src/traced/probes/packages_list/
Dpackages_list_data_source.cc63 const DataSourceConfig& ds_config, in PackagesListDataSource() argument
67 PackagesListConfig::Decoder cfg(ds_config.packages_list_config_raw()); in PackagesListDataSource()
/external/perfetto/src/traced/probes/initial_display_state/
Dinitial_display_state_data_source.cc44 const DataSourceConfig& ds_config, in InitialDisplayStateDataSource() argument
52 ds_config.android_polled_state_config_raw()); in InitialDisplayStateDataSource()

12