diff mbox

[33/34] perf clang builtin: Define hook helpers by default

Message ID 20161115040617.69788-34-wangnan0@huawei.com
State Superseded
Headers show

Commit Message

Wang Nan Nov. 15, 2016, 4:06 a.m. UTC
Append prototypes of helpers appears in exported_funcs to default
include file.

Signed-off-by: Wang Nan <wangnan0@huawei.com>

Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Alexei Starovoitov <ast@fb.com>
Cc: He Kuang <hekuang@huawei.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Zefan Li <lizefan@huawei.com>
Cc: pi3orama@163.com
---
 tools/perf/util/c++/bpf-helper-str.c | 8 ++++++++
 1 file changed, 8 insertions(+)

-- 
2.10.1
diff mbox

Patch

diff --git a/tools/perf/util/c++/bpf-helper-str.c b/tools/perf/util/c++/bpf-helper-str.c
index 17f915c..69aca3c 100644
--- a/tools/perf/util/c++/bpf-helper-str.c
+++ b/tools/perf/util/c++/bpf-helper-str.c
@@ -10,6 +10,14 @@  const char clang_builtin_bpf_helper_str[] =
 "	unsigned int max_entries;\n"
 "};\n"
 "#define SEC(NAME) __attribute__((section(NAME), used))\n"
+"extern void test__clang_callback(int);\n"
+"extern int printf(const char *, ...);\n"
+"extern int puts(const char *);\n"
+"extern int jit_helper__map_update_elem(void *, void *, void *, void *, unsigned long);\n"
+"extern int jit_helper__map_lookup_elem(void *, void *, void *, void *);\n"
+"extern int jit_helper__map_get_next_key(void *, void *, void *, void *);\n"
+"extern int jit_helper__map_pin(void *, void *, const char *);\n"
+"extern int jit_helper__map_get(const char *);\n"
 "#endif\n"
 "#endif"
 ;