/developtools/profiler/device/plugins/ftrace_plugin/tools/device_kernel_version/default/ |
H A D | ftrace_cpp_generator.py | 78 check_function_args = "(const ForStandard::FtraceEvent& event) -> bool" 79 format_function_args = "(const ForStandard::FtraceEvent& event) -> std::string" 116 for event in self.target_event_formats: 117 type_name = "{}/{}".format(event.category, event.name) 120 # generate sub event parser code 156 for event in self.grouped_event_formats[category]: 161 f.write("void {}_func(T& msg, {}\n".format(event.name, Common.parse_function_args)) 163 for i in range(len(event.remain_fields)): 164 self.generate_parse_field_lines(event, [all...] |
/developtools/profiler/device/plugins/ftrace_plugin/tools/device_kernel_version/default/event_formatters/ |
H A D | ftrace_binder_event_formatter.cpp | 28 [](const ForStandard::FtraceEvent& event) -> bool { return event.has_binder_alloc_lru_end_format(); }, 29 [](const ForStandard::FtraceEvent& event) -> std::string { 30 auto msg = event.binder_alloc_lru_end_format(); 36 LOG_CORE, "maybe, the contents of print event(binder_alloc_lru_end) msg had be cut off in outfile"); 43 [](const ForStandard::FtraceEvent& event) -> bool { return event.has_binder_alloc_lru_start_format(); }, 44 [](const ForStandard::FtraceEvent& event) -> std::string { 45 auto msg = event.binder_alloc_lru_start_format(); 51 LOG_CORE, "maybe, the contents of print event(binder_alloc_lru_star [all...] |
H A D | ftrace_sched_event_formatter.cpp | 27 [](const ForStandard::FtraceEvent& event) -> bool { return event.has_sched_blocked_reason_format(); }, 28 [](const ForStandard::FtraceEvent& event) -> std::string { 29 auto msg = event.sched_blocked_reason_format(); 35 LOG_CORE, "the contents of print event(sched_blocked_reason) msg had be cut off in outfile"); 42 [](const ForStandard::FtraceEvent& event) -> bool { return event.has_sched_kthread_stop_format(); }, 43 [](const ForStandard::FtraceEvent& event) -> std::string { 44 auto msg = event.sched_kthread_stop_format(); 50 LOG_CORE, "the contents of print event(sched_kthread_sto [all...] |
H A D | ftrace_regulator_event_formatter.cpp | 27 [](const ForStandard::FtraceEvent& event) -> bool { return event.has_regulator_bypass_disable_format(); }, 28 [](const ForStandard::FtraceEvent& event) -> std::string { 29 auto msg = event.regulator_bypass_disable_format(); 35 LOG_CORE, "the contents of print event(regulator_bypass_disable) msg had be cut off in outfile"); 42 [](const ForStandard::FtraceEvent& event) -> bool { return event.has_regulator_bypass_disable_complete_format(); }, 43 [](const ForStandard::FtraceEvent& event) -> std::string { 44 auto msg = event.regulator_bypass_disable_complete_format(); 50 "the contents of print event(regulator_bypass_disable_complet [all...] |
H A D | ftrace_writeback_event_formatter.cpp | 28 [](const ForStandard::FtraceEvent& event) -> bool { return event.has_balance_dirty_pages_format(); }, 29 [](const ForStandard::FtraceEvent& event) -> std::string { 30 auto msg = event.balance_dirty_pages_format(); 42 LOG_CORE, "the contents of print event(balance_dirty_pages) msg had be cut off in outfile"); 49 [](const ForStandard::FtraceEvent& event) -> bool { return event.has_bdi_dirty_ratelimit_format(); }, 50 [](const ForStandard::FtraceEvent& event) -> std::string { 51 auto msg = event.bdi_dirty_ratelimit_format(); 61 LOG_CORE, "the contents of print event(bdi_dirty_ratelimi [all...] |
H A D | ftrace_power_event_formatter.cpp | 28 [](const ForStandard::FtraceEvent& event) -> bool { return event.has_clock_disable_format(); }, 29 [](const ForStandard::FtraceEvent& event) -> std::string { 30 auto msg = event.clock_disable_format(); 35 PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(clock_disable) msg had be cut off in outfile"); 42 [](const ForStandard::FtraceEvent& event) -> bool { return event.has_clock_enable_format(); }, 43 [](const ForStandard::FtraceEvent& event) -> std::string { 44 auto msg = event.clock_enable_format(); 49 PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(clock_enabl [all...] |
H A D | ftrace_clk_event_formatter.cpp | 27 [](const ForStandard::FtraceEvent& event) -> bool { return event.has_clk_disable_format(); }, 28 [](const ForStandard::FtraceEvent& event) -> std::string { 29 auto msg = event.clk_disable_format(); 34 "maybe, the contents of print event(clk_disable) msg had be cut off in outfile"); 41 [](const ForStandard::FtraceEvent& event) -> bool { return event.has_clk_disable_complete_format(); }, 42 [](const ForStandard::FtraceEvent& event) -> std::string { 43 auto msg = event.clk_disable_complete_format(); 48 LOG_CORE, "maybe, the contents of print event(clk_disable_complet [all...] |
H A D | ftrace_ext4_event_formatter.cpp | 27 [](const ForStandard::FtraceEvent& event) -> bool { return event.has_ext4_alloc_da_blocks_format(); }, 28 [](const ForStandard::FtraceEvent& event) -> std::string { 29 auto msg = event.ext4_alloc_da_blocks_format(); 37 LOG_CORE, "the contents of print event(ext4_alloc_da_blocks) msg had be cut off in outfile"); 44 [](const ForStandard::FtraceEvent& event) -> bool { return event.has_ext4_allocate_blocks_format(); }, 45 [](const ForStandard::FtraceEvent& event) -> std::string { 46 auto msg = event.ext4_allocate_blocks_format(); 60 LOG_CORE, "the contents of print event(ext4_allocate_block [all...] |
H A D | ftrace_cgroup_event_formatter.cpp | 27 [](const ForStandard::FtraceEvent& event) -> bool { return event.has_cgroup_attach_task_format(); }, 28 [](const ForStandard::FtraceEvent& event) -> std::string { 29 auto msg = event.cgroup_attach_task_format(); 36 LOG_CORE, "maybe, the contents of print event(cgroup_attach_task) msg had be cut off in outfile"); 43 [](const ForStandard::FtraceEvent& event) -> bool { return event.has_cgroup_destroy_root_format(); }, 44 [](const ForStandard::FtraceEvent& event) -> std::string { 45 auto msg = event.cgroup_destroy_root_format(); 51 LOG_CORE, "maybe, the contents of print event(cgroup_destroy_roo [all...] |
H A D | ftrace_block_event_formatter.cpp | 27 [](const ForStandard::FtraceEvent& event) -> bool { return event.has_block_bio_backmerge_format(); }, 28 [](const ForStandard::FtraceEvent& event) -> std::string { 29 auto msg = event.block_bio_backmerge_format(); 37 LOG_CORE, "maybe, the contents of print event(block_bio_backmerge) msg had be cut off in outfile"); 44 [](const ForStandard::FtraceEvent& event) -> bool { return event.has_block_bio_bounce_format(); }, 45 [](const ForStandard::FtraceEvent& event) -> std::string { 46 auto msg = event.block_bio_bounce_format(); 53 "maybe, the contents of print event(block_bio_bounc [all...] |
H A D | ftrace_timer_event_formatter.cpp | 28 [](const ForStandard::FtraceEvent& event) -> bool { return event.has_hrtimer_cancel_format(); }, 29 [](const ForStandard::FtraceEvent& event) -> std::string { 30 auto msg = event.hrtimer_cancel_format(); 34 PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(hrtimer_cancel) msg had be cut off in outfile"); 41 [](const ForStandard::FtraceEvent& event) -> bool { return event.has_hrtimer_expire_entry_format(); }, 42 [](const ForStandard::FtraceEvent& event) -> std::string { 43 auto msg = event.hrtimer_expire_entry_format(); 62 LOG_CORE, "the contents of print event(hrtimer_expire_entr [all...] |
H A D | ftrace_sunrpc_event_formatter.cpp | 27 [](const ForStandard::FtraceEvent& event) -> bool { return event.has_rpc_call_status_format(); }, 28 [](const ForStandard::FtraceEvent& event) -> std::string { 29 auto msg = event.rpc_call_status_format(); 34 PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(rpc_call_status) msg had be cut off in outfile"); 41 [](const ForStandard::FtraceEvent& event) -> bool { return event.has_rpc_connect_status_format(); }, 42 [](const ForStandard::FtraceEvent& event) -> std::string { 43 auto msg = event.rpc_connect_status_format(); 49 LOG_CORE, "the contents of print event(rpc_connect_statu [all...] |
H A D | ftrace_dma_fence_event_formatter.cpp | 27 [](const ForStandard::FtraceEvent& event) -> bool { return event.has_dma_fence_destroy_format(); }, 28 [](const ForStandard::FtraceEvent& event) -> std::string { 29 auto msg = event.dma_fence_destroy_format(); 36 "maybe, the contents of print event(dma_fence_destroy) msg had be cut off in outfile"); 43 [](const ForStandard::FtraceEvent& event) -> bool { return event.has_dma_fence_emit_format(); }, 44 [](const ForStandard::FtraceEvent& event) -> std::string { 45 auto msg = event.dma_fence_emit_format(); 52 "maybe, the contents of print event(dma_fence_emi [all...] |
H A D | ftrace_net_event_formatter.cpp | 27 [](const ForStandard::FtraceEvent& event) -> bool { return event.has_napi_gro_frags_entry_format(); }, 28 [](const ForStandard::FtraceEvent& event) -> std::string { 29 auto msg = event.napi_gro_frags_entry_format(); 40 LOG_CORE, "the contents of print event(napi_gro_frags_entry) msg had be cut off in outfile"); 47 [](const ForStandard::FtraceEvent& event) -> bool { return event.has_napi_gro_receive_entry_format(); }, 48 [](const ForStandard::FtraceEvent& event) -> std::string { 49 auto msg = event.napi_gro_receive_entry_format(); 60 LOG_CORE, "the contents of print event(napi_gro_receive_entr [all...] |
H A D | ftrace_filelock_event_formatter.cpp | 27 [](const ForStandard::FtraceEvent& event) -> bool { return event.has_break_lease_block_format(); }, 28 [](const ForStandard::FtraceEvent& event) -> std::string { 29 auto msg = event.break_lease_block_format(); 42 PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(break_lease_block) msg had be cut off in outfile"); 49 [](const ForStandard::FtraceEvent& event) -> bool { return event.has_break_lease_noblock_format(); }, 50 [](const ForStandard::FtraceEvent& event) -> std::string { 51 auto msg = event.break_lease_noblock_format(); 65 LOG_CORE, "the contents of print event(break_lease_nobloc [all...] |
H A D | ftrace_irq_event_formatter.cpp | 27 [](const ForStandard::FtraceEvent& event) -> bool { return event.has_irq_handler_entry_format(); }, 28 [](const ForStandard::FtraceEvent& event) -> std::string { 29 auto msg = event.irq_handler_entry_format(); 34 PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(irq_handler_entry) msg had be cut off in outfile"); 41 [](const ForStandard::FtraceEvent& event) -> bool { return event.has_irq_handler_exit_format(); }, 42 [](const ForStandard::FtraceEvent& event) -> std::string { 43 auto msg = event.irq_handler_exit_format(); 48 PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(irq_handler_exi [all...] |
H A D | ftrace_ipi_event_formatter.cpp | 27 [](const ForStandard::FtraceEvent& event) -> bool { return event.has_ipi_entry_format(); }, 28 [](const ForStandard::FtraceEvent& event) -> std::string { 29 auto msg = event.ipi_entry_format(); 33 PROFILER_LOG_WARN(LOG_CORE, "maybe, the contents of print event(ipi_entry) msg had be cut off in outfile"); 40 [](const ForStandard::FtraceEvent& event) -> bool { return event.has_ipi_exit_format(); }, 41 [](const ForStandard::FtraceEvent& event) -> std::string { 42 auto msg = event.ipi_exit_format(); 46 PROFILER_LOG_WARN(LOG_CORE, "maybe, the contents of print event(ipi_exi [all...] |
H A D | ftrace_ftrace_event_formatter.cpp | 27 [](const ForStandard::FtraceEvent& event) -> bool { return event.has_bputs_format(); }, 28 [](const ForStandard::FtraceEvent& event) -> std::string { 29 auto msg = event.bputs_format(); 44 PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(bputs) msg had be cut off in outfile"); 51 [](const ForStandard::FtraceEvent& event) -> bool { return event.has_branch_format(); }, 52 [](const ForStandard::FtraceEvent& event) -> std::string { 53 auto msg = event.branch_format(); 58 PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(branc [all...] |
H A D | ftrace_f2fs_event_formatter.cpp | 28 [](const ForStandard::FtraceEvent& event) -> bool { return event.has_f2fs_sync_file_enter_format(); }, 29 [](const ForStandard::FtraceEvent& event) -> std::string { 30 auto msg = event.f2fs_sync_file_enter_format(); 40 LOG_CORE, "maybe, the contents of print event(f2fs_sync_file_enter) msg had be cut off in outfile"); 47 [](const ForStandard::FtraceEvent& event) -> bool { return event.has_f2fs_sync_file_exit_format(); }, 48 [](const ForStandard::FtraceEvent& event) -> std::string { 49 auto msg = event.f2fs_sync_file_exit_format(); 63 LOG_CORE, "maybe, the contents of print event(f2fs_sync_file_exi [all...] |
H A D | ftrace_filemap_event_formatter.cpp | 27 [](const ForStandard::FtraceEvent& event) -> bool { return event.has_file_check_and_advance_wb_err_format(); }, 28 [](const ForStandard::FtraceEvent& event) -> std::string { 29 auto msg = event.file_check_and_advance_wb_err_format(); 37 "maybe, the contents of print event(file_check_and_advance_wb_err) msg had be cut off in outfile"); 44 [](const ForStandard::FtraceEvent& event) -> bool { return event.has_filemap_set_wb_err_format(); }, 45 [](const ForStandard::FtraceEvent& event) -> std::string { 46 auto msg = event.filemap_set_wb_err_format(); 53 LOG_CORE, "maybe, the contents of print event(filemap_set_wb_er [all...] |
/developtools/smartperf_host/trace_streamer/src/parser/pbreader_parser/htrace_parser/ |
H A D | htrace_event_parser.h | 55 void AppendEvent(std::unique_ptr<EventInfo> event); 73 bool ConstructEventSet(const ProtoReader::FtraceEvent_Reader &event, 77 bool InterruptEventSet(const ProtoReader::FtraceEvent_Reader &event, 80 bool ClockEventSet(const ProtoReader::FtraceEvent_Reader &event, 83 bool CpuEventSet(const ProtoReader::FtraceEvent_Reader &event, 86 bool LockEventSet(const ProtoReader::FtraceEvent_Reader &event, 89 bool BinderEventSet(const ProtoReader::FtraceEvent_Reader &event, 92 bool StackEventSet(const ProtoReader::FtraceEvent_Reader &event, 96 bool SetEventType(const ProtoReader::FtraceEvent_Reader &event, 104 bool BinderTractionEvent(const EventInfo &event) cons [all...] |
H A D | htrace_event_parser.cpp | 89 // Interrupt and soft interrupt event initialization in InterruptEventInitialization() 112 // Clock event initialization in ClockEventInitialization() 150 // Binder event initialization in BinderEventInitialization() 183 void HtraceEventParser::AppendEvent(std::unique_ptr<EventInfo> event) in AppendEvent() argument 188 htraceEventList_.emplace_back(std::move(event)); in AppendEvent() 195 // parser cpu event in ParserCpuEvent() 196 for (auto eventItor = msg.event(); eventItor; eventItor++) { in ParserCpuEvent() 260 // parser cpu event in ParseDataItem() 275 bool HtraceEventParser::ConstructEventSet(const ProtoReader::FtraceEvent_Reader &event, in ConstructEventSet() argument 279 // Construct Set the corresponding byte view and event typ in ConstructEventSet() 319 InterruptEventSet(const ProtoReader::FtraceEvent_Reader &event, EventInfo &eventInfo, ProtoReader::BytesView &bytesView) InterruptEventSet() argument 351 ClockEventSet(const ProtoReader::FtraceEvent_Reader &event, EventInfo &eventInfo, ProtoReader::BytesView &bytesView) ClockEventSet() argument 374 CpuEventSet(const ProtoReader::FtraceEvent_Reader &event, EventInfo &eventInfo, ProtoReader::BytesView &bytesView) CpuEventSet() argument 391 LockEventSet(const ProtoReader::FtraceEvent_Reader &event, EventInfo &eventInfo, ProtoReader::BytesView &bytesView) LockEventSet() argument 411 BinderEventSet(const ProtoReader::FtraceEvent_Reader &event, EventInfo &eventInfo, ProtoReader::BytesView &bytesView) BinderEventSet() argument 431 StackEventSet(const ProtoReader::FtraceEvent_Reader &event, EventInfo &eventInfo, ProtoReader::BytesView &bytesView) StackEventSet() argument 450 SetEventType(const ProtoReader::FtraceEvent_Reader &event, EventInfo &eventInfo, ProtoReader::BytesView &bytesView) SetEventType() argument 544 SchedSwitchEvent(const EventInfo &event) SchedSwitchEvent() argument 564 SchedBlockReasonEvent(const EventInfo &event) SchedBlockReasonEvent() argument 634 DealPrintEvent(const EventInfo &event, const std::string &bufferLine) DealPrintEvent() argument 643 ParsePrintEvent(const EventInfo &event) ParsePrintEvent() argument 651 ParseFfrtEvent(const EventInfo &event) ParseFfrtEvent() argument 1035 auto event = eventItor->get(); FilterAllEventsReader() local 1057 auto event = eventIter->get(); FilterAllEvents() local [all...] |
/developtools/smartperf_host/trace_streamer/src/parser/rawtrace_parser/ |
H A D | cpu_detail_parser.h | 35 void EventAppend(std::shared_ptr<RawTraceEventInfo> event); 44 void DealEvent(const RawTraceEventInfo &event); 45 bool SchedSwitchEvent(const RawTraceEventInfo &event); 46 bool SchedBlockReasonEvent(const RawTraceEventInfo &event); 47 bool SchedWakeupEvent(const RawTraceEventInfo &event) const; 48 bool SchedWakingEvent(const RawTraceEventInfo &event) const; 49 bool SchedWakeupNewEvent(const RawTraceEventInfo &event) const; 50 bool ProcessExitEvent(const RawTraceEventInfo &event) const; 51 bool ProcessFreeEvent(const RawTraceEventInfo &event) const; 52 bool BinderTractionEvent(const RawTraceEventInfo &event) cons [all...] |
H A D | cpu_detail_parser.cpp | 157 void CpuDetailParser::EventAppend(std::shared_ptr<RawTraceEventInfo> event) in EventAppend() argument 159 if (event->cpuId >= standAloneCpuEventList_.size()) { in EventAppend() 160 TS_LOGW("cpuId: %u is invailed", event->cpuId); in EventAppend() 163 standAloneCpuEventList_[event->cpuId].emplace(std::move(event)); in EventAppend() 253 void CpuDetailParser::DealEvent(const RawTraceEventInfo &event) in DealEvent() argument 255 eventTid_ = event.msgPtr->common_fields().pid(); in DealEvent() 257 streamFilters_->processFilter_->UpdateOrCreateThread(event.msgPtr->timestamp(), eventTid_); in DealEvent() 262 const auto &eventName = FtraceEventProcessor::GetInstance().GetEventNameById(event.eventId); in DealEvent() 265 iter->second(event); in DealEvent() 270 SchedSwitchEvent(const RawTraceEventInfo &event) SchedSwitchEvent() argument 286 SchedBlockReasonEvent(const RawTraceEventInfo &event) SchedBlockReasonEvent() argument 450 ParseTracingMarkWriteOrPrintEvent(const RawTraceEventInfo &event) ParseTracingMarkWriteOrPrintEvent() argument [all...] |
/developtools/hiperf/test/unittest/common/native/ |
H A D | perf_events_test.cpp | 43 static void SetAllConfig(PerfEvents &event); 123 void PerfEventsTest::SetAllConfig(PerfEvents &event) in SetAllConfig() argument 126 event.SetCpu(selectCpus_); in SetAllConfig() 128 event.SetPid(pids); in SetAllConfig() 129 event.SetSystemTarget(true); in SetAllConfig() 130 event.SetTimeOut(DEFAULT_TRACKING_TIME); in SetAllConfig() 131 event.SetInherit(false); in SetAllConfig() 133 event.SetTrackedCommand(trackedCommand_); in SetAllConfig() 135 event.SetSampleFrequency(frequency); in SetAllConfig() 137 event in SetAllConfig() 146 RunTrack(PerfEvents &event) RunTrack() argument 162 PerfEvents event; HWTEST_F() local 181 PerfEvents event; HWTEST_F() local 199 PerfEvents event; HWTEST_F() local 253 PerfEvents event; HWTEST_F() local 289 PerfEvents event; HWTEST_F() local [all...] |