| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
// 3 pointers + 3 `uint32`s + wide string contents + wide string terminator.
const size_t kMinimumSize =comment doesn't match code. I think code is correct.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
// 3 pointers + 3 `uint32`s + wide string contents + wide string terminator.
const size_t kMinimumSize =comment doesn't match code. I think code is correct.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
LG, but let's wait for perfetto CL to land and roll
bool EtwConsumer::DecodeFileIoPathOperationEvent(Can you add a minimal test in components/tracing/common/etw_consumer_win_unittest.cc similar to FileIoFltOpEvent
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
LGTM with nits : )
// Decodes a FileIo_PathOperation event and emits a Perfetto trace event.nit: enclose in backticks
```suggestion
// Decodes a `FileIo_PathOperation` event and emits a Perfetto trace event.
```
case 79: // PathDelete
case 80: // PathRenameOptional: I couldn't find any docs for PathDelete or PathRename - where did you find these? It might be better to match the comments above and use plain English, e.g., "Delete path", "Rename path". Disregard if these are the real event names and you think including them is useful.
DLOG(ERROR) << "Error decoding FileIO_PathOperation event";FileIo
// Read the contents of `packet_data` and generate a `FileIoInfo` event.Should this be FileIo_PathOperation?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Commit-Queue | +0 |
Optional: I couldn't find any docs for PathDelete or PathRename - where did you find these? It might be better to match the comments above and use plain English, e.g., "Delete path", "Rename path". Disregard if these are the real event names and you think including them is useful.
I wasn't able to find any docs for these events. The "PathOperation" part came from https://gist.github.com/jdu2600/a2b03e4e9cf19282a41ad766388c9856 and the rename/delete part by matching the `InfoClass` value with https://learn.microsoft.com/en-us/windows-hardware/drivers/ddi/wdm/ne-wdm-_file_information_class.
I'll update them to match the ones above since these aren't "official" names
DLOG(ERROR) << "Error decoding FileIO_PathOperation event";Jack MillerFileIo
Good catch! Updated
bool EtwConsumer::DecodeFileIoPathOperationEvent(Can you add a minimal test in components/tracing/common/etw_consumer_win_unittest.cc similar to FileIoFltOpEvent
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
// Decodes a FileIo_PathOperation event and emits a Perfetto trace event.nit: enclose in backticks
```suggestion
// Decodes a `FileIo_PathOperation` event and emits a Perfetto trace event.
```
Done
// Read the contents of `packet_data` and generate a `FileIoInfo` event.Jack MillerShould this be FileIo_PathOperation?
Ya, good catch. Updated
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
// Tests that a FileIoPathOperationEtwEvent is emitted for a
// FileIo_PathOperation ETW event.backticks around these, here and on the other test.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Commit-Queue | +0 |
// Tests that a FileIoPathOperationEtwEvent is emitted for a
// FileIo_PathOperation ETW event.backticks around these, here and on the other test.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
using perfetto::protos::pbzero::FileIoPathOperationEtwEvent;is this useful?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Commit-Queue | +1 |
using perfetto::protos::pbzero::FileIoPathOperationEtwEvent;is this useful?
I never tried writing the method without it because the other `DecodeFileIo*` methods in the file all had a similar `using` statement. But I just tried compiling without it and it works file. Do you know why these were added in the first place?
I can remove this and the other `using` statements from the `DecodeFileIo*` methods if they don't have a specific purpose
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
using perfetto::protos::pbzero::FileIoPathOperationEtwEvent;Jack Milleris this useful?
I never tried writing the method without it because the other `DecodeFileIo*` methods in the file all had a similar `using` statement. But I just tried compiling without it and it works file. Do you know why these were added in the first place?
I can remove this and the other `using` statements from the `DecodeFileIo*` methods if they don't have a specific purpose
+1, looks like FileIoPathOperationEtwEvent alias isn't used.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
using perfetto::protos::pbzero::FileIoPathOperationEtwEvent;Jack Milleris this useful?
Etienne Pierre-DorayI never tried writing the method without it because the other `DecodeFileIo*` methods in the file all had a similar `using` statement. But I just tried compiling without it and it works file. Do you know why these were added in the first place?
I can remove this and the other `using` statements from the `DecodeFileIo*` methods if they don't have a specific purpose
+1, looks like FileIoPathOperationEtwEvent alias isn't used.
Thanks, I removed `FileIoPathOperationEtwEvent` and the other using statements from the `DecodeFileIo*` methods
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
using perfetto::protos::pbzero::FileIoPathOperationEtwEvent;Jack Milleris this useful?
Etienne Pierre-DorayI never tried writing the method without it because the other `DecodeFileIo*` methods in the file all had a similar `using` statement. But I just tried compiling without it and it works file. Do you know why these were added in the first place?
I can remove this and the other `using` statements from the `DecodeFileIo*` methods if they don't have a specific purpose
Jack Miller+1, looks like FileIoPathOperationEtwEvent alias isn't used.
Thanks, I removed `FileIoPathOperationEtwEvent` and the other using statements from the `DecodeFileIo*` methods
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Commit-Queue | +2 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Add FileIo_PathOperation event support
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |