Implement tracing infrastructure in libcamera. It takes .tp files, as required by lttng, and generates a tracepoint header and C file, as lttng requires. meson is updated accordingly to get it to compile with the rest of libcamera. Update the documentation accordingly. Signed-off-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
46 lines
1.0 KiB
Meson
46 lines
1.0 KiB
Meson
# SPDX-License-Identifier: CC0-1.0
|
|
|
|
subdir('tracepoints')
|
|
|
|
libcamera_tracepoint_header = custom_target(
|
|
'tp_header',
|
|
input: [ 'tracepoints.h.in', tracepoint_files ],
|
|
output: 'tracepoints.h',
|
|
command: [ gen_tracepoints_header, '@OUTPUT@', '@INPUT@' ],
|
|
)
|
|
|
|
libcamera_internal_headers = files([
|
|
'byte_stream_buffer.h',
|
|
'camera_controls.h',
|
|
'camera_sensor.h',
|
|
'control_serializer.h',
|
|
'control_validator.h',
|
|
'device_enumerator.h',
|
|
'device_enumerator_sysfs.h',
|
|
'device_enumerator_udev.h',
|
|
'event_dispatcher_poll.h',
|
|
'file.h',
|
|
'formats.h',
|
|
'ipa_context_wrapper.h',
|
|
'ipa_manager.h',
|
|
'ipa_module.h',
|
|
'ipa_proxy.h',
|
|
'ipc_unixsocket.h',
|
|
'log.h',
|
|
'media_device.h',
|
|
'media_object.h',
|
|
'message.h',
|
|
'pipeline_handler.h',
|
|
'process.h',
|
|
'pub_key.h',
|
|
'semaphore.h',
|
|
'sysfs.h',
|
|
'thread.h',
|
|
'utils.h',
|
|
'v4l2_controls.h',
|
|
'v4l2_device.h',
|
|
'v4l2_pixelformat.h',
|
|
'v4l2_subdevice.h',
|
|
'v4l2_videodevice.h',
|
|
])
|