From 1543e317f1da31b75942316931e8f491a8920811 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Thu, 04 Jan 2024 10:08:02 +0000
Subject: [PATCH] disable FB
---
kernel/drivers/gpu/arm/bifrost/debug/mali_kbase_debug_ktrace.h | 15 ++++++++++++++-
1 files changed, 14 insertions(+), 1 deletions(-)
diff --git a/kernel/drivers/gpu/arm/bifrost/debug/mali_kbase_debug_ktrace.h b/kernel/drivers/gpu/arm/bifrost/debug/mali_kbase_debug_ktrace.h
index 6cb1ea3..11f0b5c 100644
--- a/kernel/drivers/gpu/arm/bifrost/debug/mali_kbase_debug_ktrace.h
+++ b/kernel/drivers/gpu/arm/bifrost/debug/mali_kbase_debug_ktrace.h
@@ -1,7 +1,7 @@
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
/*
*
- * (C) COPYRIGHT 2020-2021 ARM Limited. All rights reserved.
+ * (C) COPYRIGHT 2020-2022 ARM Limited. All rights reserved.
*
* This program is free software and is provided to you under the terms of the
* GNU General Public License version 2 as published by the Free Software
@@ -49,6 +49,7 @@
/**
* kbase_ktrace_init - initialize kbase ktrace.
* @kbdev: kbase device
+ * Return: 0 if successful or a negative error code on failure.
*/
int kbase_ktrace_init(struct kbase_device *kbdev);
@@ -81,6 +82,18 @@
*/
#if KBASE_KTRACE_TARGET_RBUF
/**
+ * kbasep_ktrace_initialized - Check whether kbase ktrace is initialized
+ *
+ * @ktrace: ktrace of kbase device.
+ *
+ * Return: true if ktrace has been initialized.
+ */
+static inline bool kbasep_ktrace_initialized(struct kbase_ktrace *ktrace)
+{
+ return ktrace->rbuf != NULL;
+}
+
+/**
* kbasep_ktrace_add - internal function to add trace to the ringbuffer.
* @kbdev: kbase device
* @code: ktrace code
--
Gitblit v1.6.2