Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bcc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
bcc
Commits
4ca4e05b
Commit
4ca4e05b
authored
Jul 14, 2016
by
Chris Down
Committed by
GitHub
Jul 14, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into failed_opens
parents
8ddcbdf4
0d4f529f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
2 deletions
+21
-2
Dockerfile.debian
Dockerfile.debian
+14
-0
tools/fileslower.py
tools/fileslower.py
+7
-2
No files found.
Dockerfile.debian
0 → 100644
View file @
4ca4e05b
FROM debian:jessie
RUN apt-key adv --keyserver ha.pool.sks-keyservers.net --recv 15CF4D18AF4F7421 && \
echo "deb http://llvm.org/apt/jessie/ llvm-toolchain-jessie-3.8 main" > /etc/apt/sources.list.d/llvm.list && \
apt-get update && \
apt-get install -y --no-install-recommends build-essential fakeroot bison cmake debhelper devscripts flex git libedit-dev python zlib1g-dev libllvm3.8 llvm-3.8-dev libclang-3.8-dev libelf-dev luajit libluajit-5.1-dev && \
mkdir -p /usr/share/llvm-3.8 && \
ln -s /usr/lib/llvm-3.8/share/llvm/cmake /usr/share/llvm-3.8/cmake
COPY ./ /root/bcc
WORKDIR /root/bcc
RUN ./scripts/build-deb.sh
tools/fileslower.py
View file @
4ca4e05b
...
...
@@ -187,9 +187,14 @@ b = BPF(text=bpf_text)
# the parent functions, at the cost of more overhead, instead.
# Ultimately, we should be using [V]FS tracepoints.
b
.
attach_kprobe
(
event
=
"__vfs_read"
,
fn_name
=
"trace_read_entry"
)
b
.
attach_kprobe
(
event
=
"__vfs_write"
,
fn_name
=
"trace_write_entry"
)
b
.
attach_kretprobe
(
event
=
"__vfs_read"
,
fn_name
=
"trace_read_return"
)
b
.
attach_kretprobe
(
event
=
"__vfs_write"
,
fn_name
=
"trace_write_return"
)
try
:
b
.
attach_kprobe
(
event
=
"__vfs_write"
,
fn_name
=
"trace_write_entry"
)
b
.
attach_kretprobe
(
event
=
"__vfs_write"
,
fn_name
=
"trace_write_return"
)
except
:
# older kernels don't have __vfs_write so try vfs_write instead
b
.
attach_kprobe
(
event
=
"vfs_write"
,
fn_name
=
"trace_write_entry"
)
b
.
attach_kretprobe
(
event
=
"vfs_write"
,
fn_name
=
"trace_write_return"
)
TASK_COMM_LEN
=
16
# linux/sched.h
DNAME_INLINE_LEN
=
32
# linux/dcache.h
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment