Tracee for Yocto #231
Replies: 6 comments 16 replies
-
Hi @sswarnas1, I'm not sure why it says no makefile found, as Tracee does have a makefile: I never used Yocto before, but maybe your'e missing the "SRCREV" like in this example? |
Beta Was this translation helpful? Give feedback.
-
@sswarnas1 can you first confirm that you are able to build Tracee without Yocto, by cloning the Tracee repo, and running |
Beta Was this translation helpful? Give feedback.
-
I have also faced bcc_common.h error in ubuntu...
Not able to resolve this....
…On Thu, Oct 1, 2020, 9:42 AM nats5886 ***@***.***> wrote:
Thanks @itaysk <https://github.com/itaysk>.
With 1.13, those errors are resolved. Now, I see some other issues in bcc
files.
go: downloading github.com/urfave/cli/v2 v2.1.1
go: downloading github.com/syndtr/gocapability
v0.0.0-20180916011248-d98352740cb2
go: downloading github.com/iovisor/gobpf
v0.0.0-20200529092446-49b58e11a4b5
go: extracting github.com/syndtr/gocapability
v0.0.0-20180916011248-d98352740cb2
go: extracting github.com/urfave/cli/v2 v2.1.1
go: extracting github.com/iovisor/gobpf v0.0.0-20200529092446-49b58e11a4b5
go: downloading github.com/cpuguy83/go-md2man/v2
v2.0.0-20190314233015-f79a8a8ca69d
go: extracting github.com/cpuguy83/go-md2man/v2
v2.0.0-20190314233015-f79a8a8ca69d
go: downloading github.com/russross/blackfriday/v2 v2.0.1
go: extracting github.com/russross/blackfriday/v2 v2.0.1
go: downloading github.com/shurcooL/sanitized_anchor_name v1.0.0
go: extracting github.com/shurcooL/sanitized_anchor_name v1.0.0
go: finding github.com/syndtr/gocapability
v0.0.0-20180916011248-d98352740cb2
go: finding github.com/iovisor/gobpf v0.0.0-20200529092446-49b58e11a4b5
go: finding github.com/urfave/cli/v2 v2.1.1
go: finding github.com/cpuguy83/go-md2man/v2
v2.0.0-20190314233015-f79a8a8ca69d
go: finding github.com/russross/blackfriday/v2 v2.0.1
go: finding github.com/shurcooL/sanitized_anchor_name v1.0.0
github.com/shurcooL/sanitized_anchor_name
github.com/iovisor/gobpf/pkg/cpuonline
github.com/syndtr/gocapability/capability
github.com/russross/blackfriday/v2
github.com/iovisor/gobpf/bcc
github.com/iovisor/gobpf/bcc
/home/nsubbira/go/pkg/mod/
***@***.***/bcc/module.go:32:28:
fatal error: bcc/bcc_common.h: No such file or directory
#include <bcc/bcc_common.h>
^
compilation terminated.
github.com/cpuguy83/go-md2man/v2/md2man
github.com/urfave/cli/v2
Makefile:15: recipe for target 'dist/tracee' failed
make: *** [dist/tracee] Error 2
***@***.***:/export/git/nsubbira/tracing/tracee$ go version
go version go1.13 linux/amd64
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#231 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANQJWZUETKZ5VOGHN55BI33SISIN5ANCNFSM4RWLMCSQ>
.
|
Beta Was this translation helpful? Give feedback.
-
Thanks Itay..
my end objective is to run tracee on my device based on Broadcomin yocto,
we don't have docker support on the device...
…On Thu, Oct 1, 2020, 10:36 AM Itay Shakury ***@***.***> wrote:
Hi, please see my reply to @nats5886 <https://github.com/nats5886> above
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#231 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANQJWZVLQDR7LA56I5MXYXDSISOZTANCNFSM4RWLMCSQ>
.
|
Beta Was this translation helpful? Give feedback.
-
unfortunately my device is based on arm...
…On Thu, Oct 1, 2020 at 1:37 PM Yaniv Agman ***@***.***> wrote:
Hi @sswarnas1 <https://github.com/sswarnas1> ,
Is your broadcom device based on x86?
Please note that we don't support other architectures yet (e.g. arm/arm64)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#231 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANQJWZXBISOAUIQEPGGLVMDSIS45VANCNFSM4RWLMCSQ>
.
|
Beta Was this translation helpful? Give feedback.
-
Thanks done...
…On Fri, Oct 2, 2020 at 6:01 AM Yaniv Agman ***@***.***> wrote:
The reason why Tracee will not work on arm devices is that the event ids
numbers are according to the x86_64 syscalls numbers.
I recently added a table that maps x86_64 syscalls to x86_32 syscalls to
support 32bit applications running in compat mode.
We can do something similar for arm, but some other changes are also
required, like reading the arguments to different registers in pt_regs
struct in the bpf code.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#231 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANQJWZWCXZIHCMMDV5BWB53SIWQGZANCNFSM4RWLMCSQ>
.
|
Beta Was this translation helpful? Give feedback.
-
Hi, i am trying to build tracee in Yocto to track the resources container is using in my project. I see it is failing in oe_make phase. I dont see makefile in this git, THis is the recipe file i am using...
DESCRIPTION = "tracee"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=c466d4ab8a68655eb1edf0bf8c1a8fb8"
SRC_URI[md5sum] = "43ac9fbaf8cadfab7665a93054271a4a"
SRC_URI = "https://github.com/aquasecurity/tracee.git"
S = "${WORKDIR}/git"
do_compile() {
oe_runmake
}
do_install() {
install -d ${D}${bindir}
install -m 0755 tracee ${D}${bindir}
}
It says no Makefile found. Can you suggest what i am missing here ..
Thanks,
Swarna
Beta Was this translation helpful? Give feedback.
All reactions