.. | .. |
---|
1 | 1 | // SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note |
---|
2 | 2 | /* |
---|
3 | 3 | * |
---|
4 | | - * (C) COPYRIGHT 2020-2021 ARM Limited. All rights reserved. |
---|
| 4 | + * (C) COPYRIGHT 2020-2022 ARM Limited. All rights reserved. |
---|
5 | 5 | * |
---|
6 | 6 | * This program is free software and is provided to you under the terms of the |
---|
7 | 7 | * GNU General Public License version 2 as published by the Free Software |
---|
.. | .. |
---|
98 | 98 | struct kbase_ktrace_msg *trace_msg; |
---|
99 | 99 | struct kbase_context *kctx = NULL; |
---|
100 | 100 | |
---|
| 101 | + if (unlikely(!kbasep_ktrace_initialized(&kbdev->ktrace))) |
---|
| 102 | + return; |
---|
| 103 | + |
---|
101 | 104 | spin_lock_irqsave(&kbdev->ktrace.lock, irqflags); |
---|
102 | 105 | |
---|
103 | 106 | /* Reserve and update indices */ |
---|
.. | .. |
---|
165 | 168 | struct kbase_ktrace_msg *trace_msg; |
---|
166 | 169 | struct kbase_context *kctx = queue->kctx; |
---|
167 | 170 | |
---|
| 171 | + if (unlikely(!kbasep_ktrace_initialized(&kbdev->ktrace))) |
---|
| 172 | + return; |
---|
| 173 | + |
---|
168 | 174 | spin_lock_irqsave(&kbdev->ktrace.lock, irqflags); |
---|
169 | 175 | |
---|
170 | 176 | /* Reserve and update indices */ |
---|