RFR: 8271232: JFR: Scrub recording data [v3]

Gunnar Morling duke at openjdk.java.net
Tue Feb 22 21:23:48 UTC 2022


On Tue, 22 Feb 2022 12:35:54 GMT, Erik Gahlin <egahlin at openjdk.org> wrote:

>> Hi,
>> 
>> Could I have review of an enhancement that allows .jfr files to be scrubbed for sensitive information, either by a call to `RecordingFile::write(Path, Predicate<RecordedEvent>) `or from command line with `jfr scrub`. For details, see CSR.
>> 
>> Testing: jdk/jdk/jfr + manual testing with a SPECjbb recording with all events enabled
>> 
>> Thanks
>> Erik
>
> Erik Gahlin has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Remove unnecessary assignment

src/jdk.jfr/share/classes/jdk/jfr/internal/tool/Scrub.java line 83:

> 81:         stream.println("  --include-threads <filter>      Select events matching a thread name");
> 82:         stream.println();
> 83:         stream.println("  --exclude-threads <filter>      Exclude events matching a thread name");

Did you consider to allow filtering based on timestamps? It would be useful if one could extract a specific interval, e.g. 30 sec. starting at a given timestamp) from a larger recording.

-------------

PR: https://git.openjdk.java.net/jdk/pull/7548


More information about the hotspot-jfr-dev mailing list