Comments (8)
This is on linux. Not sure if it looks the same on other platforms.
from fsatrace.
What would be the expected behaviour from a build system perspective? I would assume queries/reads should follow symlinks but deletes shouldn't, what do you think?
from fsatrace.
@fangism ping
from fsatrace.
[Sorry, I've been out for a few weeks.]
From the original comment, this might seem more reasonable:
$ touch foo
$ ln -s foo bar
$ fsatrace erwdtmq /dev/stdout -- rm -f bar
r|/usr/bin/rm
q|/home/fangism/bar
d|/home/fangism/bar
But I haven't dug into the details of how operations on symlinks are traced.
from fsatrace.
If queries/reads don't follow symlinks that would put a burden on the build system. The one I'm using would certainly need to be modified to take into account this fact.
I propose to report the symlink only when deleting, reporting the linked file elsewhere. Do you have any example of a situation where this would be a problem in a build system?
from fsatrace.
Using the above rm
example, what would your proposed trace look like?
from fsatrace.
r|/usr/bin/rm
q|/home/fangism/foo
d|/home/fangism/bar
from fsatrace.
r|/usr/bin/rm q|/home/fangism/foo d|/home/fangism/bar
This is an improvement, and should let us proceed further.
from fsatrace.
Related Issues (20)
- sh.exe test fails on Windows
- Doesn't trace execution on Windows HOT 4
- Make a release HOT 1
- Output file even on non-zero exit code HOT 1
- Tracing multiple subprocesses doesn't work on Windows HOT 8
- Can't trace Go code on Linux HOT 2
- Can't trace gcc on Mac HOT 2
- fsatrace isn't recording executable being run as a "read". HOT 6
- Clarify (or clean up) the Windows makefile HOT 1
- Can't spawn a 32bit process from a .bat file HOT 3
- Tracking reads from non-existing files HOT 6
- Corruption of PATH HOT 2
- failures on ubuntu 20.04 HOT 6
- Quantifying fsatrace's coverage HOT 2
- Consider ETW on Windows HOT 3
- segfault in emiting op HOT 8
- Tracing mkdir syscalls
- Basic tracing does not appear to work on macOS Monterey Version 12.5.1 HOT 3
- Fails to compile on GitHub Mac runners (incompatible architecture) HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fsatrace.