weston/libweston
Derek Foreman 9ce3759bc5 trace: Ensure flow id is always set
Ever since 160394b2c3 we can have
perfetto flow ids in const structs.

We need to preserve the perfetto flow even when tracing is disabled -
a flow will start in a function that has non-const access to a struct,
but other functions further along the flow may only have const access.

Fix up "instant annotations" to preserve flows when not tracing, and to
reset the annotation count on commit when not tracing.

I suppose this also fixes a potential race where annotations aren't
properly reset if tracing is started and stopped multiple times during
the execution of a single function - but I can't imagine that being possible
to hit.

Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
2026-05-20 18:31:02 -05:00
..
backend-drm compositor: Store the output destination and buffer source rects in pnode 2026-05-13 11:20:58 +03:00
backend-headless backend-headless: fix undeclared FALSE identifier 2025-12-09 09:41:52 +01:00
backend-pipewire output-capture: Support writeback connector formats 2025-09-25 12:39:23 +02:00
backend-rdp input: Re-work weston_pointer_axis_event 2026-05-19 00:21:52 +03:00
backend-vnc backend-vnc, gitlab-ci: Update to Neat VNC 1.0.0, aml 1.0.0 2026-05-20 13:26:34 +03:00
backend-wayland input: Introduce weston_touch_event 2026-05-19 00:21:52 +03:00
backend-x11 x11-backend: fix key-press typo 2026-05-19 17:48:15 +03:00
color-lcms color-lcms: properly map power-law curves to tf 2026-05-13 10:21:33 +03:00
desktop input: Introduce weston_touch_event 2026-05-19 00:21:52 +03:00
perfetto trace: Use an unsigned char for the annotation type 2026-05-12 11:25:19 -05:00
renderer-gl compositor,renderers: Store a pointer to the view transform in pnode 2026-05-13 11:20:58 +03:00
renderer-vulkan compositor,renderers: Store a pointer to the view transform in pnode 2026-05-13 11:20:58 +03:00
shell-utils shell-utils: delete weston_shell_utils_surface_get_label() 2026-03-04 09:40:32 +02:00
animation.c animation: Change how we seed the initial time 2025-11-24 12:29:15 -06:00
auth.c libweston: Add user authentication support via PAM 2022-11-23 16:58:48 +01:00
backend.h input: Introduce weston_touch_event 2026-05-19 00:21:52 +03:00
bindings.c input: Re-work weston_pointer_axis_event 2026-05-19 00:21:52 +03:00
clipboard.c Revert "shared/helpers.h: Migrate helpers.h to libweston" 2025-01-17 10:18:26 +02:00
color-management.c color: add weston_cm_send_parametric_info() 2026-04-09 13:00:26 +00:00
color-management.h color: add weston_cm_send_parametric_info() 2026-04-09 13:00:26 +00:00
color-noop.c libweston: make use of some of the new weston assert 2025-09-15 19:16:17 -03:00
color-operations.c renderer-gl: create shader blender state and use it 2026-04-08 21:55:45 +00:00
color-operations.h renderer-gl: create shader blender state and use it 2026-04-08 21:55:45 +00:00
color-profile-param-builder.c color: add weston_color_profile_param_builder_set_target_primaries_named() 2025-10-09 16:17:57 +00:00
color-properties.c color: add KMS colorop 1D curves to tf_info 2026-05-13 10:21:33 +03:00
color-properties.h color: add KMS colorop 1D curves to tf_info 2026-05-13 10:21:33 +03:00
color-representation.c libweston: Implement color-representation protocol 2025-12-19 17:08:29 +01:00
color-representation.h libweston: Implement color-representation protocol 2025-12-19 17:08:29 +01:00
color.c libweston: add weston_color_gamut_from_protocol() 2026-03-03 07:41:27 +00:00
color.h color: rename to_shaper_plus_3dlut() to to_clut() 2026-05-13 10:21:33 +03:00
commit-timing.c compositor: Support the commit-timing protocol 2025-12-16 10:58:01 -06:00
commit-timing.h compositor: Support the commit-timing protocol 2025-12-16 10:58:01 -06:00
compositor.c input: Use weston_pointer_move_to on output re-configuration 2026-05-19 00:21:18 +03:00
content-protection.c cp: Correctly format debug scope for content protection 2025-06-04 17:38:16 +03:00
data-device.c input: Introduce weston_touch_event 2026-05-19 00:21:52 +03:00
drm-formats.c drm-formats: add weston_drm_format_array_count_pairs() 2021-11-25 10:47:45 -03:00
fifo.c fifo: Remove unused flow_id 2026-04-29 09:06:59 -05:00
fifo.h compositor: Add the fifo-v1 protocol 2025-12-04 14:03:13 -06:00
git-version.h.meson Add Meson build system 2018-12-09 14:50:54 +02:00
id-number-allocator.c shared: rename a few weston assert 2025-09-15 19:13:04 -03:00
id-number-allocator.h libweston: add unique id generator 2024-02-13 14:08:38 -03:00
input.c input: Introduce weston_touch_event 2026-05-19 00:21:52 +03:00
launcher-impl.h launcher: Remove launcher-logind 2023-09-29 09:55:32 -05:00
launcher-libseat.c launcher-libseat: Don't hard-stop on libseat-debug 2025-06-04 17:38:16 +03:00
launcher-util.c launcher: Remove launcher-logind 2023-09-29 09:55:32 -05:00
launcher-util.h launchers: Remove --tty option 2022-03-03 17:00:15 -06:00
libinput-device.c input: Introduce weston_touch_event 2026-05-19 00:21:52 +03:00
libinput-device.h libinput: hook up tablet events 2023-03-31 12:10:26 +00:00
libinput-seat.c libinput: support ignoring all libinput-based input devices by configuration 2025-10-21 12:54:42 +03:00
libinput-seat.h Rename compositor.h to libweston/libweston.h 2019-04-18 12:31:46 +03:00
libweston-internal.h input: Introduce weston_touch_event 2026-05-19 00:21:52 +03:00
linux-dmabuf.c shared: add wl_list asserts 2026-05-13 10:21:33 +03:00
linux-dmabuf.h linux-dmabuf: Add support for protocol version 5 2024-01-19 18:59:22 +01:00
linux-explicit-synchronization.c libweston: Advertise minor version 2 of zwp_linux_explicit_synchronization_v1 2019-08-02 15:00:08 +00:00
linux-explicit-synchronization.h libweston: Support zwp_surface_synchronization_v1.set_acquire_fence 2019-02-06 12:21:56 +00:00
linux-sync-file-uapi.h libweston: Introduce an internal linux sync file API 2019-02-06 12:21:56 +00:00
linux-sync-file.c libweston: export weston_linux_sync_file_read_timestamp() 2019-04-18 12:50:55 +03:00
linux-sync-file.h libweston: export weston_linux_sync_file_read_timestamp() 2019-04-18 12:50:55 +03:00
log.c libweston: Add weston_log_paced() 2022-11-08 08:32:26 -06:00
meson.build backend-drm: introduce color pipelines 2026-05-13 10:21:33 +03:00
noop-renderer.c libweston: remove weston_renderer::read_pixels 2026-03-17 17:31:48 +02:00
output-capture.c output-capture: Fix assertions in pull_capture_task() 2025-09-25 17:51:22 +02:00
output-capture.h output-capture: Support writeback connector formats 2025-09-25 12:39:23 +02:00
pixel-formats.c pixel-formats: Add support for compressed YUV 2026-03-30 20:33:55 +01:00
pixel-formats.h pixel-formats: Move FOURCC defines to weston-drm-fourcc.h 2025-06-23 15:03:06 +02:00
pixman-renderer.c pixman-renderer: Remove weston_view from repaint_region 2026-04-09 08:58:15 -05:00
pixman-renderer.h pixman-renderer: Remove renderbuffer_get_image() function 2025-01-21 14:34:31 +01:00
plugin-registry.c Rename plugin-registry.h to libweston/plugin-registry.h 2019-04-18 12:31:46 +03:00
renderer-borders.c libweston: move gl-borders up to weston_renderer 2025-05-18 18:00:08 +02:00
renderer-borders.h libweston: move gl-borders up to weston_renderer 2025-05-18 18:00:08 +02:00
spring-tool.c Rename compositor.h to libweston/libweston.h 2019-04-18 12:31:46 +03:00
surface-state.c trace: Have single macros for funcs with annotations 2026-05-12 10:48:42 -05:00
timeline-perfetto.c perfetto: Put the damage event in the flow instead of the clean event. 2026-04-29 10:06:06 -05:00
timeline.c libweston: do not call weston_surface::get_label() 2026-03-04 09:40:29 +02:00
timeline.h timeline: Add the TL_POINTs into perfetto data 2025-01-24 12:22:13 +00:00
touch-calibration.c input: Introduce weston_touch_event 2026-05-19 00:21:52 +03:00
vertex-clipping.c Revert "shared/helpers.h: Migrate helpers.h to libweston" 2025-01-17 10:18:26 +02:00
vertex-clipping.h gl-renderer: Do not expose clipper_clip() in header 2024-05-30 09:09:45 +00:00
weston-direct-display.c libweston: Add weston-direct-display server side implementation 2019-11-18 19:33:09 +02:00
weston-log-file.c Revert "shared/helpers.h: Migrate helpers.h to libweston" 2025-01-17 10:18:26 +02:00
weston-log-flight-rec.c Revert "shared/helpers.h: Migrate helpers.h to libweston" 2025-01-17 10:18:26 +02:00
weston-log-internal.h weston-log-wayland: make stream_destroy() use weston_log_subscriber_release() 2020-02-10 10:53:50 +00:00
weston-log-wayland.c weston-log: Add a advertised list of debug scopes 2025-06-04 17:43:33 +03:00
weston-log.c log: Add weston_log_scoped_puts() 2026-04-14 17:12:05 +03:00
weston-trace.h trace: Ensure flow id is always set 2026-05-20 18:31:02 -05:00