[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC 0/6] scripts: Rewrite simpletrace printer in Rust
From: |
Mads Ynddal |
Subject: |
Re: [RFC 0/6] scripts: Rewrite simpletrace printer in Rust |
Date: |
Mon, 27 May 2024 12:49:06 +0200 |
Hi,
Interesting work. I don't have any particular comments for the code, but I
wanted to address a few of the points here.
> 2. Rust delivers faster parsing.
For me, the point of simpletrace.py is not to be the fastest at parsing, but
rather to open the door for using Python libraries like numpy, matplotlib, etc.
for analysis.
There might be room for improvement in the Python version, especially in
minimizing memory usage, when parsing large traces.
> Security
> --------
>
> This is an example.
>
> Rust is very strict about type-checking, and it found timestamp reversal
> issue in simpletrace-rust [3] (sorry, haven't gotten around to digging
> deeper with more time)...in this RFC, I workingaround it by allowing
> negative values. And the python version, just silently covered this
> issue up.
I'm not particularly worried about the security of the Python version. We're not
doing anything obviously exploitable.
—
Mads Ynddal
- Re: [RFC 1/6] scripts/simpletrace-rust: Add the basic cargo framework, (continued)
- Re: [RFC 1/6] scripts/simpletrace-rust: Add the basic cargo framework, Zhao Liu, 2024/05/28
- Re: [RFC 1/6] scripts/simpletrace-rust: Add the basic cargo framework, Stefan Hajnoczi, 2024/05/28
- Re: [RFC 1/6] scripts/simpletrace-rust: Add the basic cargo framework, Zhao Liu, 2024/05/29
- Re: [RFC 1/6] scripts/simpletrace-rust: Add the basic cargo framework, Stefan Hajnoczi, 2024/05/29
- Re: [RFC 1/6] scripts/simpletrace-rust: Add the basic cargo framework, Daniel P . Berrangé, 2024/05/31
[RFC 3/6] scripts/simpletrace-rust: Add helpers to parse trace file, Zhao Liu, 2024/05/27
[RFC 6/6] docs/tracing: Add simpletrace-rust section, Zhao Liu, 2024/05/27
Re: [RFC 0/6] scripts: Rewrite simpletrace printer in Rust, Philippe Mathieu-Daudé, 2024/05/27
Re: [RFC 0/6] scripts: Rewrite simpletrace printer in Rust,
Mads Ynddal <=
Re: [RFC 0/6] scripts: Rewrite simpletrace printer in Rust, Stefan Hajnoczi, 2024/05/27
Re: [RFC 0/6] scripts: Rewrite simpletrace printer in Rust, Daniel P . Berrangé, 2024/05/31