Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bpftrace
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
bpftrace
Commits
c1ce7156
Commit
c1ce7156
authored
Aug 28, 2018
by
Brendan Gregg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix BEGIN probe due to uninitialized loc
parent
9198d61f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
src/bpftrace.cpp
src/bpftrace.cpp
+3
-0
src/types.h
src/types.h
+1
-1
No files found.
src/bpftrace.cpp
View file @
c1ce7156
...
...
@@ -32,6 +32,7 @@ int BPFtrace::add_probe(ast::Probe &p)
probe
.
type
=
probetype
(
attach_point
->
provider
);
probe
.
orig_name
=
p
.
name
();
probe
.
name
=
p
.
name
();
probe
.
loc
=
0
;
special_probes_
.
push_back
(
probe
);
continue
;
}
...
...
@@ -43,6 +44,7 @@ int BPFtrace::add_probe(ast::Probe &p)
probe
.
type
=
probetype
(
attach_point
->
provider
);
probe
.
orig_name
=
p
.
name
();
probe
.
name
=
p
.
name
();
probe
.
loc
=
0
;
special_probes_
.
push_back
(
probe
);
continue
;
}
...
...
@@ -86,6 +88,7 @@ int BPFtrace::add_probe(ast::Probe &p)
probe
.
orig_name
=
p
.
name
();
probe
.
name
=
attach_point
->
name
(
func
);
probe
.
freq
=
attach_point
->
freq
;
probe
.
loc
=
0
;
probes_
.
push_back
(
probe
);
}
}
...
...
src/types.h
View file @
c1ce7156
...
...
@@ -77,7 +77,7 @@ public:
std
::
string
orig_name
;
// original full probe name,
// before wildcard expansion
std
::
string
name
;
// full probe name
uint64_t
loc
;
uint64_t
loc
;
// for USDT probes
int
freq
;
};
...
...
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