Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f47400c9 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: kgsl: Add trace for GPU thermal mitigation"

parents 57e54b88 71a3a23f
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2010-2018, The Linux Foundation. All rights reserved.
 * Copyright (c) 2010-2019, The Linux Foundation. All rights reserved.
 */

#include <linux/export.h>
@@ -890,6 +890,7 @@ static int opp_notify(struct notifier_block *nb,
	else
		dev_pm_opp_put(opp);

	trace_kgsl_opp_notify(min_freq, max_freq);
	mutex_lock(&device->mutex);

	max_level = pwr->thermal_pwrlevel;
+22 −1
Original line number Diff line number Diff line
/* SPDX-License-Identifier: GPL-2.0 */
/*
 * Copyright (c) 2011-2018, The Linux Foundation. All rights reserved.
 * Copyright (c) 2011-2019, The Linux Foundation. All rights reserved.
 */

#if !defined(_KGSL_TRACE_H) || defined(TRACE_HEADER_MULTI_READ)
@@ -1270,6 +1270,27 @@ DEFINE_EVENT(hfi_msg_template, kgsl_hfi_receive,
	TP_ARGS(id, size, seqnum)
);

TRACE_EVENT(kgsl_opp_notify,
	TP_PROTO(
		unsigned long min_freq,
		unsigned long max_freq
	),
	TP_ARGS(
		min_freq,
		max_freq
	),
	TP_STRUCT__entry(
		__field(unsigned long, min_freq)
		__field(unsigned long, max_freq)
	),
	TP_fast_assign(
		__entry->min_freq = min_freq;
		__entry->max_freq = max_freq;
	),
	TP_printk("min freq=%ld max freq=%ld",
		__entry->min_freq, __entry->max_freq
	)
);
#endif /* _KGSL_TRACE_H */

/* This part must be outside protection */