> ## Documentation Index
> Fetch the complete documentation index at: https://dragonwingdocs.qualcomm.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Verify thermal state

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 ftrace logs, run the following commands:

```text theme={null}
echo 1 > /sys/kernel/tracing/events/thermal/enable
```

<Tabs>
  <Tab title="QCS6490/QCS5430">
    The following are the log snippets of different thermal events:

    ```text theme={null}
    /* 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=100
    ```
  </Tab>

  <Tab title="IQ-9075">
    The following are the log snippets of mitigation trigger and clear thermal events for IQ-9075:

    ```text theme={null}
    /* In the following snippet, " cpu-1-2-1-thermal" represents thermal zone
    and “trip” indicates trip level and trip level 1 is triggered for
    cpu-1-2-1-thermal thermal zone*/
    irq/222-c252000-115     [000] ..... 250901.340001:
    thermal_zone_trip: thermal_zone=cpu-1-2-1-thermal
    id=16 trip=1 trip_type=PASSIVE
    /*In the following snippet, “type” represents the cooling device and "target" represents active mitigation of the cooling device*/
    irq/222-c252000-115     [000] ..... 250901.340009: cdev_update: type=idle-cpu6 target=100 kworker/u17:0-23271   [000] ..... 250901.355101:
    thermal_temperature: thermal_zone=cpu-1-2-1-thermal id=16 temp_prev=30100 temp=34100
    kworker/u17:0-23271   [000] ..... 250901.339084: thermal_temperature: thermal_zone=cpu-1-2-1-thermal id=16 temp_prev=30100 temp=29800
    kworker/u17:0-23271   [000] ..... 250901.339139: cdev_update: type=idle-cpu6 target=0
    ```
  </Tab>
</Tabs>

**Note**

The log snippet for IQ-8275 and IQ-615 will be updated in a future release.
