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
d7a5ff09
Commit
d7a5ff09
authored
Mar 03, 2017
by
Rafael F
Committed by
Sasha Goldshtein
Mar 03, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
range Python 2 -> 3 compatibility (#983)
parent
1a1f441f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
tools/cpuunclaimed.py
tools/cpuunclaimed.py
+4
-4
tools/tplist.py
tools/tplist.py
+2
-2
No files found.
tools/cpuunclaimed.py
View file @
d7a5ff09
...
...
@@ -169,10 +169,10 @@ if args.csv:
if
args
.
timestamp
:
print
(
"TIME"
,
end
=
","
)
print
(
"TIMESTAMP_ns"
,
end
=
","
)
print
(
","
.
join
(
"CPU"
+
str
(
c
)
for
c
in
x
range
(
ncpu
)),
end
=
""
)
print
(
","
.
join
(
"CPU"
+
str
(
c
)
for
c
in
range
(
ncpu
)),
end
=
""
)
if
args
.
fullcsv
:
print
(
","
,
end
=
""
)
print
(
","
.
join
(
"OFFSET_ns_CPU"
+
str
(
c
)
for
c
in
x
range
(
ncpu
)),
end
=
""
)
print
(
","
.
join
(
"OFFSET_ns_CPU"
+
str
(
c
)
for
c
in
range
(
ncpu
)),
end
=
""
)
print
()
else
:
print
((
"Sampling run queues... Output every %s seconds. "
+
...
...
@@ -255,10 +255,10 @@ while 1:
if
args
.
timestamp
:
print
(
"%-8s"
%
strftime
(
"%H:%M:%S"
),
end
=
","
)
print
(
"%d"
%
g_time
,
end
=
","
)
print
(
","
.
join
(
str
(
lens
[
c
])
for
c
in
x
range
(
ncpu
)),
end
=
""
)
print
(
","
.
join
(
str
(
lens
[
c
])
for
c
in
range
(
ncpu
)),
end
=
""
)
if
args
.
fullcsv
:
print
(
","
,
end
=
""
)
print
(
","
.
join
(
str
(
offs
[
c
])
for
c
in
x
range
(
ncpu
)))
print
(
","
.
join
(
str
(
offs
[
c
])
for
c
in
range
(
ncpu
)))
else
:
print
()
else
:
...
...
tools/tplist.py
View file @
d7a5ff09
...
...
@@ -64,7 +64,7 @@ def print_tracepoints():
print_tpoint
(
category
,
event
)
def
print_usdt_argument_details
(
location
):
for
idx
in
x
range
(
0
,
location
.
num_arguments
):
for
idx
in
range
(
0
,
location
.
num_arguments
):
arg
=
location
.
get_argument
(
idx
)
print
(
" argument #%d %s"
%
(
idx
+
1
,
arg
))
...
...
@@ -72,7 +72,7 @@ def print_usdt_details(probe):
if
args
.
verbosity
>
0
:
print
(
probe
)
if
args
.
verbosity
>
1
:
for
idx
in
x
range
(
0
,
probe
.
num_locations
):
for
idx
in
range
(
0
,
probe
.
num_locations
):
loc
=
probe
.
get_location
(
idx
)
print
(
" location #%d %s"
%
(
idx
+
1
,
loc
))
print_usdt_argument_details
(
loc
)
...
...
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