# Debug

Source: [https://docs.qualcomm.com/doc/80-70015-30/topic/thermal-debug.html](https://docs.qualcomm.com/doc/80-70015-30/topic/thermal-debug.html)

Thermal logging helps to understand the active configurations of the thermal zones
        and the existing thermal mitigation levels. To retrieve thermal configuration and active
        mitigation levels, use ftrace logs.

## ftrace method

To enable thermal ftace logs run the following commands:

echo 1 > /sys/kernel/tracing/events/thermal/enableCopy to clipboard

The following are the log snippets of different thermal events:

/* In the following snippet, "cpu0-thermal" represents thermal zone and “temp” indicates existing temperature of thermal zone */
    sh-1420    [001] ..... 1132975.934216: thermal_temperature: thermal_zone=cpu0-thermal id=13 temp_prev=47700 temp=110000
    /*In the following snippet, “trip” indicates trip level and trip level 1 is triggered for cpu0-thermal thermal zone*/
    sh-1420    [001] ..... 1132975.934449: thermal_zone_trip: thermal_zone=cpu0-thermal id=13 trip=1 trip_type=PASSIVE
    /*In the following snippet, “type” represents the cooling device and "target" represents active mitigation of the cooling device*/
     sh-1420 [001] ..... 1132975.934473: cdev_update: type=idle-cpu0 target=100Copy to clipboard

Note: The log snippet is for QCS6490/QCS5430.

**Parent Topic:** [Thermal management](https://docs.qualcomm.com/doc/80-70015-30/topic/thermalmanagement.html)

Last Published: Oct 16, 2024

[Previous Topic
Customize](https://docs.qualcomm.com/bundle/publicresource/80-70015-30/topics/customize.md) [Next Topic
References](https://docs.qualcomm.com/bundle/publicresource/80-70015-30/topics/references.md)