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
4870819a
Commit
4870819a
authored
Aug 03, 2017
by
Brendan Gregg
Committed by
Brenden Blanco
Aug 11, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
better state default value handling
parent
843340d6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
tools/offcputime.py
tools/offcputime.py
+2
-3
No files found.
tools/offcputime.py
View file @
4870819a
...
...
@@ -88,8 +88,7 @@ parser.add_argument("-M", "--max-block-time", default=(1 << 64) - 1,
type
=
positive_nonzero_int
,
help
=
"the amount of time in microseconds under which we "
+
"store traces (default U64_MAX)"
)
parser
.
add_argument
(
"--state"
,
default
=
999
,
type
=
positive_int
,
parser
.
add_argument
(
"--state"
,
type
=
positive_int
,
help
=
"filter on this thread state bitmask (eg, 2 == TASK_UNINTERRUPTIBLE"
+
") see include/linux/sched.h"
)
args
=
parser
.
parse_args
()
...
...
@@ -184,7 +183,7 @@ else:
thread_filter
=
'1'
if
args
.
state
==
0
:
state_filter
=
'prev->state == 0'
elif
args
.
state
!=
999
:
elif
args
.
state
:
# these states are sometimes bitmask checked
state_filter
=
'prev->state & %d'
%
args
.
state
else
:
...
...
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