8000 Add `TraceMeFilter::kTraceHostEnqueueCallback = 1` in `trace_filter_utils.h`, and clear that bit (bit 1, mask `0x2`) in `kTraceMeDefaultFilterMask` in `traceme.h` using a new `kTraceMeHostEnqueueCallbackFilter` constant with the same value. `traceme.h` cannot depend on `trace_filter_utils.h`, so `traceme_recorder_test` checks with a `static_assert` that the two stay equal. by copybara-service[bot] · Pull Request #3677 · google/tsl · GitHub
[go: up one dir, main page]

Skip to content

Add TraceMeFilter::kTraceHostEnqueueCallback = 1 in trace_filter_utils.h, and clear that bit (bit 1, mask 0x2) in kTraceMeDefaultFilterMask in traceme.h using a new kTraceMeHostEnqueueCallbackFilter constant with the same value. traceme.h cannot depend on trace_filter_utils.h, so traceme_recorder_test checks with a static_assert that the two stay equal. - #3677

Open
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_1011286453

Conversation

@copybara-service
@copybara-service copybara-service Bot commented Nov 5, 2026 •
Copy link
Copy Markdown

Add TraceMeFilter::kTraceHostEnqueueCallback = 1 in trace_filter_utils.h, and clear that bit (bit 1, mask 0x2) in kTraceMeDefaultFilterMask in traceme.h using a new kTraceMeHostEnqueueCallbackFilter constant with the same value. traceme.h cannot depend on trace_filter_utils.h, so traceme_recorder_test checks with a static_assert that the two stay equal.

Sessions configured with host_traceme_filter_mask = (1ULL << kTraceHostEnqueueCallback) record only TraceMe events tagged with that bit. Sessions without a filter or with the kTraceMemory filter record the same events as before, including the tagged ones. traceme_recorder_test covers both cases.

@copybara-service
copybara-service Bot force-pushed the test_1011286453 branch 2 times, most recently from 1a78346 to 9c9ed68 Compare November 9, 2026 06:50
@copybara-service copybara-service Bot changed the title Add TraceMeFilter::kTraceHostEnqueueCallback = 1 in trace_filter_utils.h and clear bit 1 (~(1ULL << tsl::profiler::kTraceHostEnqueueCallback)) in kTraceMeDefaultFilterMask in traceme.h. Add TraceMeFilter::kTraceHostEnqueueCallback = 1 in trace_filter_utils.h, and clear that bit in kTraceMeDefaultFilterMask in traceme.h using a new kTraceMeHostEnqueueCallbackFilterBit constant. traceme.h cannot depend on trace_filter_utils.h, so traceme_recorder_test checks with a static_assert that the two stay equal. Nov 9, 2026
…tils.h`, and clear that bit (bit 1, mask `0x2`) in `kTraceMeDefaultFilterMask` in `traceme.h` using a new `kTraceMeHostEnqueueCallbackFilter` constant with the same value. `traceme.h` cannot depend on `trace_filter_utils.h`, so `traceme_recorder_test` checks with a `static_assert` that the two stay equal.

Sessions configured with `host_traceme_filter_mask = (1ULL << kTraceHostEnqueueCallback)` record only `TraceMe` events tagged with that bit. Sessions without a filter or with the `kTraceMemory` filter record the same events as before, including the tagged ones. `traceme_recorder_test` covers both cases.

PiperOrigin-RevId: 1011286453
@copybara-service copybara-service Bot changed the title Add TraceMeFilter::kTraceHostEnqueueCallback = 1 in trace_filter_utils.h, and clear that bit in kTraceMeDefaultFilterMask in traceme.h using a new kTraceMeHostEnqueueCallbackFilterBit constant. traceme.h cannot depend on trace_filter_utils.h, so traceme_recorder_test checks with a static_assert that the two stay equal. Add TraceMeFilter::kTraceHostEnqueueCallback = 1 in trace_filter_utils.h, and clear that bit (bit 1, mask 0x2) in kTraceMeDefaultFilterMask in traceme.h using a new kTraceMeHostEnqueueCallbackFilter constant with the same value. traceme.h cannot depend on trace_filter_utils.h, so traceme_recorder_test checks with a static_assert that the two stay equal. Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0