helloSystem / helloSystem/LinuxRuntime

See which files in the Linux userland are actually used

未关闭
#4 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Shell
星标
6
派生
2
PR 合并指标
30 天内没有已合并 PR

描述

I would like to see which files in the Linux userland are actually used so that I can slim down the set of shipped files accordingly.

According to https://forums.FreeBSD.org/threads/linux-compatability-monitor-files-accessed-by-linux-app.62029/post-358476 this should work but it doesn't:

```
FreeBSD% sudo kldload dtrace
FreeBSD% sudo dtrace -n ':linux64:linux_open:entry { printf("%s", copyinstr((uintptr_t)args[1]->path)); }'
dtrace: invalid probe specifier :linux64:linux_open:entry { printf("%s", copyinstr((uintptr_t)args[1]->path)); }: probe description :linux64:linux_open:entry does not match any probes
```

According to https://wiki.freebsd.org/DTrace/One-Liners this should

> Trace file opens with process and filename:

```
FreeBSD% sudo dtrace -n 'syscall::open*:entry { printf("%s %s", execname, copyinstr(arg0)); }'
dtrace: invalid probe specifier syscall::open*:entry { printf("%s %s", execname, copyinstr(arg0)); }: probe description syscall::open*:entry does not match any probes
```

What am I missing?

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。