microsoft / microsoft/ProcMon-for-Linux
Please document which kernel options are needed for procmon to work
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 4.7k
- Forks
- 295
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 9
Description
I just installed procmon (from the source) and when I do sudo procmon I get:
what(): filesystem error: directory iterator cannot open directory: No such file or directory [/sys/kernel/debug/tracing/events/syscalls]
So it looks like this needs some kernel options to use, it would be good to document that in README.md
EDIT: After enabling the needed kernel option and running procmon as root I get empty list (just the header and footer) and in the shell I see following errors:
bpf: Failed to load program: Invalid argument
fd 9 is not pointing to valid bpf_map
processed 0 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0
bpf: Failed to load program: Invalid argument
fd 9 is not pointing to valid bpf_map
processed 0 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0
So something is still missing, but what? (I have BPF enabled in kernel, but not sure if all the required options, or maybe I need some CLI tools?)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with README.md and the procmon setup instructions, then investigate the reported missing tracing directory and BPF load errors on a supported Linux system. Document the required kernel options and any other prerequisites, and verify that running procmon as root no longer produces the reported setup errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- linux
- Domain
- documentation, operating-systems
- Issue type
- Documentation
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100