.. | .. |
---|
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 |
---|
.. | .. |
---|
71 | 71 | } |
---|
72 | 72 | |
---|
73 | 73 | void kbasep_ktrace_add_jm(struct kbase_device *kbdev, |
---|
74 | | - enum kbase_ktrace_code code, struct kbase_context *kctx, |
---|
75 | | - struct kbase_jd_atom *katom, u64 gpu_addr, |
---|
76 | | - kbase_ktrace_flag_t flags, int refcount, int jobslot, |
---|
77 | | - u64 info_val) |
---|
| 74 | + enum kbase_ktrace_code code, |
---|
| 75 | + struct kbase_context *kctx, |
---|
| 76 | + const struct kbase_jd_atom *katom, u64 gpu_addr, |
---|
| 77 | + kbase_ktrace_flag_t flags, int refcount, int jobslot, |
---|
| 78 | + u64 info_val) |
---|
78 | 79 | { |
---|
79 | 80 | unsigned long irqflags; |
---|
80 | 81 | struct kbase_ktrace_msg *trace_msg; |
---|
81 | 82 | |
---|
| 83 | + if (unlikely(!kbasep_ktrace_initialized(&kbdev->ktrace))) |
---|
| 84 | + return; |
---|
| 85 | + |
---|
82 | 86 | spin_lock_irqsave(&kbdev->ktrace.lock, irqflags); |
---|
83 | 87 | |
---|
84 | 88 | /* Reserve and update indices */ |
---|