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
63a88006
Commit
63a88006
authored
8 years ago
by
4ast
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #469 from goldshtn/usdt-v3
Bug fix around USDT argument handling for constants
parents
a6200fbe
4d966bcf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
src/python/bcc/usdt.py
src/python/bcc/usdt.py
+3
-2
No files found.
src/python/bcc/usdt.py
View file @
63a88006
...
...
@@ -204,13 +204,14 @@ class USDTProbeLocation(object):
any_reg
=
"("
+
"|"
.
join
(
qregs
+
dregs
+
wregs
+
bregs
)
+
")"
# -4@$0, 8@$1234
m
=
re
.
match
(
r'(\
-?)(
\d+)@\
$(
\d+)'
,
arg
)
m
=
re
.
match
(
r'(\
-?)(
\d+)@\
$(
\
-?)(\
d+)
', arg)
if m is not None:
sign = -1 if len(m.group(3)) > 0 else 1
self.args.append(USDTArgument(
int(m.group(2)),
m.group(1) == '
-
',
self,
constant
=
int
(
m
.
group
(
3
))
constant=
sign*int(m.group(4
))
))
return
...
...
This diff is collapsed.
Click to expand it.
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