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
b1bff01d
Commit
b1bff01d
authored
Feb 08, 2017
by
Sasha Goldshtein
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
uthreads: Migrate to new symbols API and include module name
parent
2bf3ff3d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
tools/uthreads.py
tools/uthreads.py
+1
-1
tools/uthreads_example.txt
tools/uthreads_example.txt
+4
-4
No files found.
tools/uthreads.py
View file @
b1bff01d
...
...
@@ -104,7 +104,7 @@ def print_event(cpu, data, size):
event
=
ct
.
cast
(
data
,
ct
.
POINTER
(
ThreadEvent
)).
contents
name
=
event
.
name
if
event
.
type
==
"pthread"
:
name
=
bpf
.
sym
(
event
.
runtime_id
,
args
.
pid
)
name
=
bpf
.
sym
(
event
.
runtime_id
,
args
.
pid
,
show_module
=
True
)
tid
=
event
.
native_id
else
:
tid
=
"R=%s/N=%s"
%
(
event
.
runtime_id
,
event
.
native_id
)
...
...
tools/uthreads_example.txt
View file @
b1bff01d
...
...
@@ -25,10 +25,10 @@ Next, trace only pthread creation events in some native application:
# ./uthreads 27450
Tracing thread events in process 27450 (language: none)... Ctrl-C to quit.
TIME ID TYPE DESCRIPTION
0.924 27462 pthread primes_thread
0.927 27463 pthread primes_thread
0.928 27464 pthread primes_thread
0.928 27465 pthread primes_thread
0.924 27462 pthread primes_thread
[primes]
0.927 27463 pthread primes_thread
[primes]
0.928 27464 pthread primes_thread
[primes]
0.928 27465 pthread primes_thread
[primes]
^C
The thread name ("primes_thread" in this example) is resolved from debuginfo.
...
...
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