Files
Jon Hunter 537492a880 trace: Fix build for Linux v6.10
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
(cherry picked from commit 083d7038d1)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3170281
Reviewed-by: Brad Griffis <bgriffis@nvidia.com>
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>
2024-07-08 17:54:00 -07:00

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>