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
47305f47
Commit
47305f47
authored
Aug 16, 2017
by
Brendan Gregg
Committed by
GitHub
Aug 16, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1293 from iovisor/tools_fixes
Couple minor tools fixes
parents
5e84698e
d51870b9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
3 deletions
+6
-3
src/cc/usdt.cc
src/cc/usdt.cc
+3
-0
tools/dcstat.py
tools/dcstat.py
+1
-1
tools/pidpersec.py
tools/pidpersec.py
+1
-1
tools/vfsstat.py
tools/vfsstat.py
+1
-1
No files found.
src/cc/usdt.cc
View file @
47305f47
...
@@ -356,6 +356,9 @@ const char *bcc_usdt_genargs(void **usdt_array, int len) {
...
@@ -356,6 +356,9 @@ const char *bcc_usdt_genargs(void **usdt_array, int len) {
static
std
::
string
storage_
;
static
std
::
string
storage_
;
std
::
ostringstream
stream
;
std
::
ostringstream
stream
;
if
(
!
len
)
return
""
;
stream
<<
USDT
::
USDT_PROGRAM_HEADER
;
stream
<<
USDT
::
USDT_PROGRAM_HEADER
;
// Generate genargs codes for an array of USDT Contexts.
// Generate genargs codes for an array of USDT Contexts.
//
//
...
...
tools/dcstat.py
View file @
47305f47
...
@@ -49,7 +49,7 @@ enum stats {
...
@@ -49,7 +49,7 @@ enum stats {
S_MAXSTAT
S_MAXSTAT
};
};
BPF_ARRAY(stats, u64, S_MAXSTAT
+ 1
);
BPF_ARRAY(stats, u64, S_MAXSTAT);
/*
/*
* How this is instrumented, and how to interpret the statistics, is very much
* How this is instrumented, and how to interpret the statistics, is very much
...
...
tools/pidpersec.py
View file @
47305f47
...
@@ -26,7 +26,7 @@ enum stat_types {
...
@@ -26,7 +26,7 @@ enum stat_types {
S_MAXSTAT
S_MAXSTAT
};
};
BPF_ARRAY(stats, u64, S_MAXSTAT
+ 1
);
BPF_ARRAY(stats, u64, S_MAXSTAT);
static void stats_increment(int key) {
static void stats_increment(int key) {
u64 *leaf = stats.lookup(&key);
u64 *leaf = stats.lookup(&key);
...
...
tools/vfsstat.py
View file @
47305f47
...
@@ -49,7 +49,7 @@ enum stat_types {
...
@@ -49,7 +49,7 @@ enum stat_types {
S_MAXSTAT
S_MAXSTAT
};
};
BPF_ARRAY(stats, u64, S_MAXSTAT
+ 1
);
BPF_ARRAY(stats, u64, S_MAXSTAT);
static void stats_increment(int key) {
static void stats_increment(int key) {
u64 *leaf = stats.lookup(&key);
u64 *leaf = stats.lookup(&key);
...
...
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