1 // SPDX-License-Identifier: GPL-2.0-only
3 // Copyright(c) 2021-2022 Intel Corporation. All rights reserved.
5 // Author: Cezary Rojewski <cezary.rojewski@intel.com>
6 // Amadeusz Slawinski <amadeuszx.slawinski@linux.intel.com>
9 #include <linux/types.h>
11 #define CREATE_TRACE_POINTS
14 #define BYTES_PER_LINE 16
15 #define MAX_CHUNK_SIZE ((PAGE_SIZE - 150) /* Place for trace header */ \
16 / (2 * BYTES_PER_LINE + 4) /* chars per line */ \
19 void trace_avs_msg_payload(const void *data, size_t size)
21 size_t remaining = size;
24 while (remaining > 0) {
27 chunk = min(remaining, (size_t)MAX_CHUNK_SIZE);
28 trace_avs_ipc_msg_payload(data, chunk, offset, size);