From 67a29e511cc9d0a570d4d3b9797827f3a08ccdb5 Mon Sep 17 00:00:00 2001 From: Leo Di Donato Date: Fri, 27 Aug 2021 19:52:37 +0200 Subject: [PATCH] update: add missing target for uprobe example Signed-off-by: Leonardo Di Donato --- examples/c/xmake.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/examples/c/xmake.lua b/examples/c/xmake.lua index cced7c85..f4e4c3f4 100644 --- a/examples/c/xmake.lua +++ b/examples/c/xmake.lua @@ -73,6 +73,13 @@ target("fentry") add_deps("libbpf") end +target("uprobe") + set_kind("binary") + add_files("uprobe*.c") + add_packages("linux-headers") + if not has_config("system-libbpf") then + add_deps("libbpf") + end target("kprobe") set_kind("binary") @@ -82,6 +89,6 @@ target("kprobe") add_deps("libbpf") end if is_plat("android") then - -- TODO we need fix vmlinux.h tu support android + -- TODO we need fix vmlinux.h to support android set_default(false) end