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
2947ee31
Commit
2947ee31
authored
Jul 18, 2016
by
Brendan Gregg
Committed by
GitHub
Jul 18, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #618 from palmtenor/master
Use errno symbols in offcputime.py
parents
b755c709
0b11d222
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
tools/offcputime.py
tools/offcputime.py
+4
-2
No files found.
tools/offcputime.py
View file @
2947ee31
...
...
@@ -15,6 +15,7 @@ from bcc import BPF
from
sys
import
stderr
from
time
import
sleep
,
strftime
import
argparse
import
errno
import
signal
# arg validation
...
...
@@ -215,10 +216,11 @@ for k, v in sorted(counts.items(), key=lambda counts: counts[1].value):
# handle get_stackid erorrs
if
(
not
args
.
user_stacks_only
and
k
.
kernel_stack_id
<
0
)
or
\
(
not
args
.
kernel_stacks_only
and
k
.
user_stack_id
<
0
and
\
k
.
user_stack_id
!=
-
14
):
k
.
user_stack_id
!=
-
errno
.
EFAULT
):
missing_stacks
+=
1
# check for an ENOMEM error
if
k
.
kernel_stack_id
==
-
12
or
k
.
user_stack_id
==
-
12
:
if
k
.
kernel_stack_id
==
-
errno
.
ENOMEM
or
\
k
.
user_stack_id
==
-
errno
.
ENOMEM
:
has_enomem
=
True
continue
...
...
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