mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
In Linux v6.10, the __assign_str() macro was updated to remove the 2nd argument. Add a test to the conftest script to detect this and update the various trace header files as necessary. Bug 4593750 Change-Id: I495e78658249baa84cca5b864f4e172c1f3f0838 Signed-off-by: Jon Hunter <jonathanh@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3152310 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
43 lines
926 B
C
43 lines
926 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/* SPDX-FileCopyrightText: Copyright (c) 2017-2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved. */
|
|
/*
|
|
* imx185.h
|
|
*/
|
|
|
|
#include <nvidia/conftest.h>
|
|
|
|
#undef TRACE_SYSTEM
|
|
#define TRACE_SYSTEM imx185
|
|
|
|
#if !defined(_TRACE_IMX185_H) || defined(TRACE_HEADER_MULTI_READ)
|
|
#define _TRACE_IMX185_H
|
|
|
|
#include <linux/tracepoint.h>
|
|
|
|
TRACE_EVENT(imx185_s_stream,
|
|
TP_PROTO(const char *name, int enable, int mode),
|
|
TP_ARGS(name, enable, mode),
|
|
TP_STRUCT__entry(
|
|
__string(name, name)
|
|
__field(int, enable)
|
|
__field(int, mode)
|
|
),
|
|
TP_fast_assign(
|
|
#if defined(NV___ASSIGN_STR_HAS_NO_SRC_ARG)
|
|
__assign_str(name);
|
|
#else
|
|
__assign_str(name, name);
|
|
#endif
|
|
__entry->enable = enable;
|
|
__entry->mode = mode;
|
|
),
|
|
TP_printk("%s: on %d mode %d", __get_str(name),
|
|
__entry->enable, __entry->mode)
|
|
);
|
|
|
|
|
|
#endif
|
|
|
|
/* This part must be outside protection */
|
|
#include <trace/define_trace.h>
|