1 Star 0 Fork 0

wangcichen/bcc

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
filegone_example.txt 743 Bytes
一键复制 编辑 原始数据 按行查看 历史
curu 提交于 2022-11-18 22:01 +08:00 . tools: add filegone to trace why file gone (#4333)
Demonstrations of filegone, the Linux eBPF/bcc version.
filegone traces why file gone, either been deleted or renamed
For example:
# ./filegone
18:30:56 22905 vim DELETE .fstab.swpx
18:30:56 22905 vim DELETE .fstab.swp
18:31:00 22905 vim DELETE .viminfo
18:31:00 22905 vim RENAME .viminfo.tmp > .viminfo
18:31:00 22905 vim DELETE .fstab.swp
USAGE message:
usage: filegone.py [-h] [-p PID]
Trace why file gone (deleted or renamed)
optional arguments:
-h, --help show this help message and exit
-p PID, --pid PID trace this PID only
examples:
./filegone # trace all file gone events
./filegone -p 181 # only trace PID 181
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/wangcichen/bcc.git
git@gitee.com:wangcichen/bcc.git
wangcichen
bcc
bcc
master

搜索帮助