microsoft/ETW2JSON — reverse-engineered prompt

Reverse engineered prompt

GitHub

Build me a small C# command line tool and reusable library that converts Windows ETW log files with the .etl extension into readable JSON.

I want to be able to run it like ETW2JSON myFile.etl anotherFile.etl --output=myFile.json, and it should read one or more ETL files and write a JSON file containing the events grouped in a useful way. It should also expose a library method so another app can pass in a JsonWriter, a list of input files, and an error callback.

Please make it handle common ETW event types like Windows manifest events, MOF class events, .NET EventSource events, CLR events, and XPERF or WPR merged profiler events when possible. If an event can’t be decoded cleanly, report the error without crashing the whole conversion.

Keep the output human readable and compatible with normal JSON tools. Include a simple README with command line usage, library usage, and an example JSON output.

Want more depth? Deep Reverse