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
a2e9216f
Commit
a2e9216f
authored
Jan 19, 2018
by
yonghong-song
Committed by
GitHub
Jan 19, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1541 from linuxraptor/patch-1
Fix folding option
parents
9dca57e1
fabd9a19
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
tools/offwaketime.py
tools/offwaketime.py
+2
-2
No files found.
tools/offwaketime.py
View file @
a2e9216f
...
...
@@ -289,7 +289,7 @@ for k, v in sorted(counts.items(), key=lambda counts: counts[1].value):
if
folded
:
# print folded stack output
line
=
\
[
k
.
target
]
+
\
[
k
.
target
.
decode
()
]
+
\
[
b
.
sym
(
addr
,
k
.
tgid
)
for
addr
in
reversed
(
list
(
target_user_stack
)[
1
:])]
+
\
([
"-"
]
if
args
.
delimited
else
[
""
])
+
\
...
...
@@ -301,7 +301,7 @@ for k, v in sorted(counts.items(), key=lambda counts: counts[1].value):
([
"-"
]
if
args
.
delimited
else
[
""
])
+
\
[
b
.
sym
(
addr
,
k
.
tgid
)
for
addr
in
reversed
(
list
(
waker_user_stack
))]
+
\
[
k
.
waker
]
[
k
.
waker
.
decode
()
]
print
(
"%s %d"
%
(
";"
.
join
(
line
),
v
.
value
))
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