Skip to content

Commit

Permalink
update: add missing target for uprobe example
Browse files Browse the repository at this point in the history
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
  • Loading branch information
leodido authored and anakryiko committed Aug 30, 2021
1 parent 330abf5 commit 67a29e5
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion examples/c/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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

0 comments on commit 67a29e5

Please sign in to comment.