# Debug Source: [https://docs.qualcomm.com/doc/80-70014-30/topic/thermal-debug.html](https://docs.qualcomm.com/doc/80-70014-30/topic/thermal-debug.html) Thermal logging helps to understand the active configurations of the thermal zones, and existing thermal mitigation levels. To retrieve thermal configuration, and active mitigation levels, use ftrace logs or dmesg logs. ## ftrace method To enable thermal ftace logs run the following commands: echo 1 > /sys/kernel/tracing/events/thermal/enableCopy to clipboard Following are log snippets of different thermal events: /* In the following snippet, "gpuss-0" represents thermal zone and “temp” indicates existing temperature of thermal zone */ irq/40-c22a000.-189 [000] ..... 190.395326: thermal_temperature: thermal_zone=gpuss-0 id=40 temp_prev=90300 temp=95000 /*In the following snippet, “trip” indicates trip level and trip level 1 is triggered for gpuss-0 thermal zone*/ irq/40-c22a000.-189 [000] ..... 190.395445: thermal_zone_trip: thermal_zone=gpuss-0 id=40 trip=1 trip_type=PASSIVE /*In the following snippet, “target” represents active mitigation level of cooling device*/ irq/40-c22a000.-189 [000] ..... 190.395675: cdev_update: type=devfreq-xxxx target=1 Copy to clipboard ## Dmesg method To enable thermal framework logging in Dmesg logs run the following commands: mount -t debugfs none /sys/kernel/debugCopy to clipboard echo "module thermal_sys +p" >/sys/kernel/debug/dynamic_debug/controlCopy to clipboard Note: Set `CONFIG_DYNAMIC_DEBUG` in kernel configuration file Following are log snippets of different thermal events: /* Following snippets indicates thermal zone multiple trip temperature configurations */ [1579197.331791] thermal thermal_zone12: Trip0[type=1,temp=115000]:trend=2,throttle=0 [1579197.341448] thermal thermal_zone12: Trip1[type=1,temp=50000]:trend=2,throttle=0 [1579197.350110] thermal thermal_zone12: Trip2[type=1,temp=110000]:trend=2,throttle=0 /* Following log snippet indicates present temperature of thermal zone 12 and sensor id represents sensor associated with a thermal zone */ [1579362.994130] get_temp_tsens_valid:Sensor_id: 3 name:cpu-1-0-0 temp: 50200 [1579362.994664] thermal thermal_zone12: new temperature boundaries: 49000 < x < 110000 Copy to clipboard **Parent Topic:** [Thermal management](https://docs.qualcomm.com/doc/80-70014-30/topic/thermalmanagement.html) Last Published: Jul 15, 2024 [Previous Topic Customize](https://docs.qualcomm.com/bundle/publicresource/80-70014-30/topics/customize.md) [Next Topic References](https://docs.qualcomm.com/bundle/publicresource/80-70014-30/topics/references.md)