Attention needed from Etienne Pierre-Doray
Jesse McKenna added 2 comments![Open in Gerrit]()
Patchset-level comments
File components/tracing/common/etw_consumer_win_unittest.cc
Line 1118, Patchset 3:TEST_F(EtwConsumerTest, StackWalkFiltering) {
// Stack thread ID is masked if it doesn't belong to Chrome.
ProcessStackWalkEvent(EncodeStackWalk(123456u, kOtherPid, kOtherTid, {}));
ASSERT_EQ(decoders().size(), 1u);
std::optional<perfetto::protos::pbzero::EtwTraceEvent::Decoder> event;
std::optional<perfetto::protos::pbzero::StackWalkEtwEvent::Decoder>
stack_walk;
ASSERT_NO_FATAL_FAILURE(
ValidateAndDecodeStackWalk(*decoders().back(), event, stack_walk));
EXPECT_FALSE(event->has_thread_id());
}Etienne Pierre-Doray .
resolvedCome to think of it, we should exclude the entire stack walk events if the thread id is not chrome (we wouldn't be able to symbolize anyways), so the impl should follow the same pattern as ShouldRecordFileIoEvents.
Jesse McKenna
Open in GerritRelated details
Attention is currently required from:
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ia0c40a5dba45197eac41634a400394e3888ef55f
Gerrit-Change-Number: 7906442
Gerrit-PatchSet: 5
Gerrit-Comment-Date: Fri, 12 Jun 2026 00:37:36 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No