jacereda / fsatrace

Filesystem access tracer
ISC License
81 stars 12 forks source link

fsatrace isn't recording executable being run as a "read". #26

Closed spall closed 5 years ago

spall commented 5 years ago

On Linux, fsatrace doesn't appear to record the executable it is running as a "read".
Tagging @ndmitchell; since we are using fsatrace in Rattle.

jacereda commented 5 years ago

Most of the time, exec is preceded by a stat, do you get that one at least? (It's reported as q). For the purposes of a build system, I'd handle a query the same ways as a read.

spall commented 5 years ago

No, I don't see anything; the function parsing the fsatrace output gives me an empty list. Let me know if you need more information and I will do my best.

jacereda commented 5 years ago

What's the command?

spall commented 5 years ago

https://github.com/ndmitchell/rattle/blob/86fe329ff117c6a9d70e835d99bb6925a4e3a95e/test/Test.hs#L32

jacereda commented 5 years ago

Can you check if https://github.com/jacereda/fsatrace/commit/b11acd9c5b7bf93b9a990fd337e190daf889b083 fixes it for you?

spall commented 5 years ago

Thank you, "Main" now registers as an "r".