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
f2afd975
Commit
f2afd975
authored
Feb 02, 2018
by
yonghong-song
Committed by
GitHub
Feb 02, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1568 from liu-song-6/small_fixes
Small fixes
parents
3f39bc14
62cd839a
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
13 additions
and
14 deletions
+13
-14
examples/cpp/TCPSendStack.cc
examples/cpp/TCPSendStack.cc
+1
-1
examples/lua/memleak.lua
examples/lua/memleak.lua
+1
-1
examples/lua/offcputime.lua
examples/lua/offcputime.lua
+1
-1
examples/tracing/mallocstacks.py
examples/tracing/mallocstacks.py
+1
-1
examples/tracing/stacksnoop.py
examples/tracing/stacksnoop.py
+1
-1
src/cc/export/helpers.h
src/cc/export/helpers.h
+1
-1
tools/memleak.py
tools/memleak.py
+1
-1
tools/offcputime.py
tools/offcputime.py
+1
-1
tools/offwaketime.py
tools/offwaketime.py
+1
-1
tools/old/profile.py
tools/old/profile.py
+1
-1
tools/profile.py
tools/profile.py
+1
-2
tools/stacksnoop.lua
tools/stacksnoop.lua
+1
-1
tools/wakeuptime.py
tools/wakeuptime.py
+1
-1
No files found.
examples/cpp/TCPSendStack.cc
View file @
f2afd975
...
...
@@ -27,7 +27,7 @@ struct stack_key_t {
int kernel_stack;
};
BPF_STACK_TRACE(stack_traces, 10240)
BPF_STACK_TRACE(stack_traces, 10240)
;
BPF_HASH(counts, struct stack_key_t, uint64_t);
int on_tcp_send(struct pt_regs *ctx) {
...
...
examples/lua/memleak.lua
View file @
f2afd975
...
...
@@ -26,7 +26,7 @@ struct alloc_info_t {
BPF_HASH(sizes, u64);
BPF_HASH(allocs, u64, struct alloc_info_t);
BPF_STACK_TRACE(stack_traces, 10240)
BPF_STACK_TRACE(stack_traces, 10240)
;
int alloc_enter(struct pt_regs *ctx, size_t size)
{
...
...
examples/lua/offcputime.lua
View file @
f2afd975
...
...
@@ -27,7 +27,7 @@ struct key_t {
};
BPF_HASH(counts, struct key_t);
BPF_HASH(start, u32);
BPF_STACK_TRACE(stack_traces, 10240)
BPF_STACK_TRACE(stack_traces, 10240)
;
int oncpu(struct pt_regs *ctx, struct task_struct *prev) {
u32 pid;
...
...
examples/tracing/mallocstacks.py
View file @
f2afd975
...
...
@@ -25,7 +25,7 @@ b = BPF(text="""
#include <uapi/linux/ptrace.h>
BPF_HASH(calls, int);
BPF_STACK_TRACE(stack_traces, 1024)
BPF_STACK_TRACE(stack_traces, 1024)
;
int alloc_enter(struct pt_regs *ctx, size_t size) {
int key = stack_traces.get_stackid(ctx,
...
...
examples/tracing/stacksnoop.py
View file @
f2afd975
...
...
@@ -52,7 +52,7 @@ struct data_t {
char comm[TASK_COMM_LEN];
};
BPF_STACK_TRACE(stack_traces, 128)
BPF_STACK_TRACE(stack_traces, 128)
;
BPF_PERF_OUTPUT(events);
void trace_stack(struct pt_regs *ctx) {
...
...
src/cc/export/helpers.h
View file @
f2afd975
...
...
@@ -184,7 +184,7 @@ struct bpf_stacktrace {
};
#define BPF_STACK_TRACE(_name, _max_entries) \
BPF_TABLE("
stacktrace
", int, struct bpf_stacktrace, _name, _max_entries)
;
BPF_TABLE("
stacktrace
", int, struct bpf_stacktrace, _name, _max_entries)
// packet parsing state machine helpers
#define cursor_advance(_cursor, _len) \
...
...
tools/memleak.py
View file @
f2afd975
...
...
@@ -138,7 +138,7 @@ struct combined_alloc_info_t {
BPF_HASH(sizes, u64);
BPF_TABLE("hash", u64, struct alloc_info_t, allocs, 1000000);
BPF_HASH(memptrs, u64, u64);
BPF_STACK_TRACE(stack_traces, 10240)
BPF_STACK_TRACE(stack_traces, 10240)
;
BPF_TABLE("hash", u64, struct combined_alloc_info_t, combined_allocs, 10240);
static inline void update_statistics_add(u64 stack_id, u64 sz) {
...
...
tools/offcputime.py
View file @
f2afd975
...
...
@@ -119,7 +119,7 @@ struct key_t {
};
BPF_HASH(counts, struct key_t);
BPF_HASH(start, u32);
BPF_STACK_TRACE(stack_traces, STACK_STORAGE_SIZE)
BPF_STACK_TRACE(stack_traces, STACK_STORAGE_SIZE)
;
int oncpu(struct pt_regs *ctx, struct task_struct *prev) {
u32 pid = prev->pid;
...
...
tools/offwaketime.py
View file @
f2afd975
...
...
@@ -125,7 +125,7 @@ struct wokeby_t {
};
BPF_HASH(wokeby, u32, struct wokeby_t);
BPF_STACK_TRACE(stack_traces, STACK_STORAGE_SIZE)
BPF_STACK_TRACE(stack_traces, STACK_STORAGE_SIZE)
;
int waker(struct pt_regs *ctx, struct task_struct *p) {
u32 pid = p->pid;
...
...
tools/old/profile.py
View file @
f2afd975
...
...
@@ -139,7 +139,7 @@ struct key_t {
};
BPF_HASH(counts, struct key_t);
BPF_HASH(start, u32);
BPF_STACK_TRACE(stack_traces, STACK_STORAGE_SIZE)
BPF_STACK_TRACE(stack_traces, STACK_STORAGE_SIZE)
;
// This code gets a bit complex. Probably not suitable for casual hacking.
...
...
tools/profile.py
View file @
f2afd975
...
...
@@ -126,8 +126,7 @@ struct key_t {
char name[TASK_COMM_LEN];
};
BPF_HASH(counts, struct key_t);
BPF_HASH(start, u32);
BPF_STACK_TRACE(stack_traces, STACK_STORAGE_SIZE)
BPF_STACK_TRACE(stack_traces, STACK_STORAGE_SIZE);
// This code gets a bit complex. Probably not suitable for casual hacking.
...
...
tools/stacksnoop.lua
View file @
f2afd975
...
...
@@ -25,7 +25,7 @@ struct data_t {
char comm[TASK_COMM_LEN];
};
BPF_STACK_TRACE(stack_traces, 128)
BPF_STACK_TRACE(stack_traces, 128)
;
BPF_PERF_OUTPUT(events);
void trace_stack(struct pt_regs *ctx) {
...
...
tools/wakeuptime.py
View file @
f2afd975
...
...
@@ -97,7 +97,7 @@ struct key_t {
};
BPF_HASH(counts, struct key_t);
BPF_HASH(start, u32);
BPF_STACK_TRACE(stack_traces, STACK_STORAGE_SIZE)
BPF_STACK_TRACE(stack_traces, STACK_STORAGE_SIZE)
;
int offcpu(struct pt_regs *ctx) {
u32 pid = bpf_get_current_pid_tgid();
...
...
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