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
e85aa7f9
Commit
e85aa7f9
authored
Nov 30, 2016
by
4ast
Committed by
GitHub
Nov 30, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #830 from lcp/fix-data_t
hello_perf_output: match the data type of pid
parents
89b1f102
759c76a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
examples/tracing/hello_perf_output.py
examples/tracing/hello_perf_output.py
+1
-1
No files found.
examples/tracing/hello_perf_output.py
View file @
e85aa7f9
...
@@ -37,7 +37,7 @@ b.attach_kprobe(event="sys_clone", fn_name="hello")
...
@@ -37,7 +37,7 @@ b.attach_kprobe(event="sys_clone", fn_name="hello")
# define output data structure in Python
# define output data structure in Python
TASK_COMM_LEN
=
16
# linux/sched.h
TASK_COMM_LEN
=
16
# linux/sched.h
class
Data
(
ct
.
Structure
):
class
Data
(
ct
.
Structure
):
_fields_
=
[(
"pid"
,
ct
.
c_u
longlong
),
_fields_
=
[(
"pid"
,
ct
.
c_u
int
),
(
"ts"
,
ct
.
c_ulonglong
),
(
"ts"
,
ct
.
c_ulonglong
),
(
"comm"
,
ct
.
c_char
*
TASK_COMM_LEN
)]
(
"comm"
,
ct
.
c_char
*
TASK_COMM_LEN
)]
...
...
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