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
5496aaf3
Commit
5496aaf3
authored
Nov 02, 2016
by
Brenden Blanco
Committed by
GitHub
Nov 02, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #795 from mslusarz/install-perf_reader.h
perf_reader: install perf_reader.h
parents
ac584d0e
b667e024
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
1 deletion
+16
-1
src/cc/CMakeLists.txt
src/cc/CMakeLists.txt
+1
-1
src/cc/perf_reader.h
src/cc/perf_reader.h
+15
-0
No files found.
src/cc/CMakeLists.txt
View file @
5496aaf3
...
...
@@ -63,7 +63,7 @@ target_link_libraries(bcc-static b_frontend clang_frontend bcc-loader-static ${c
install
(
TARGETS bcc-shared LIBRARY COMPONENT libbcc
DESTINATION
${
CMAKE_INSTALL_LIBDIR
}
)
install
(
FILES bpf_common.h bpf_module.h bcc_syms.h libbpf.h COMPONENT libbcc
install
(
FILES bpf_common.h bpf_module.h bcc_syms.h libbpf.h
perf_reader.h
COMPONENT libbcc
DESTINATION include/bcc
)
install
(
DIRECTORY compat/linux/ COMPONENT libbcc
DESTINATION include/bcc/compat/linux
...
...
src/cc/perf_reader.h
View file @
5496aaf3
...
...
@@ -14,6 +14,15 @@
* limitations under the License.
*/
#ifndef PERF_READER_H
#define PERF_READER_H
#include "libbpf.h"
#ifdef __cplusplus
extern
"C"
{
#endif
struct
perf_reader
;
struct
perf_reader
*
perf_reader_new
(
perf_reader_cb
cb
,
perf_reader_raw_cb
raw_cb
,
void
*
cb_cookie
);
...
...
@@ -22,3 +31,9 @@ int perf_reader_mmap(struct perf_reader *reader, unsigned type, unsigned long sa
int
perf_reader_poll
(
int
num_readers
,
struct
perf_reader
**
readers
,
int
timeout
);
int
perf_reader_fd
(
struct
perf_reader
*
reader
);
void
perf_reader_set_fd
(
struct
perf_reader
*
reader
,
int
fd
);
#ifdef __cplusplus
}
#endif
#endif
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