Commit 5496aaf3 authored by Brenden Blanco's avatar Brenden Blanco Committed by GitHub

Merge pull request #795 from mslusarz/install-perf_reader.h

perf_reader: install perf_reader.h
parents ac584d0e b667e024
......@@ -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
......
......@@ -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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment