Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated opensnoop to use bpf_perf_output #514

Merged
merged 1 commit into from
Apr 29, 2016
Merged

updated opensnoop to use bpf_perf_output #514

merged 1 commit into from
Apr 29, 2016

Conversation

mcaleavya
Copy link
Contributor

This is really a copy of statsnoop with different functions being traced. Updated old/tools and man page. Not sure if we should merge the two scripts into one.

@4ast
Copy link
Member

4ast commented Apr 29, 2016

lgtm
@brendangregg pls take a look

@brendangregg
Copy link
Member

brendangregg commented Apr 29, 2016

Awesome, and works better than the old version!

Old:

# ./tools/opensnoop.py 
PID    COMM               FD ERR PATH
10976  <...>              12   0 /sys/kernel/debug/tracing/trace_pipe
[...]
10978  run                 3   0 /etc/ld.so.cache
10979  <...>               3   0 /etc/ld.so.cache
10979  <...>               3   0 /lib/x86_64-linux-gnu/libselinux.so.1
10978  run                 3   0 /lib/x86_64-linux-gnu/libtinfo.so.5
10979  <...>               3   0 /lib/x86_64-linux-gnu/libc.so.6
10979  <...>               3   0 /lib/x86_64-linux-gnu/libpcre.so.3
10979  <...>               3   0 /lib/x86_64-linux-gnu/libdl.so.2
10978  run                 3   0 /lib/x86_64-linux-gnu/libdl.so.2
10978  run                 3   0 /lib/x86_64-linux-gnu/libc.so.6
10979  <...>               3   0 /proc/filesystems

New:

# ./opensnoop.py 
PID    COMM               FD ERR PATH
2177   supervise           9   0 supervise/status.new
[...]
10990  run                 3   0 /etc/ld.so.cache
10990  run                 3   0 /lib/x86_64-linux-gnu/libnss_compat.so.2
10990  run                 3   0 /lib/x86_64-linux-gnu/libnsl.so.1
10991  run                 3   0 /lib/x86_64-linux-gnu/libnss_compat.so.2
10991  run                 3   0 /lib/x86_64-linux-gnu/libnsl.so.1
10991  run                 3   0 /etc/ld.so.cache
10991  run                 3   0 /lib/x86_64-linux-gnu/libnss_nis.so.2
10991  run                 3   0 /lib/x86_64-linux-gnu/libnss_files.so.2
10990  run                 3   0 /etc/ld.so.cache
10990  run                 3   0 /lib/x86_64-linux-gnu/libnss_nis.so.2
10990  run                 3   0 /lib/x86_64-linux-gnu/libnss_files.so.2
10990  run                 3   0 /etc/passwd
10990  run                 3   0 ./run

@brendangregg brendangregg merged commit 330e4f2 into iovisor:master Apr 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants