The tracepoints.h file is generated from the tracepoints.h.in template
by the gen-tp-header.py script. The template contains a {{year}}
placeholder for the copyright year, which the script fills with the
current year. This breaks reproducible builds with at least the openSUSE
debugsource package.
As the gen-tp-header.py script doesn't add any copyrightable contents to
the tracepoints.h file, fix this by replacing the {{year}} placeholder
with the year of the last copyright-worthy change to tracepoints.h.in.
Signed-off-by: Bernhard M. Wiedemann <bwiedemann@suse.de>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
62 lines
1.4 KiB
C
62 lines
1.4 KiB
C
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
|
/*
|
|
* Copyright (C) 2020, Google Inc.
|
|
*
|
|
* Tracepoints with lttng
|
|
*
|
|
* This file is auto-generated. Do not edit.
|
|
*/
|
|
#ifndef __LIBCAMERA_INTERNAL_TRACEPOINTS_H__
|
|
#define __LIBCAMERA_INTERNAL_TRACEPOINTS_H__
|
|
|
|
#if HAVE_TRACING
|
|
#define LIBCAMERA_TRACEPOINT(...) tracepoint(libcamera, __VA_ARGS__)
|
|
|
|
#define LIBCAMERA_TRACEPOINT_IPA_BEGIN(pipe, func) \
|
|
tracepoint(libcamera, ipa_call_begin, #pipe, #func)
|
|
|
|
#define LIBCAMERA_TRACEPOINT_IPA_END(pipe, func) \
|
|
tracepoint(libcamera, ipa_call_end, #pipe, #func)
|
|
|
|
#else
|
|
|
|
namespace {
|
|
|
|
template <typename ...Args>
|
|
inline void unused([[maybe_unused]] Args&& ...args)
|
|
{
|
|
}
|
|
|
|
} /* namespace */
|
|
|
|
#define LIBCAMERA_TRACEPOINT(category, ...) unused(__VA_ARGS__)
|
|
|
|
#define LIBCAMERA_TRACEPOINT_IPA_BEGIN(pipe, func)
|
|
#define LIBCAMERA_TRACEPOINT_IPA_END(pipe, func)
|
|
|
|
#endif /* HAVE_TRACING */
|
|
|
|
#endif /* __LIBCAMERA_INTERNAL_TRACEPOINTS_H__ */
|
|
|
|
|
|
#if HAVE_TRACING
|
|
|
|
#undef TRACEPOINT_PROVIDER
|
|
#define TRACEPOINT_PROVIDER libcamera
|
|
|
|
#undef TRACEPOINT_INCLUDE
|
|
#define TRACEPOINT_INCLUDE "{{path}}"
|
|
|
|
#if !defined(INCLUDE_LIBCAMERA_INTERNAL_TRACEPOINTS_TP_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
|
|
#define INCLUDE_LIBCAMERA_INTERNAL_TRACEPOINTS_TP_H
|
|
|
|
#include <lttng/tracepoint.h>
|
|
|
|
{{source}}
|
|
|
|
#endif /* INCLUDE_LIBCAMERA_INTERNAL_TRACEPOINTS_TP_H */
|
|
|
|
#include <lttng/tracepoint-event.h>
|
|
|
|
#endif /* HAVE_TRACING */
|