€•ègŒsphinx.addnodes”Œdocument”“”)”}”(Œ rawsource”Œ”Œchildren”]”(Œ translations”Œ LanguagesNode”“”)”}”(hhh]”(hŒ pending_xref”“”)”}”(hhh]”Œdocutils.nodes”ŒText”“”ŒChinese (Simplified)”…””}”Œparent”hsbaŒ attributes”}”(Œids”]”Œclasses”]”Œnames”]”Œdupnames”]”Œbackrefs”]”Œ refdomain”Œstd”Œreftype”Œdoc”Œ reftarget”Œ(/translations/zh_CN/arch/powerpc/vpa-dtl”Œmodname”NŒ classname”NŒ refexplicit”ˆuŒtagname”hhh ubh)”}”(hhh]”hŒChinese (Traditional)”…””}”hh2sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ(/translations/zh_TW/arch/powerpc/vpa-dtl”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒItalian”…””}”hhFsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ(/translations/it_IT/arch/powerpc/vpa-dtl”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒJapanese”…””}”hhZsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ(/translations/ja_JP/arch/powerpc/vpa-dtl”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒKorean”…””}”hhnsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ(/translations/ko_KR/arch/powerpc/vpa-dtl”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒPortuguese (Brazilian)”…””}”hh‚sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ(/translations/pt_BR/arch/powerpc/vpa-dtl”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒSpanish”…””}”hh–sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ(/translations/sp_SP/arch/powerpc/vpa-dtl”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubeh}”(h]”h ]”h"]”h$]”h&]”Œcurrent_language”ŒEnglish”uh1h hhŒ _document”hŒsource”NŒline”NubhŒcomment”“”)”}”(hŒ SPDX-License-Identifier: GPL-2.0”h]”hŒ SPDX-License-Identifier: GPL-2.0”…””}”hh·sbah}”(h]”h ]”h"]”h$]”h&]”Œ xml:space”Œpreserve”uh1hµhhh²hh³ŒB/var/lib/git/docbuild/linux/Documentation/arch/powerpc/vpa-dtl.rst”h´KubhŒtarget”“”)”}”(hŒ .. _vpa-dtl:”h]”h}”(h]”h ]”h"]”h$]”h&]”Œrefid”Œvpa-dtl”uh1hÈh´Khhh²hh³hÇubhŒsection”“”)”}”(hhh]”(hŒtitle”“”)”}”(hŒDTL (Dispatch Trace Log)”h]”hŒDTL (Dispatch Trace Log)”…””}”(hhÝh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”hÔŒid1”uh1hÛhhØh²hh³hÇh´KubhŒ paragraph”“”)”}”(hŒAthira Rajeev, 19 April 2025”h]”hŒAthira Rajeev, 19 April 2025”…””}”(hhîh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hìh³hÇh´KhhØh²hubhŒtopic”“”)”}”(hŒ Contents ”h]”(hÜ)”}”(hŒContents”h]”hŒContents”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÛhhþh³hÇh´K ubhŒ bullet_list”“”)”}”(hhh]”hŒ list_item”“”)”}”(hhh]”(hí)”}”(hhh]”hŒ reference”“”)”}”(hhh]”hŒDTL (Dispatch Trace Log)”…””}”(hjh²hh³Nh´Nubah}”(h]”hëah ]”h"]”h$]”h&]”Œrefid”Œdtl-dispatch-trace-log”uh1jhjubah}”(h]”h ]”h"]”h$]”h&]”uh1hìhjubj)”}”(hhh]”(j)”}”(hhh]”hí)”}”(hhh]”j)”}”(hhh]”hŒBasic overview”…””}”(hj=h²hh³Nh´Nubah}”(h]”Œid2”ah ]”h"]”h$]”h&]”Œrefid”Œbasic-overview”uh1jhj:ubah}”(h]”h ]”h"]”h$]”h&]”uh1hìhj7ubah}”(h]”h ]”h"]”h$]”h&]”uh1jhj4ubj)”}”(hhh]”hí)”}”(hhh]”j)”}”(hhh]”hŒInfrastructure used”…””}”(hj_h²hh³Nh´Nubah}”(h]”Œid3”ah ]”h"]”h$]”h&]”Œrefid”Œinfrastructure-used”uh1jhj\ubah}”(h]”h ]”h"]”h$]”h&]”uh1hìhjYubah}”(h]”h ]”h"]”h$]”h&]”uh1jhj4ubj)”}”(hhh]”hí)”}”(hhh]”j)”}”(hhh]”hŒvpa-dtl PMU example usage”…””}”(hjh²hh³Nh´Nubah}”(h]”Œid4”ah ]”h"]”h$]”h&]”Œrefid”Œvpa-dtl-pmu-example-usage”uh1jhj~ubah}”(h]”h ]”h"]”h$]”h&]”uh1hìhj{ubah}”(h]”h ]”h"]”h$]”h&]”uh1jhj4ubj)”}”(hhh]”hí)”}”(hhh]”j)”}”(hhh]”hŒ9Visualize the dispatch trace log entries with perf report”…””}”(hj£h²hh³Nh´Nubah}”(h]”Œid5”ah ]”h"]”h$]”h&]”Œrefid”Œ9visualize-the-dispatch-trace-log-entries-with-perf-report”uh1jhj ubah}”(h]”h ]”h"]”h$]”h&]”uh1hìhjubah}”(h]”h ]”h"]”h$]”h&]”uh1jhj4ubj)”}”(hhh]”hí)”}”(hhh]”j)”}”(hhh]”hŒ9Visualize the dispatch trace log entries with perf script”…””}”(hjÅh²hh³Nh´Nubah}”(h]”Œid6”ah ]”h"]”h$]”h&]”Œrefid”Œ9visualize-the-dispatch-trace-log-entries-with-perf-script”uh1jhjÂubah}”(h]”h ]”h"]”h$]”h&]”uh1hìhj¿ubah}”(h]”h ]”h"]”h$]”h&]”uh1jhj4ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jhjubeh}”(h]”h ]”h"]”h$]”h&]”uh1jhjubah}”(h]”h ]”h"]”h$]”h&]”uh1jhhþh²hh³Nh´Nubeh}”(h]”Œcontents”ah ]”Œcontents”ah"]”Œcontents”ah$]”h&]”uh1hüh³hÇh´K hhØh²hubh×)”}”(hhh]”(hÜ)”}”(hŒBasic overview”h]”hŒBasic overview”…””}”(hjÿh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”hÔjFuh1hÛhjüh²hh³hÇh´Kubhí)”}”(hX`The pseries Shared Processor Logical Partition(SPLPAR) machines can retrieve a log of dispatch and preempt events from the hypervisor using data from Disptach Trace Log(DTL) buffer. With this information, user can retrieve when and why each dispatch & preempt has occurred. The vpa-dtl PMU exposes the Virtual Processor Area(VPA) DTL counters via perf.”h]”hX`The pseries Shared Processor Logical Partition(SPLPAR) machines can retrieve a log of dispatch and preempt events from the hypervisor using data from Disptach Trace Log(DTL) buffer. With this information, user can retrieve when and why each dispatch & preempt has occurred. The vpa-dtl PMU exposes the Virtual Processor Area(VPA) DTL counters via perf.”…””}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hìh³hÇh´Khjüh²hubeh}”(h]”jLah ]”h"]”Œbasic overview”ah$]”h&]”uh1hÖhhØh²hh³hÇh´Kubh×)”}”(hhh]”(hÜ)”}”(hŒInfrastructure used”h]”hŒInfrastructure used”…””}”(hj%h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”hÔjhuh1hÛhj"h²hh³hÇh´Kubhí)”}”(hXÊThe VPA DTL PMU counters do not interrupt on overflow or generate any PMI interrupts. Therefore, hrtimer is used to poll the DTL data. The timer nterval can be provided by user via sample_period field in nano seconds. vpa dtl pmu has one hrtimer added per vpa-dtl pmu thread. DTL (Dispatch Trace Log) contains information about dispatch/preempt, enqueue time etc. We directly copy the DTL buffer data as part of auxiliary buffer and it will be processed later. This will avoid time taken to create samples in the kernel space. The PMU driver collecting Dispatch Trace Log (DTL) entries makes use of AUX support in perf infrastructure. On the tools side, this data is made available as PERF_RECORD_AUXTRACE records.”h]”hXÊThe VPA DTL PMU counters do not interrupt on overflow or generate any PMI interrupts. Therefore, hrtimer is used to poll the DTL data. The timer nterval can be provided by user via sample_period field in nano seconds. vpa dtl pmu has one hrtimer added per vpa-dtl pmu thread. DTL (Dispatch Trace Log) contains information about dispatch/preempt, enqueue time etc. We directly copy the DTL buffer data as part of auxiliary buffer and it will be processed later. This will avoid time taken to create samples in the kernel space. The PMU driver collecting Dispatch Trace Log (DTL) entries makes use of AUX support in perf infrastructure. On the tools side, this data is made available as PERF_RECORD_AUXTRACE records.”…””}”(hj3h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hìh³hÇh´Khj"h²hubhí)”}”(hXÂTo correlate each DTL entry with other events across CPU's, an auxtrace_queue is created for each CPU. Each auxtrace queue has a array/list of auxtrace buffers. All auxtrace queues is maintained in auxtrace heap. The queues are sorted based on timestamp. When the different PERF_RECORD_XX records are processed, compare the timestamp of perf record with timestamp of top element in the auxtrace heap so that DTL events can be co-related with other events Process the auxtrace queue if the timestamp of element from heap is lower than timestamp from entry in perf record. Sometimes it could happen that one buffer is only partially processed. if the timestamp of occurrence of another event is more than currently processed element in the queue, it will move on to next perf record. So keep track of position of buffer to continue processing next time. Update the timestamp of the auxtrace heap with the timestamp of last processed entry from the auxtrace buffer.”h]”hXÄTo correlate each DTL entry with other events across CPU’s, an auxtrace_queue is created for each CPU. Each auxtrace queue has a array/list of auxtrace buffers. All auxtrace queues is maintained in auxtrace heap. The queues are sorted based on timestamp. When the different PERF_RECORD_XX records are processed, compare the timestamp of perf record with timestamp of top element in the auxtrace heap so that DTL events can be co-related with other events Process the auxtrace queue if the timestamp of element from heap is lower than timestamp from entry in perf record. Sometimes it could happen that one buffer is only partially processed. if the timestamp of occurrence of another event is more than currently processed element in the queue, it will move on to next perf record. So keep track of position of buffer to continue processing next time. Update the timestamp of the auxtrace heap with the timestamp of last processed entry from the auxtrace buffer.”…””}”(hjAh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hìh³hÇh´K&hj"h²hubhí)”}”(hŒzThis infrastructure ensures dispatch trace log entries can be correlated and presented along with other events like sched.”h]”hŒzThis infrastructure ensures dispatch trace log entries can be correlated and presented along with other events like sched.”…””}”(hjOh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hìh³hÇh´K4hj"h²hubeh}”(h]”jnah ]”h"]”Œinfrastructure used”ah$]”h&]”uh1hÖhhØh²hh³hÇh´Kubh×)”}”(hhh]”(hÜ)”}”(hŒvpa-dtl PMU example usage”h]”hŒvpa-dtl PMU example usage”…””}”(hjgh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”hÔjŠuh1hÛhjdh²hh³hÇh´K8ubhŒ literal_block”“”)”}”(hŒe# ls /sys/devices/vpa_dtl/ events format perf_event_mux_interval_ms power subsystem type uevent”h]”hŒe# ls /sys/devices/vpa_dtl/ events format perf_event_mux_interval_ms power subsystem type uevent”…””}”hjwsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆŒforce”‰Œlanguage”Œsh”Œhighlight_args”}”uh1juh³hÇh´K:hjdh²hubhí)”}”(hŒ=To capture the DTL data using perf record: .. code-block:: sh”h]”hŒ=To capture the DTL data using perf record: .. code-block:: sh”…””}”(hjŠh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hìh³hÇh´K@hjdh²hubhŒ block_quote”“”)”}”(hŒF# ./perf record -a -e sched:\*,vpa_dtl/dtl_all/ -c 1000000000 sleep 1 ”h]”hí)”}”(hŒE# ./perf record -a -e sched:\*,vpa_dtl/dtl_all/ -c 1000000000 sleep 1”h]”hŒE# ./perf record -a -e sched:*,vpa_dtl/dtl_all/ -c 1000000000 sleep 1”…””}”(hjžh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hìh³hÇh´KChjšubah}”(h]”h ]”h"]”h$]”h&]”uh1j˜h³hÇh´KChjdh²hubhí)”}”(hŒJThe result can be interpreted using perf record. Snippet of perf report -D”h]”hŒJThe result can be interpreted using perf record. Snippet of perf report -D”…””}”(hj²h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hìh³hÇh´KEhjdh²hubjv)”}”(hŒ# ./perf report -D”h]”hŒ# ./perf report -D”…””}”hjÀsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆj…‰j†Œsh”jˆ}”uh1juh³hÇh´KGhjdh²hubhí)”}”(hŒgThere are different PERF_RECORD_XX records. In that records corresponding to auxtrace buffers includes:”h]”hŒgThere are different PERF_RECORD_XX records. In that records corresponding to auxtrace buffers includes:”…””}”(hjÐh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hìh³hÇh´KKhjdh²hubhŒenumerated_list”“”)”}”(hhh]”(j)”}”(hŒ?PERF_RECORD_AUX Conveys that new data is available in AUX area ”h]”hí)”}”(hŒ>PERF_RECORD_AUX Conveys that new data is available in AUX area”h]”hŒ>PERF_RECORD_AUX Conveys that new data is available in AUX area”…””}”(hjçh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hìh³hÇh´KNhjãubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjàh²hh³hÇh´Nubj)”}”(hŒTPERF_RECORD_AUXTRACE_INFO Describes offset and size of auxtrace data in the buffers ”h]”hí)”}”(hŒSPERF_RECORD_AUXTRACE_INFO Describes offset and size of auxtrace data in the buffers”h]”hŒSPERF_RECORD_AUXTRACE_INFO Describes offset and size of auxtrace data in the buffers”…””}”(hjÿh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hìh³hÇh´KQhjûubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjàh²hh³hÇh´Nubj)”}”(hŒ…PERF_RECORD_AUXTRACE This is the record that defines the auxtrace data which here in case of vpa-dtl pmu is dispatch trace log data. ”h]”hí)”}”(hŒ„PERF_RECORD_AUXTRACE This is the record that defines the auxtrace data which here in case of vpa-dtl pmu is dispatch trace log data.”h]”hŒ„PERF_RECORD_AUXTRACE This is the record that defines the auxtrace data which here in case of vpa-dtl pmu is dispatch trace log data.”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hìh³hÇh´KThjubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjàh²hh³hÇh´Nubeh}”(h]”h ]”h"]”h$]”h&]”Œenumtype”Œarabic”Œprefix”hŒsuffix”Œ.”uh1jÞhjdh²hh³hÇh´KNubhí)”}”(hŒASnippet from perf report -D showing the PERF_RECORD_AUXTRACE dump”h]”hŒASnippet from perf report -D showing the PERF_RECORD_AUXTRACE dump”…””}”(hj6h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hìh³hÇh´KXhjdh²hubjv)”}”(hhh]”h}”(h]”h ]”h"]”h$]”h&]”hÅhÆj…‰j†Œsh”jˆ}”uh1juh³hÇh´KZhjdh²hubhí)”}”(hX»0 0 0x39b10 [0x30]: PERF_RECORD_AUXTRACE size: 0x690 offset: 0 ref: 0 idx: 0 tid: -1 cpu: 0 . . ... VPA DTL PMU data: size 1680 bytes, entries is 35 . 00000000: boot_tb: 21349649546353231, tb_freq: 512000000 . 00000030: dispatch_reason:decrementer interrupt, preempt_reason:H_CEDE, enqueue_to_dispatch_time:7064, ready_to_enqueue_time:187, waiting_to_ready_time:6611773 . 00000060: dispatch_reason:priv doorbell, preempt_reason:H_CEDE, enqueue_to_dispatch_time:146, ready_to_enqueue_time:0, waiting_to_ready_time:15359437 . 00000090: dispatch_reason:decrementer interrupt, preempt_reason:H_CEDE, enqueue_to_dispatch_time:4868, ready_to_enqueue_time:232, waiting_to_ready_time:5100709 . 000000c0: dispatch_reason:priv doorbell, preempt_reason:H_CEDE, enqueue_to_dispatch_time:179, ready_to_enqueue_time:0, waiting_to_ready_time:30714243 . 000000f0: dispatch_reason:priv doorbell, preempt_reason:H_CEDE, enqueue_to_dispatch_time:197, ready_to_enqueue_time:0, waiting_to_ready_time:15350648 . 00000120: dispatch_reason:priv doorbell, preempt_reason:H_CEDE, enqueue_to_dispatch_time:213, ready_to_enqueue_time:0, waiting_to_ready_time:15353446 . 00000150: dispatch_reason:priv doorbell, preempt_reason:H_CEDE, enqueue_to_dispatch_time:212, ready_to_enqueue_time:0, waiting_to_ready_time:15355126 . 00000180: dispatch_reason:decrementer interrupt, preempt_reason:H_CEDE, enqueue_to_dispatch_time:6368, ready_to_enqueue_time:164, waiting_to_ready_time:5104665”h]”hX»0 0 0x39b10 [0x30]: PERF_RECORD_AUXTRACE size: 0x690 offset: 0 ref: 0 idx: 0 tid: -1 cpu: 0 . . ... VPA DTL PMU data: size 1680 bytes, entries is 35 . 00000000: boot_tb: 21349649546353231, tb_freq: 512000000 . 00000030: dispatch_reason:decrementer interrupt, preempt_reason:H_CEDE, enqueue_to_dispatch_time:7064, ready_to_enqueue_time:187, waiting_to_ready_time:6611773 . 00000060: dispatch_reason:priv doorbell, preempt_reason:H_CEDE, enqueue_to_dispatch_time:146, ready_to_enqueue_time:0, waiting_to_ready_time:15359437 . 00000090: dispatch_reason:decrementer interrupt, preempt_reason:H_CEDE, enqueue_to_dispatch_time:4868, ready_to_enqueue_time:232, waiting_to_ready_time:5100709 . 000000c0: dispatch_reason:priv doorbell, preempt_reason:H_CEDE, enqueue_to_dispatch_time:179, ready_to_enqueue_time:0, waiting_to_ready_time:30714243 . 000000f0: dispatch_reason:priv doorbell, preempt_reason:H_CEDE, enqueue_to_dispatch_time:197, ready_to_enqueue_time:0, waiting_to_ready_time:15350648 . 00000120: dispatch_reason:priv doorbell, preempt_reason:H_CEDE, enqueue_to_dispatch_time:213, ready_to_enqueue_time:0, waiting_to_ready_time:15353446 . 00000150: dispatch_reason:priv doorbell, preempt_reason:H_CEDE, enqueue_to_dispatch_time:212, ready_to_enqueue_time:0, waiting_to_ready_time:15355126 . 00000180: dispatch_reason:decrementer interrupt, preempt_reason:H_CEDE, enqueue_to_dispatch_time:6368, ready_to_enqueue_time:164, waiting_to_ready_time:5104665”…””}”(hjOh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hìh³hÇh´K\hjdh²hubhí)”}”(hŒ5Above is representation of dtl entry of below format:”h]”hŒ5Above is representation of dtl entry of below format:”…””}”(hj]h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hìh³hÇh´Kihjdh²hubhŒdefinition_list”“”)”}”(hhh]”hŒdefinition_list_item”“”)”}”(hŒüstruct dtl_entry { u8 dispatch_reason; u8 preempt_reason; u16 processor_id; u32 enqueue_to_dispatch_time; u32 ready_to_enqueue_time; u32 waiting_to_ready_time; u64 timebase; u64 fault_addr; u64 srr0; u64 srr1; ”h]”(hŒterm”“”)”}”(hŒstruct dtl_entry {”h]”hŒstruct dtl_entry {”…””}”(hjxh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jvh³hÇh´KuhjrubhŒ definition”“”)”}”(hhh]”hí)”}”(hŒèu8 dispatch_reason; u8 preempt_reason; u16 processor_id; u32 enqueue_to_dispatch_time; u32 ready_to_enqueue_time; u32 waiting_to_ready_time; u64 timebase; u64 fault_addr; u64 srr0; u64 srr1;”h]”hŒèu8 dispatch_reason; u8 preempt_reason; u16 processor_id; u32 enqueue_to_dispatch_time; u32 ready_to_enqueue_time; u32 waiting_to_ready_time; u64 timebase; u64 fault_addr; u64 srr0; u64 srr1;”…””}”(hj‹h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hìh³hÇh´Klhjˆubah}”(h]”h ]”h"]”h$]”h&]”uh1j†hjrubeh}”(h]”h ]”h"]”h$]”h&]”uh1jph³hÇh´Kuhjmubah}”(h]”h ]”h"]”h$]”h&]”uh1jkhjdh²hh³hÇh´Nubhí)”}”(hŒ};”h]”hŒ};”…””}”(hj«h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hìh³hÇh´Kwhjdh²hubhí)”}”(hŒ­First two fields represent the dispatch reason and preempt reason. The post processing of PERF_RECORD_AUXTRACE records will translate to meaningful data for user to consume.”h]”hŒ­First two fields represent the dispatch reason and preempt reason. The post processing of PERF_RECORD_AUXTRACE records will translate to meaningful data for user to consume.”…””}”(hj¹h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hìh³hÇh´Kyhjdh²hubeh}”(h]”jah ]”h"]”Œvpa-dtl pmu example usage”ah$]”h&]”uh1hÖhhØh²hh³hÇh´K8ubh×)”}”(hhh]”(hÜ)”}”(hŒ9Visualize the dispatch trace log entries with perf report”h]”hŒ9Visualize the dispatch trace log entries with perf report”…””}”(hjÑh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”hÔj¬uh1hÛhjÎh²hh³hÇh´K~ubjv)”}”(hXÛ# ./perf record -a -e sched:*,vpa_dtl/dtl_all/ -c 1000000000 sleep 1 [ perf record: Woken up 1 times to write data ] [ perf record: Captured and wrote 0.300 MB perf.data ] # ./perf report # Samples: 321 of event 'vpa-dtl' # Event count (approx.): 321 # # Children Self Command Shared Object Symbol # ........ ........ ....... ................. .............................. # 100.00% 100.00% swapper [kernel.kallsyms] [k] plpar_hcall_norets_notrace”h]”hXÛ# ./perf record -a -e sched:*,vpa_dtl/dtl_all/ -c 1000000000 sleep 1 [ perf record: Woken up 1 times to write data ] [ perf record: Captured and wrote 0.300 MB perf.data ] # ./perf report # Samples: 321 of event 'vpa-dtl' # Event count (approx.): 321 # # Children Self Command Shared Object Symbol # ........ ........ ....... ................. .............................. # 100.00% 100.00% swapper [kernel.kallsyms] [k] plpar_hcall_norets_notrace”…””}”hjßsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆj…‰j†Œsh”jˆ}”uh1juh³hÇh´K€hjÎh²hubeh}”(h]”j²ah ]”h"]”Œ9visualize the dispatch trace log entries with perf report”ah$]”h&]”uh1hÖhhØh²hh³hÇh´K~ubh×)”}”(hhh]”(hÜ)”}”(hŒ9Visualize the dispatch trace log entries with perf script”h]”hŒ9Visualize the dispatch trace log entries with perf script”…””}”(hjùh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”hÔjÎuh1hÛhjöh²hh³hÇh´Kubjv)”}”(hX # ./perf script migration/9 67 [009] 105373.359903: sched:sched_waking: comm=perf pid=13418 prio=120 target_cpu=009 migration/9 67 [009] 105373.359904: sched:sched_migrate_task: comm=perf pid=13418 prio=120 orig_cpu=9 dest_cpu=10 migration/9 67 [009] 105373.359907: sched:sched_stat_runtime: comm=migration/9 pid=67 runtime=4050 [ns] migration/9 67 [009] 105373.359908: sched:sched_switch: prev_comm=migration/9 prev_pid=67 prev_prio=0 prev_state=S ==> next_comm=swapper/9 next_pid=0 next_prio=120 :256 256 [016] 105373.359913: vpa-dtl: timebase: 21403600706628832 dispatch_reason:decrementer interrupt, preempt_reason:H_CEDE, enqueue_to_dispatch_time:4854, ready_to_enqueue_time:139, waiting_to_ready_time:511842115 c0000000000fcd28 plpar_hcall_norets_notrace+0x18 ([kernel.kallsyms]) :256 256 [017] 105373.360012: vpa-dtl: timebase: 21403600706679454 dispatch_reason:priv doorbell, preempt_reason:H_CEDE, enqueue_to_dispatch_time:236, ready_to_enqueue_time:0, waiting_to_ready_time:133864583 c0000000000fcd28 plpar_hcall_norets_notrace+0x18 ([kernel.kallsyms]) perf 13418 [010] 105373.360048: sched:sched_stat_runtime: comm=perf pid=13418 runtime=139748 [ns] perf 13418 [010] 105373.360052: sched:sched_waking: comm=migration/10 pid=72 prio=0 target_cpu=010”h]”hX # ./perf script migration/9 67 [009] 105373.359903: sched:sched_waking: comm=perf pid=13418 prio=120 target_cpu=009 migration/9 67 [009] 105373.359904: sched:sched_migrate_task: comm=perf pid=13418 prio=120 orig_cpu=9 dest_cpu=10 migration/9 67 [009] 105373.359907: sched:sched_stat_runtime: comm=migration/9 pid=67 runtime=4050 [ns] migration/9 67 [009] 105373.359908: sched:sched_switch: prev_comm=migration/9 prev_pid=67 prev_prio=0 prev_state=S ==> next_comm=swapper/9 next_pid=0 next_prio=120 :256 256 [016] 105373.359913: vpa-dtl: timebase: 21403600706628832 dispatch_reason:decrementer interrupt, preempt_reason:H_CEDE, enqueue_to_dispatch_time:4854, ready_to_enqueue_time:139, waiting_to_ready_time:511842115 c0000000000fcd28 plpar_hcall_norets_notrace+0x18 ([kernel.kallsyms]) :256 256 [017] 105373.360012: vpa-dtl: timebase: 21403600706679454 dispatch_reason:priv doorbell, preempt_reason:H_CEDE, enqueue_to_dispatch_time:236, ready_to_enqueue_time:0, waiting_to_ready_time:133864583 c0000000000fcd28 plpar_hcall_norets_notrace+0x18 ([kernel.kallsyms]) perf 13418 [010] 105373.360048: sched:sched_stat_runtime: comm=perf pid=13418 runtime=139748 [ns] perf 13418 [010] 105373.360052: sched:sched_waking: comm=migration/10 pid=72 prio=0 target_cpu=010”…””}”hjsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆj…‰j†Œsh”jˆ}”uh1juh³hÇh´K’hjöh²hubeh}”(h]”jÔah ]”h"]”Œ9visualize the dispatch trace log entries with perf script”ah$]”h&]”uh1hÖhhØh²hh³hÇh´Kubeh}”(h]”(j-hÕeh ]”h"]”(Œdtl (dispatch trace log)”Œvpa-dtl”eh$]”h&]”uh1hÖhhh²hh³hÇh´KŒexpect_referenced_by_name”}”j#hÊsŒexpect_referenced_by_id”}”hÕhÊsubeh}”(h]”h ]”h"]”h$]”h&]”Œsource”hÇuh1hŒcurrent_source”NŒ current_line”NŒsettings”Œdocutils.frontend”ŒValues”“”)”}”(hÛNŒ generator”NŒ datestamp”NŒ source_link”NŒ source_url”NŒ toc_backlinks”Œentry”Œfootnote_backlinks”KŒ sectnum_xform”KŒstrip_comments”NŒstrip_elements_with_classes”NŒ strip_classes”NŒ report_level”KŒ halt_level”KŒexit_status_level”KŒdebug”NŒwarning_stream”NŒ traceback”ˆŒinput_encoding”Œ utf-8-sig”Œinput_encoding_error_handler”Œstrict”Œoutput_encoding”Œutf-8”Œoutput_encoding_error_handler”jMŒerror_encoding”Œutf-8”Œerror_encoding_error_handler”Œbackslashreplace”Œ language_code”Œen”Œrecord_dependencies”NŒconfig”NŒ id_prefix”hŒauto_id_prefix”Œid”Œ dump_settings”NŒdump_internals”NŒdump_transforms”NŒdump_pseudo_xml”NŒexpose_internals”NŒstrict_visitor”NŒ_disable_config”NŒ_source”hÇŒ _destination”NŒ _config_files”]”Œ7/var/lib/git/docbuild/linux/Documentation/docutils.conf”aŒfile_insertion_enabled”ˆŒ raw_enabled”KŒline_length_limit”M'Œpep_references”NŒ pep_base_url”Œhttps://peps.python.org/”Œpep_file_url_template”Œpep-%04d”Œrfc_references”NŒ rfc_base_url”Œ&https://datatracker.ietf.org/doc/html/”Œ tab_width”KŒtrim_footnote_reference_space”‰Œsyntax_highlight”Œlong”Œ smart_quotes”ˆŒsmartquotes_locales”]”Œcharacter_level_inline_markup”‰Œdoctitle_xform”‰Œ docinfo_xform”KŒsectsubtitle_xform”‰Œ image_loading”Œlink”Œembed_stylesheet”‰Œcloak_email_addresses”ˆŒsection_self_link”‰Œenv”NubŒreporter”NŒindirect_targets”]”Œsubstitution_defs”}”Œsubstitution_names”}”Œrefnames”}”Œrefids”}”hÕ]”hÊasŒnameids”}”(j#hÕj"j-jùjõjjLjajnjËjjój²jjÔuŒ nametypes”}”(j#ˆj"‰jù‰j‰ja‰jˉjó‰j‰uh}”(hÕhØj-hØjõhþjLjüjnj"jjdj²jÎjÔjöhëjjFj=jhj_jŠjj¬j£jÎjÅuŒ footnote_refs”}”Œ citation_refs”}”Œ autofootnotes”]”Œautofootnote_refs”]”Œsymbol_footnotes”]”Œsymbol_footnote_refs”]”Œ footnotes”]”Œ citations”]”Œautofootnote_start”KŒsymbol_footnote_start”KŒ id_counter”Œ collections”ŒCounter”“”}”j[Ks…”R”Œparse_messages”]”hŒsystem_message”“”)”}”(hhh]”hí)”}”(hŒfPossible title underline, too short for the title. Treating it as ordinary text because it's so short.”h]”hŒhPossible title underline, too short for the title. Treating it as ordinary text because it’s so short.”…””}”(hjµh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hìhj²ubah}”(h]”h ]”h"]”h$]”h&]”Œlevel”KŒtype”ŒINFO”Œline”K]Œsource”hÇuh1j°hjdh²hh³hÇh´K]ubaŒtransform_messages”]”j±)”}”(hhh]”hí)”}”(hhh]”hŒ-Hyperlink target "vpa-dtl" is not referenced.”…””}”hjÓsbah}”(h]”h ]”h"]”h$]”h&]”uh1hìhjÐubah}”(h]”h ]”h"]”h$]”h&]”Œlevel”KŒtype”jËŒsource”hÇŒline”Kuh1j°ubaŒ transformer”NŒ include_log”]”Œ decoration”Nh²hub.