Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

The first build always takes up more than 10G of memory #194

Closed
kcrazy opened this issue Sep 28, 2021 · 14 comments
Closed

The first build always takes up more than 10G of memory #194

kcrazy opened this issue Sep 28, 2021 · 14 comments

Comments

@kcrazy
Copy link

kcrazy commented Sep 28, 2021

Hey,

The first build always takes up more than 10G of memory, seemingly at the time of linking

Can some optimization be done?

Thanks

@rhdxmr
Copy link
Collaborator

rhdxmr commented Sep 28, 2021

Hello @kcrazy

I worried that this problem bothers you.
I wanted to observe this problem. So I continuously checked the memory usage
with two commands: watch free -g and htop.
I cleaned the target directory with cargo clean and then run cargo build --examples.

But I did not see the memory usage spike... In my machine, the used memory size
was 2g before the building procedure. And while running the command, the used
memory size was also 2~3g.

Since I could not see the memory consumption goes up to 10g, can you
elaborate your situation?

Thanks,


Hi @rsdy
Have you experienced this situation? If you have, can you explain what caused that?

@kcrazy
Copy link
Author

kcrazy commented Sep 30, 2021

Hello @rhdxmr

I use my own compilation of llvm 12.0.0
So my command line is

LLVM_SYS_120_PREFIX=$HOME/llvm RUST_BACKTRACE=full cargo build -v --examples

build

htop:
htop

@kcrazy
Copy link
Author

kcrazy commented Sep 30, 2021

processes with a lot of memory usage have a long command line,

and I replace the spaces on the command line with newlines:

/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld
-plugin
/usr/libexec/gcc/x86_64-pc-linux-gnu/10.3.0/liblto_plugin.so
-plugin-opt=/usr/libexec/gcc/x86_64-pc-linux-gnu/10.3.0/lto-wrapper
-plugin-opt=-fresolution=/tmp/ccWbc89v.res
--eh-frame-hdr
-m
elf_x86_64
-dynamic-linker
/lib64/ld-linux-x86-64.so.2
-pie
-o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91
/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../lib64/Scrt1.o
/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../lib64/crti.o
/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/crtbeginS.o
-L/home/kcrazy/source/redbpf/target/debug/deps
-L/home/kcrazy/source/redbpf/target/debug/build/bpf-sys-8caf454f82147574/out
-L/home/kcrazy/source/redbpf/target/debug/build/llvm-sys-8b506a02649913bd/out
-L/home/kcrazy/llvm/lib
-L/home/kcrazy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib
-L/home/kcrazy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib
-L/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0
-L/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../lib64
-L/lib/../lib64
-L/usr/lib/../lib64
-L/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/lib
-L/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../..
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.1152rf9lueeyywkx.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.12otg99lfu16pt36.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.13yuzi4ecsfzmc0.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.14t1jg09mf5soqml.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.15g1hyb8pubon0ba.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.16b0racwoa58ouf1.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.1856lm4tzzeodv26.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.19zfhsn7c0yuows6.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.1b2jhzm4viji9umu.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.1bhcot57tqd2a2c.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.1ftps0tmzk6g7lf3.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.1l18ugg2i0gk3ice.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.1meh3ix2c4m2ialt.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.1ntp4djkrto92qvo.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.1pftz995kpwx6gvc.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.1pp8kki1lrawotvb.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.1tou5tdv4za5nmrg.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.24d2wu1ego0ufrdf.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.288smzx4qa9l9vy9.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.28k38lgtd1hwzasf.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.28tr8vlkgvm81o9x.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.29qfhpg5s03e4kzu.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.2ardbdd8a1tra70k.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.2bu6h60qa6i2tba5.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.2d6oy5lyxa6zz1y2.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.2ggqe8brwuaiis8.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.2h0tmrkkmou1pg54.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.2h46tmwvf3wputaq.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.2jehwctwampvcydc.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.2krxd8gtt7l4i8uk.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.2m1qw9lq64w0oqv3.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.2mpuummuzsyuwkyi.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.2pbtjjsrjs92htcl.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.2tlbldhudgn1uwgz.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.2x550rkk5i9x97l3.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.30kfrhmm12sht1li.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.323hak3pqdu0wljb.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.34jprms6tk5klf63.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.34lhhhwxmarpvj0s.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.36fre7mirlvi5h7k.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.37ppb7pkfib9bcx7.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.37xiqgufnrahh58j.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.3d1jsv6anpdr09yx.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.3da3rehqpm905b6d.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.3esbl058sz0nbir2.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.3hvd11sdorcss0kc.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.3kknlcr6wvyfoy4o.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.3lg6s3rrbcdmck8l.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.3oizxsos3f8voykf.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.3t3dyuv50he6bvuk.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.3uwge6rrnkz9uyc9.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.3xi2b30pnw0sglwb.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.3y5hvfzlp99mjsgm.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.3y6hve44iuvvs1yl.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.3zxg42925ylx4gt4.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.47iwuc7o32oudhjf.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.47nvmci2hiqxdl6.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.48o74pw03jc4njm0.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.4capkc8ak48r51ae.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.4d69kcs1isql544j.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.4eqh726puxgsewf6.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.4n83gcjbt8dqvjac.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.4p9y0lq01w9aulj3.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.4pxu42mo3axjbmng.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.4xnb12q4q5fzyo8s.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.4yco76a7dhvzjeyy.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.508cp86mp6wyxckt.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.50n1i7a0pc8lili4.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.5281idla2m9h48cv.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.55mviyljeqryl30i.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.57anrsekzjjjs6eb.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.57dbvrwgoizrd9zt.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.5aafo9gvjcaonnox.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.5ag9o0x4bxem5882.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.9m1pdxij08hacl8.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.dw3qscxvyx6k9wn.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.f9kn74zkelh3plw.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.gvjkeabtu3xkks8.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.jcsjelorik45sf7.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.kfc3k8uhxcafebt.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.n59duioa38mk45z.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.q9ioygkphb2j4i6.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.rv5f2y67rqa5x2m.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.to43g54cbcmukcv.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.xb43pjxl15fhi11.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.z8oihrguumi4wwc.rcgu.o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.2lo3wy10ugz5rc1m.rcgu.o
--as-needed
-Bstatic
/home/kcrazy/source/redbpf/target/debug/deps/libtracing_subscriber-980f50d17c0a7d91.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libsmallvec-cd9632e27e802452.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libthread_local-680cbed8abfdcd6f.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libsharded_slab-46af8ade2a320d8d.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libtracing_serde-cd45641607746d17.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libserde_json-e654bffa6f8f710f.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libryu-059aa1fbb24cd15e.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libitoa-e8b11f69ec08d8ae.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libserde-904cd245b9f568f0.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libtracing_log-d20bb33fbc99f1ee.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libansi_term-3890e7bdb4add20d.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libmatchers-a12abb92fac397e4.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libregex_automata-93ae503598843dfd.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libcargo_bpf_lib-33d3715f45c889e9.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libtempfile-2f4d41dc77174eba.rlib
/home/kcrazy/source/redbpf/target/debug/deps/librand-08af1d871362c2fe.rlib
/home/kcrazy/source/redbpf/target/debug/deps/librand_chacha-cbc694fa134c6e01.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libppv_lite86-545d86392ea1d8e4.rlib
/home/kcrazy/source/redbpf/target/debug/deps/librand_core-8b6215ce75f700d0.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libgetrandom-d801f701964b43b4.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libremove_dir_all-80ef6726c25ad48c.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libllvm_sys-8cbf6e42cceed152.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libredbpf-8b2376ec5ff77dca.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libbyteorder-0c03c404070d92e6.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libtokio-998fc1347464d3f6.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libsignal_hook_registry-73321e025c961684.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libonce_cell-a76c90beb999d50a.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libmio-10769dff3cf3410c.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libtracing-54702e7d5cab97db.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libtracing_core-78cfdba0c03c5b75.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libgoblin-d066aa8f7045b444.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libplain-2f677a7a95cfd0a1.rlib
/home/kcrazy/source/redbpf/target/debug/deps/liblog-c7a6438e9780af3a.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libscroll-d1033b1f2879249c.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libhexdump-9506d25e8edc8172.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libitertools-24346c7569f2671d.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libarrayvec-43d2f6fbcfcfd69b.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libfutures-1fad56436492fb9c.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libfutures_executor-4177bb44ba24a531.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libfutures_util-bdceb02bf0ef6544.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libfutures_io-12ff95146a6896b4.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libslab-26d05b350ac0da07.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libfutures_channel-5536d31c676f7e9c.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libpin_project_lite-ed06e07546a7102f.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libfutures_sink-dde56499d547c800.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libfutures_task-5b8f6133e14601aa.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libpin_utils-576e633f12357c97.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libfutures_core-cfd69f23e982eb04.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libtoml_edit-17e62adc16ef3e75.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libchrono-6069502b77b85e94.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libnum_integer-016eaeb10a6f0eb9.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libnum_traits-3ea67f5534c2ade7.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libtime-d4a9aeba39d16586.rlib
/home/kcrazy/source/redbpf/target/debug/deps/liblinked_hash_map-d7738624b447d230.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libcombine-c2b26775275250a0.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libbytes-df7cac8fc38da202.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libsyn-b1e2911c0722b208.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libbpf_sys-9748b5fb012504dd.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libzero-03a2e3843be4f228.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libbindgen-e98fcb4ed3865294.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libshlex-51f951512dcd8143.rlib
/home/kcrazy/source/redbpf/target/debug/deps/librustc_hash-7bf68832c0f4b1a6.rlib
/home/kcrazy/source/redbpf/target/debug/deps/liblazycell-05b01983d1848580.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libpeeking_take_while-9cff6bed9a8ada4a.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libregex-c0311ef87925025d.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libaho_corasick-f751c074981e5308.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libregex_syntax-b672c9191f2c7225.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libclang_sys-52d7e149d93ba1da.rlib
/home/kcrazy/source/redbpf/target/debug/deps/liblibloading-d887e5e0d4d6db03.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libcfg_if-38c8a3e888ecb06a.rlib
/home/kcrazy/source/redbpf/target/debug/deps/liblibc-ef703b7b559de845.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libglob-b2b3e3431c476f53.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libcexpr-e6d724c19b1e44e1.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libnom-640d143e1d9b0633.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libmemchr-0721f17babcb5610.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libbitvec-e96b527bfcddefad.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libfunty-9eca6c9d51b12396.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libwyz-890fd662fc55171c.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libtap-8668ae22b71a85c3.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libradium-8e2a4796d82bcf11.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libquote-8388bbcd500a3679.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libproc_macro2-4ad853a01b52ac03.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libunicode_xid-521ae656dc054791.rlib
/home/kcrazy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libproc_macro-48a8f96062ed4274.rlib
/home/kcrazy/source/redbpf/target/debug/deps/liblazy_static-5c53d641eb010a81.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libbitflags-f89ae4b715176e2d.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libanyhow-d1e64256fbcc8ff8.rlib
--start-group
/home/kcrazy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-2420485b9e5ef5e1.rlib
/home/kcrazy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-785e3cb61c4b1960.rlib
/home/kcrazy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-087191a88bdaa22d.rlib
/home/kcrazy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-9981842c02975178.rlib
/home/kcrazy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-6fb405869b015fde.rlib
/home/kcrazy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-d05c5c3c56004b7b.rlib
/home/kcrazy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-42d74d2097528b38.rlib
/home/kcrazy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-fb36534c113d2209.rlib
/home/kcrazy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-b56b9042c12b6535.rlib
/home/kcrazy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-491902d6cb3e76df.rlib
/home/kcrazy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-61834e0981b8c367.rlib
/home/kcrazy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-f78aa99d613a55bc.rlib
/home/kcrazy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-53ee54cd7fed2c57.rlib
/home/kcrazy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-544ecdbd6cda3c58.rlib
/home/kcrazy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-379cc252b6943a79.rlib
/home/kcrazy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-8063eea38dcc5e62.rlib
/home/kcrazy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-5b228734afae15ee.rlib
--end-group
/home/kcrazy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-d6c7a399d95d173f.rlib
-Bdynamic
-lrt
-ldl
-lpthread
-lm
-lz
-ltinfo
-lxml2
-lstdc++
-lelf
-lz
-ldl
-lgcc_s
-lutil
-lrt
-lpthread
-lm
-ldl
-lc
--eh-frame-hdr
-znoexecstack
--gc-sections
-zrelro
-znow
/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/crtendS.o
/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../lib64/crtn.o

@rhdxmr
Copy link
Collaborator

rhdxmr commented Sep 30, 2021

@kcrazy

I tried to look into this problem.
Thanks to your description, today I investigated a bit more than 2 days ago.

I saw your screen shot of htop and I recognized that your ld programs consume
lots of memory. And their states are D, the uninterruptible sleep state. I
guess the D states are incurred by heavy read/write of swap disk because RAM is
insufficient. So now perhaps you are suffering from bad compilation
performance.

Anyway, I tried to witness heavy memory consumption with my machine but I
failed.

I launched htop: htop -d 10. With the -d option, it refreshes stats every 1
second. And then, I hit F4 key to filter command lines with this keyword: liblto_plugin.so.
I found that ld program ran very shortly and exited. But it did not consume
that much memory you saw in your machine.

I monitored the exec system call with execsnoop:

sudo /usr/share/bcc/tools/execsnoop --max-args 1000 -l liblto_plugin.so 2>/dev/null | tee execsnoop.log

This command captures command lines that contain liblto_plugin.so as their
argument.

And I found this, but it is a bit different with yours. As you pasted, I also
replaced white-spaces with newlines for convenience. Note that the max length
of each argument is 128 bytes. Hence, too long arguments are cut. It is the limit
of execsnoop command.

/usr/bin/ld
-plugin
/usr/libexec/gcc/x86_64-redhat-linux/11/liblto_plugin.so
-plugin-opt=/usr/libexec/gcc/x86_64-redhat-linux/11/lto-wrapper
-plugin-opt=-fresolution=/tmp/ccPiRUsd.res
--build-id
--no-add-needed
--eh-frame-hdr
--hash-style=gnu
-m
elf_x86_64
-dynamic-linker
/lib64/ld-linux-x86-64.so.2
-pie
-o
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2
/usr/lib/gcc/x86_64-redhat-linux/11/../../../../lib64/Scrt1.o
/usr/lib/gcc/x86_64-redhat-linux/11/../../../../lib64/crti.o
/usr/lib/gcc/x86_64-redhat-linux/11/crtbeginS.o
-L/home/esrse/opensource/redbpf/target/debug/deps
-L/home/esrse/opensource/redbpf/target/debug/build/bpf-sys-328cc4575aab940b/out
-L/home/esrse/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib
-L/home/esrse/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib
-L/usr/lib/gcc/x86_64-redhat-linux/11
-L/usr/lib/gcc/x86_64-redhat-linux/11/../../../../lib64
-L/lib/../lib64
-L/usr/lib/../lib64
-L/usr/lib/gcc/x86_64-redhat-linux/11/../../..
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.107dlw4erice
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.14ofphwuc39j
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.19v8xn9o1tri
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.1ews1xjcg1pf
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.1fogl4kd650x
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.1gfp6kzyuc95
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.1gkdeoja8x75
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.1kokitgsh21b
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.1loqg3zhbc8z
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.1pmqrs1skm5p
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.1v69xk9l6oo6
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.1x1gdo3qmn57
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.1yy1hctnsti8
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.1zudt0srfoyb
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.27cxky1pi9k6
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.28dmpt3i50p6
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.29270rvwchpp
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.29hx3a8kg2w5
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.2ae5snnlza0n
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.2an108edhslo
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.2byhcgbec9lm
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.2c44cdba3lqu
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.2cqrns6m1bsc
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.2hjt03ulzzrf
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.2jyfvv87nswi
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.2mjgw65pltix
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.2n8sc1to2g8t
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.2qx70tkdidix
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.2xtth9qhi8uh
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.308q9ybhel0z
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.34yzlb0in501
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.39j0mn3m4xlq
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.3a826gasw5cq
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.3angtnz6ow7k
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.3baisgxt7j2a
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.3gedxplltgjk
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.3gm8cdhoaxp3
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.3ih2gla8un0d
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.3iyj4uofpgpu
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.3jw9a8rvgpsq
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.3k4xma1ppwtw
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.3tkrbdgsxicn
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.3udefzvgaf0x
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.3vy0g36zn0or
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.3xjrru8yg9lh
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.3ydgmqcqnnuf
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.400rdvqzbhd0
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.47dohstbqofu
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.4bu1ur1boiry
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.4g9oegso8vhr
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.4hhix5nmaz8m
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.4ix1uol9zi9l
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.4jdlocp0ly5o
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.4k1wl8ackuyc
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.4lm12bkznzv3
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.4r2be82kqty4
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.4svidm7jvyyb
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.4t9jqbmyj8s1
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.4uwplg9yntev
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.4w6hdiuuvv0b
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.4xe70829znqg
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.4yrs93oklogo
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.51f9qwcmjme6
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.540yg758qj0n
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.58t75j6ssv45
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.58x1n206kd2h
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.5bsd08do54b5
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.5dm6fqe72pb4
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.5dmhar625g1b
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.5e9h6crfss9f
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.5gj0mv0cg5bn
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.8pjkjqpvpgd4
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.9qqvw7nnssr6
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.a20unophkifg
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.batrwfrjvvz0
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.f7v1xanjqplb
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.gs15hqtki7ey
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.ksdxls4ya7ot
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.l1glwyjtpja0
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.n3bnpi9354ew
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.nnjz9uo6gbrh
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.ns4cax4swteq
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.p6px63qs7nki
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.pbtupan80044
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.qlm2rsvkf24x
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.tk161o1t1bdf
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.tzxvvs64f9du
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.u0lnljbt3mdm
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.w5mmtx1keun7
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.xq6r21apuzpz
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.zk34egux3ezk
/home/esrse/opensource/redbpf/target/debug/build/redbpf-probes-f0fa0bd331f20da2/build_script_build-f0fa0bd331f20da2.4g6iz8fs07oh
--as-needed
-Bstatic
/home/esrse/opensource/redbpf/target/debug/deps/libtracing_subscriber-5848f2fe10898d71.rlib
/home/esrse/opensource/redbpf/target/debug/deps/libchrono-6f8d4bb423ddca90.rlib
/home/esrse/opensource/redbpf/target/debug/deps/libnum_integer-57190017cbe175ef.rlib
/home/esrse/opensource/redbpf/target/debug/deps/libnum_traits-36550ce66ce5d1f4.rlib
/home/esrse/opensource/redbpf/target/debug/deps/libsmallvec-46660b7d4a5aba2b.rlib
/home/esrse/opensource/redbpf/target/debug/deps/libthread_local-70856593c6bbbf59.rlib
/home/esrse/opensource/redbpf/target/debug/deps/libonce_cell-9fffd75946fb8778.rlib
/home/esrse/opensource/redbpf/target/debug/deps/libsharded_slab-60db3eaf12b4a77c.rlib
/home/esrse/opensource/redbpf/target/debug/deps/libtracing_serde-607386234c61eb54.rlib
/home/esrse/opensource/redbpf/target/debug/deps/libserde_json-3de8b5c3752d5467.rlib
/home/esrse/opensource/redbpf/target/debug/deps/libryu-739207766fb1644f.rlib
/home/esrse/opensource/redbpf/target/debug/deps/libitoa-61bdeea2b8939582.rlib
/home/esrse/opensource/redbpf/target/debug/deps/libserde-e1e7584dcba0a5cc.rlib
/home/esrse/opensource/redbpf/target/debug/deps/libtracing_log-a3481f0d52cf74e6.rlib
/home/esrse/opensource/redbpf/target/debug/deps/liblog-7914ddd45155fdc8.rlib
/home/esrse/opensource/redbpf/target/debug/deps/libansi_term-f6c40601c2d9bce6.rlib
/home/esrse/opensource/redbpf/target/debug/deps/libmatchers-ebef8fb68383db29.rlib
/home/esrse/opensource/redbpf/target/debug/deps/libregex_automata-fb5f8ee9d77421d6.rlib
/home/esrse/opensource/redbpf/target/debug/deps/libtracing-06d0b9dc1a3a11c1.rlib
/home/esrse/opensource/redbpf/target/debug/deps/libpin_project_lite-eca84dd3ea8e853e.rlib
/home/esrse/opensource/redbpf/target/debug/deps/libtracing_core-005e699f9b5c6da3.rlib
/home/esrse/opensource/redbpf/target/debug/deps/libcargo_bpf_lib-f5a61098eec4f4d6.rlib
/home/esrse/opensource/redbpf/target/debug/deps/libtempfile-c2f0cf885db1e72b.rlib
/home/esrse/opensource/redbpf/target/debug/deps/librand-5ab5f6411868649c.rlib
/home/esrse/opensource/redbpf/target/debug/deps/librand_chacha-dc367a92faa7b59d.rlib
/home/esrse/opensource/redbpf/target/debug/deps/libppv_lite86-069634687179693a.rlib
/home/esrse/opensource/redbpf/target/debug/deps/librand_core-48a511c452e44b12.rlib
/home/esrse/opensource/redbpf/target/debug/deps/libgetrandom-ab1a4bcf7b383902.rlib
/home/esrse/opensource/redbpf/target/debug/deps/libremove_dir_all-b2c8a73c8198091a.rlib
/home/esrse/opensource/redbpf/target/debug/deps/libsyn-a2653446fd8e335a.rlib
/home/esrse/opensource/redbpf/target/debug/deps/libbpf_sys-e3dfcc176be9657f.rlib
/home/esrse/opensource/redbpf/target/debug/deps/libzero-e4a50091d11aaf43.rlib
/home/esrse/opensource/redbpf/target/debug/deps/libbindgen-4c28f844159c6ae3.rlib
/home/esrse/opensource/redbpf/target/debug/deps/libshlex-a4cbb24c6d204af5.rlib
/home/esrse/opensource/redbpf/target/debug/deps/librustc_hash-0cf57bb6a16a6b5e.rlib
/home/esrse/opensource/redbpf/target/debug/deps/liblazycell-16d834afa391e717.rlib
/home/esrse/opensource/redbpf/target/debug/deps/libpeeking_take_while-5d9fe4a62aed6396.rlib
/home/esrse/opensource/redbpf/target/debug/deps/libregex-612f876f485fe08d.rlib
/home/esrse/opensource/redbpf/target/debug/deps/libaho_corasick-ad36077aa0bb0e5c.rlib
/home/esrse/opensource/redbpf/target/debug/deps/libregex_syntax-b77be10fdde4f88a.rlib
/home/esrse/opensource/redbpf/target/debug/deps/libclang_sys-bcf49afe69cba4e6.rlib
/home/esrse/opensource/redbpf/target/debug/deps/liblibloading-c98e31a28bc7d3ae.rlib
/home/esrse/opensource/redbpf/target/debug/deps/libcfg_if-dece450273084492.rlib
/home/esrse/opensource/redbpf/target/debug/deps/liblibc-7085dace614ae946.rlib
/home/esrse/opensource/redbpf/target/debug/deps/libglob-c2143d50ee53b852.rlib
/home/esrse/opensource/redbpf/target/debug/deps/libcexpr-e9857d7b84c3666e.rlib
/home/esrse/opensource/redbpf/target/debug/deps/libnom-5aa5bd5608091c67.rlib
/home/esrse/opensource/redbpf/target/debug/deps/libmemchr-cc2ba12c58cb3149.rlib
/home/esrse/opensource/redbpf/target/debug/deps/libbitvec-8959b0232a9e29bd.rlib
/home/esrse/opensource/redbpf/target/debug/deps/libfunty-15f2b698842c3471.rlib
/home/esrse/opensource/redbpf/target/debug/deps/libwyz-ae2ca63c3a5a2730.rlib
/home/esrse/opensource/redbpf/target/debug/deps/libtap-aab539557e8c4fbb.rlib
/home/esrse/opensource/redbpf/target/debug/deps/libradium-d0371432de1684ae.rlib
/home/esrse/opensource/redbpf/target/debug/deps/libquote-1b457121b46aa6b0.rlib
/home/esrse/opensource/redbpf/target/debug/deps/libproc_macro2-06e97d6f0dfb172f.rlib
/home/esrse/opensource/redbpf/target/debug/deps/libunicode_xid-5ecee5fca1210f52.rlib
/home/esrse/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libproc_macro-14535cd1bf
/home/esrse/opensource/redbpf/target/debug/deps/liblazy_static-df981c5871754530.rlib
/home/esrse/opensource/redbpf/target/debug/deps/libbitflags-f947290fec4feb2c.rlib
/home/esrse/opensource/redbpf/target/debug/deps/libanyhow-e7fa51c3d3265fdb.rlib
--start-group
/home/esrse/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-008055cc7d873802.
/home/esrse/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-06f01ac2
/home/esrse/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-f9a3c3274
/home/esrse/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-d4cbb754ee9f4da
/home/esrse/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-95c14e1c1e3ebc
/home/esrse/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-d489f0ca872
/home/esrse/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-75f07df0b18fea3
/home/esrse/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-0c35b27873
/home/esrse/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-e53064
/home/esrse/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-6b148909d37
/home/esrse/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_a
/home/esrse/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-74be3a703f788b
/home/esrse/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-8f2c5b445c28b2
/home/esrse/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-8480e85e0be96197
/home/esrse/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-ac23a75f6f42004
/home/esrse/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_c
/home/esrse/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-4beb03d03503c439
--end-group
/home/esrse/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-dd7
-Bdynamic
-lelf
-lz
-ldl
-lgcc_s
-lutil
-lrt
-lpthread
-lm
-ldl
-lc
--eh-frame-hdr
-znoexecstack
--gc-sections
-zrelro
-znow
/usr/lib/gcc/x86_64-redhat-linux/11/crtendS.o
/usr/lib/gcc/x86_64-redhat-linux/11/../../../../lib64/crtn.o

Most arguments are the same with your command line. But I found that your
command line include more rlibs than mine. You can see the list of rlibs
after the -Bstatic option. rlib files are archives of ELF object files for
static linking. I guess, the more archives the more memory consumption.

These are the extra libraries of your command line, compared to mine:

libarrayvec
libbyteorder
libbytes
libcombine
libfutures
libfutures_channel
libfutures_core
libfutures_executor
libfutures_io
libfutures_sink
libfutures_task
libfutures_util
libgoblin
libhexdump
libitertools
liblinked_hash_map
libllvm_sys
libmio
libpin_utils
libplain
libredbpf
libscroll
libsignal_hook_registry
libslab
libtime
libtokio
libtoml_edit

For reference, the below is the list of build-depenencies of redbpf-probes:

│       ├── anyhow v1.0.44
│       ├── bindgen v0.59.1 (*)
│       ├── bpf-sys v2.0.2 (/home/esrse/opensource/redbpf/bpf-sys) (*)
│       ├── cargo-bpf v2.0.2 (/home/esrse/opensource/redbpf/cargo-bpf) (*)
│       ├── glob v0.3.0
│       ├── quote v1.0.9 (*)
│       ├── syn v1.0.76 (*)
│       ├── tracing v0.1.27 (*)
│       └── tracing-subscriber v0.2.22
│           ├── ansi_term v0.12.1
│           ├── chrono v0.4.19 (*)
│           ├── lazy_static v1.4.0
│           ├── matchers v0.0.1
│           │   └── regex-automata v0.1.10
│           │       └── regex-syntax v0.6.25
│           ├── regex v1.5.4 (*)
│           ├── serde v1.0.130
│           ├── serde_json v1.0.67
│           │   ├── itoa v0.4.8
│           │   ├── ryu v1.0.5
│           │   └── serde v1.0.130
│           ├── sharded-slab v0.1.3
│           │   └── lazy_static v1.4.0
│           ├── smallvec v1.6.1
│           ├── thread_local v1.1.3
│           │   └── once_cell v1.8.0
│           ├── tracing v0.1.27 (*)
│           ├── tracing-core v0.1.20 (*)
│           ├── tracing-log v0.1.2
│           │   ├── lazy_static v1.4.0
│           │   ├── log v0.4.14 (*)
│           │   └── tracing-core v0.1.20 (*)
│           └── tracing-serde v0.1.2
│               ├── serde v1.0.130
│               └── tracing-core v0.1.20 (*)

You can see it using cargo tree command.

Can you check that the size of the extra libraries such as libllvm_sys? Are
they big?

regards,

@rhdxmr
Copy link
Collaborator

rhdxmr commented Oct 6, 2021

Hello @kcrazy
How is it going there?
It's been a while since I responded the last reply.

I wonder you found a solution.
Thanks,

@kcrazy
Copy link
Author

kcrazy commented Oct 8, 2021

Hello @rhdxmr
I'm very sorry, I'm busy with some other things these days.
Now I'm back to focusing on this issue.

As you said, I found that the libllvm_sys file size is very large:

$ find .|grep libllvm_sys | xargs ls -lh
-rw-r--r-- 1 kcrazy kcrazy 4.3G Aug  5 10:47 ./target/debug/deps/libllvm_sys-48e2806a8bce8be3.rlib
-rw-r--r-- 1 kcrazy kcrazy 758K Aug  5 10:45 ./target/debug/deps/libllvm_sys-48e2806a8bce8be3.rmeta
-rw-r--r-- 1 kcrazy kcrazy 4.3G Aug 19 14:39 ./target/debug/deps/libllvm_sys-8cbf6e42cceed152.rlib
-rw-r--r-- 1 kcrazy kcrazy 759K Aug 19 14:37 ./target/debug/deps/libllvm_sys-8cbf6e42cceed152.rmeta
-rw-r--r-- 1 kcrazy kcrazy 4.3G Jul 20 09:42 ./target/release/deps/libllvm_sys-c5698c3975f38722.rlib
-rw-r--r-- 1 kcrazy kcrazy 763K Jul 20 09:40 ./target/release/deps/libllvm_sys-c5698c3975f38722.rmeta
-rw-r--r-- 1 kcrazy kcrazy 906K Jul 15 10:56 ./target/release/deps/libllvm_sys-e6a028f7c4f32cb8.rlib
-rw-r--r-- 1 kcrazy kcrazy 741K Jul 15 10:56 ./target/release/deps/libllvm_sys-e6a028f7c4f32cb8.rmeta

The output of my cargo tree command looks like this:

$ cargo tree
bpf-sys v2.0.2 (/home/kcrazy/source/redbpf/bpf-sys)
├── glob v0.3.0
├── libc v0.2.98
├── regex v1.5.4
│   ├── aho-corasick v0.7.18
│   │   └── memchr v2.4.0
│   ├── memchr v2.4.0
│   └── regex-syntax v0.6.25
└── zero v0.1.2
[build-dependencies]
├── bindgen v0.59.1
│   ├── bitflags v1.2.1
│   ├── cexpr v0.5.0
│   │   └── nom v6.1.2
│   │       ├── bitvec v0.19.5
│   │       │   ├── funty v1.1.0
│   │       │   ├── radium v0.5.3
│   │       │   ├── tap v1.0.1
│   │       │   └── wyz v0.2.0
│   │       ├── funty v1.1.0
│   │       └── memchr v2.4.0
│   │       [build-dependencies]
│   │       └── version_check v0.9.3
│   ├── clang-sys v1.2.0
│   │   ├── glob v0.3.0
│   │   ├── libc v0.2.98
│   │   └── libloading v0.7.0
│   │       └── cfg-if v1.0.0
│   │   [build-dependencies]
│   │   └── glob v0.3.0
│   ├── lazy_static v1.4.0
│   ├── lazycell v1.3.0
│   ├── peeking_take_while v0.1.2
│   ├── proc-macro2 v1.0.28
│   │   └── unicode-xid v0.2.2
│   ├── quote v1.0.9
│   │   └── proc-macro2 v1.0.28 (*)
│   ├── regex v1.5.4 (*)
│   ├── rustc-hash v1.1.0
│   └── shlex v1.0.0
├── cc v1.0.69
├── glob v0.3.0
└── libc v0.2.98

cargo-bpf v2.0.2 (/home/kcrazy/source/redbpf/cargo-bpf)
├── anyhow v1.0.42
├── bindgen v0.59.1 (*)
├── bpf-sys v2.0.2 (/home/kcrazy/source/redbpf/bpf-sys) (*)
├── cfg-if v1.0.0
├── clap v2.33.3
│   ├── ansi_term v0.11.0
│   ├── atty v0.2.14
│   │   └── libc v0.2.98
│   ├── bitflags v1.2.1
│   ├── strsim v0.8.0
│   ├── textwrap v0.11.0
│   │   └── unicode-width v0.1.8
│   ├── unicode-width v0.1.8
│   └── vec_map v0.8.2
├── futures v0.3.16
│   ├── futures-channel v0.3.16
│   │   ├── futures-core v0.3.16
│   │   └── futures-sink v0.3.16
│   ├── futures-core v0.3.16
│   ├── futures-executor v0.3.16
│   │   ├── futures-core v0.3.16
│   │   ├── futures-task v0.3.16
│   │   └── futures-util v0.3.16
│   │       ├── futures-channel v0.3.16 (*)
│   │       ├── futures-core v0.3.16
│   │       ├── futures-io v0.3.16
│   │       ├── futures-macro v0.3.16 (proc-macro)
│   │       │   ├── proc-macro-hack v0.5.19 (proc-macro)
│   │       │   ├── proc-macro2 v1.0.28 (*)
│   │       │   ├── quote v1.0.9 (*)
│   │       │   └── syn v1.0.74
│   │       │       ├── proc-macro2 v1.0.28 (*)
│   │       │       ├── quote v1.0.9 (*)
│   │       │       └── unicode-xid v0.2.2
│   │       │   [build-dependencies]
│   │       │   └── autocfg v1.0.1
│   │       ├── futures-sink v0.3.16
│   │       ├── futures-task v0.3.16
│   │       ├── memchr v2.4.0
│   │       ├── pin-project-lite v0.2.7
│   │       ├── pin-utils v0.1.0
│   │       ├── proc-macro-hack v0.5.19 (proc-macro)
│   │       ├── proc-macro-nested v0.1.7
│   │       └── slab v0.4.3
│   │       [build-dependencies]
│   │       └── autocfg v1.0.1
│   ├── futures-io v0.3.16
│   ├── futures-sink v0.3.16
│   ├── futures-task v0.3.16
│   └── futures-util v0.3.16 (*)
├── glob v0.3.0
├── hexdump v0.1.1
│   ├── arrayvec v0.5.2
│   └── itertools v0.4.19
├── lazy_static v1.4.0
├── libc v0.2.98
├── llvm-sys v120.1.0
│   └── libc v0.2.98
│   [build-dependencies]
│   ├── cc v1.0.69
│   ├── lazy_static v1.4.0
│   ├── regex v1.5.4 (*)
│   └── semver v0.11.0
│       └── semver-parser v0.10.2
│           └── pest v2.1.3
│               └── ucd-trie v0.1.3
├── proc-macro2 v1.0.28 (*)
├── quote v1.0.9 (*)
├── redbpf v2.0.2 (/home/kcrazy/source/redbpf/redbpf)
│   ├── bindgen v0.59.1 (*)
│   ├── bpf-sys v2.0.2 (/home/kcrazy/source/redbpf/bpf-sys) (*)
│   ├── byteorder v1.4.3
│   ├── futures v0.3.16 (*)
│   ├── goblin v0.4.2
│   │   ├── log v0.4.14
│   │   │   └── cfg-if v1.0.0
│   │   ├── plain v0.2.3
│   │   └── scroll v0.10.2
│   │       └── scroll_derive v0.10.5 (proc-macro)
│   │           ├── proc-macro2 v1.0.28 (*)
│   │           ├── quote v1.0.9 (*)
│   │           └── syn v1.0.74 (*)
│   ├── lazy_static v1.4.0
│   ├── libc v0.2.98
│   ├── regex v1.5.4 (*)
│   ├── tokio v1.9.0
│   │   ├── bytes v1.0.1
│   │   ├── libc v0.2.98
│   │   ├── memchr v2.4.0
│   │   ├── mio v0.7.13
│   │   │   ├── libc v0.2.98
│   │   │   └── log v0.4.14 (*)
│   │   ├── once_cell v1.8.0
│   │   ├── pin-project-lite v0.2.7
│   │   ├── signal-hook-registry v1.4.0
│   │   │   └── libc v0.2.98
│   │   └── tokio-macros v1.3.0 (proc-macro)
│   │       ├── proc-macro2 v1.0.28 (*)
│   │       ├── quote v1.0.9 (*)
│   │       └── syn v1.0.74 (*)
│   │   [build-dependencies]
│   │   └── autocfg v1.0.1
│   ├── tracing v0.1.26
│   │   ├── cfg-if v1.0.0
│   │   ├── pin-project-lite v0.2.7
│   │   ├── tracing-attributes v0.1.15 (proc-macro)
│   │   │   ├── proc-macro2 v1.0.28 (*)
│   │   │   ├── quote v1.0.9 (*)
│   │   │   └── syn v1.0.74 (*)
│   │   └── tracing-core v0.1.18
│   │       └── lazy_static v1.4.0
│   └── zero v0.1.2
├── rustversion v1.0.5 (proc-macro)
├── syn v1.0.74 (*)
├── tempfile v3.2.0
│   ├── cfg-if v1.0.0
│   ├── libc v0.2.98
│   ├── rand v0.8.4
│   │   ├── libc v0.2.98
│   │   ├── rand_chacha v0.3.1
│   │   │   ├── ppv-lite86 v0.2.10
│   │   │   └── rand_core v0.6.3
│   │   │       └── getrandom v0.2.3
│   │   │           ├── cfg-if v1.0.0
│   │   │           └── libc v0.2.98
│   │   └── rand_core v0.6.3 (*)
│   └── remove_dir_all v0.5.3
├── tokio v1.9.0 (*)
└── toml_edit v0.2.1
    ├── chrono v0.4.19
    │   ├── libc v0.2.98
    │   ├── num-integer v0.1.44
    │   │   └── num-traits v0.2.14
    │   │       [build-dependencies]
    │   │       └── autocfg v1.0.1
    │   │   [build-dependencies]
    │   │   └── autocfg v1.0.1
    │   ├── num-traits v0.2.14 (*)
    │   └── time v0.1.43
    │       └── libc v0.2.98
    ├── combine v4.6.0
    │   ├── bytes v1.0.1
    │   └── memchr v2.4.0
    └── linked-hash-map v0.5.4

example-probes v0.1.0 (/home/kcrazy/source/redbpf/examples/example-probes)
├── cty v0.2.1
├── memoffset v0.6.4
│   [build-dependencies]
│   └── autocfg v1.0.1
├── redbpf-macros v2.0.2 (proc-macro) (/home/kcrazy/source/redbpf/redbpf-macros)
│   ├── proc-macro2 v1.0.28 (*)
│   ├── quote v1.0.9 (*)
│   ├── syn v1.0.74 (*)
│   └── uuid v0.8.2
│       └── getrandom v0.2.3 (*)
│   [build-dependencies]
│   └── rustc_version v0.3.3
│       └── semver v0.11.0 (*)
│   [dev-dependencies]
│   ├── memoffset v0.6.4 (*)
│   └── redbpf-probes v2.0.2 (/home/kcrazy/source/redbpf/redbpf-probes)
│       ├── cty v0.2.1
│       ├── redbpf-macros v2.0.2 (proc-macro) (/home/kcrazy/source/redbpf/redbpf-macros) (*)
│       └── ufmt v0.1.0
│           ├── proc-macro-hack v0.5.19 (proc-macro)
│           ├── ufmt-macros v0.1.1 (proc-macro)
│           │   ├── proc-macro-hack v0.5.19 (proc-macro)
│           │   ├── proc-macro2 v1.0.28 (*)
│           │   ├── quote v1.0.9 (*)
│           │   └── syn v1.0.74 (*)
│           └── ufmt-write v0.1.0
│       [build-dependencies]
│       ├── anyhow v1.0.42
│       ├── bindgen v0.59.1 (*)
│       ├── bpf-sys v2.0.2 (/home/kcrazy/source/redbpf/bpf-sys) (*)
│       ├── cargo-bpf v2.0.2 (/home/kcrazy/source/redbpf/cargo-bpf) (*)
│       ├── glob v0.3.0
│       ├── quote v1.0.9 (*)
│       ├── syn v1.0.74 (*)
│       ├── tracing v0.1.26 (*)
│       └── tracing-subscriber v0.2.19
│           ├── ansi_term v0.12.1
│           ├── chrono v0.4.19 (*)
│           ├── lazy_static v1.4.0
│           ├── matchers v0.0.1
│           │   └── regex-automata v0.1.10
│           │       └── regex-syntax v0.6.25
│           ├── regex v1.5.4 (*)
│           ├── serde v1.0.126
│           ├── serde_json v1.0.65
│           │   ├── itoa v0.4.7
│           │   ├── ryu v1.0.5
│           │   └── serde v1.0.126
│           ├── sharded-slab v0.1.1
│           │   └── lazy_static v1.4.0
│           ├── smallvec v1.6.1
│           ├── thread_local v1.1.3
│           │   └── once_cell v1.8.0
│           ├── tracing v0.1.26 (*)
│           ├── tracing-core v0.1.18 (*)
│           ├── tracing-log v0.1.2
│           │   ├── lazy_static v1.4.0
│           │   ├── log v0.4.14 (*)
│           │   └── tracing-core v0.1.18 (*)
│           └── tracing-serde v0.1.2
│               ├── serde v1.0.126
│               └── tracing-core v0.1.18 (*)
│       [dev-dependencies]
│       └── memoffset v0.6.4 (*)
└── redbpf-probes v2.0.2 (/home/kcrazy/source/redbpf/redbpf-probes) (*)
[build-dependencies]
├── bpf-sys v2.0.2 (/home/kcrazy/source/redbpf/bpf-sys) (*)
├── cargo-bpf v2.0.2 (/home/kcrazy/source/redbpf/cargo-bpf) (*)
├── tracing v0.1.26 (*)
└── tracing-subscriber v0.2.19 (*)

example-userspace v0.1.0 (/home/kcrazy/source/redbpf/examples/example-userspace)
├── example-probes v0.1.0 (/home/kcrazy/source/redbpf/examples/example-probes) (*)
├── futures v0.3.16 (*)
├── libc v0.2.98
├── redbpf v2.0.2 (/home/kcrazy/source/redbpf/redbpf) (*)
├── tokio v1.9.0 (*)
├── tracing v0.1.26 (*)
└── tracing-subscriber v0.2.19 (*)
[build-dependencies]
└── cargo-bpf v2.0.2 (/home/kcrazy/source/redbpf/cargo-bpf) (*)

probes v0.1.0 (/home/kcrazy/source/redbpf/redbpf-tools/probes)
├── cty v0.2.1
├── redbpf-macros v2.0.2 (proc-macro) (/home/kcrazy/source/redbpf/redbpf-macros) (*)
└── redbpf-probes v2.0.2 (/home/kcrazy/source/redbpf/redbpf-probes) (*)
[build-dependencies]
├── bpf-sys v2.0.2 (/home/kcrazy/source/redbpf/bpf-sys) (*)
├── cargo-bpf v2.0.2 (/home/kcrazy/source/redbpf/cargo-bpf) (*)
├── glob v0.3.0
├── tracing v0.1.26 (*)
└── tracing-subscriber v0.2.19 (*)

redbpf v2.0.2 (/home/kcrazy/source/redbpf/redbpf) (*)

redbpf-macros v2.0.2 (proc-macro) (/home/kcrazy/source/redbpf/redbpf-macros) (*)

redbpf-probes v2.0.2 (/home/kcrazy/source/redbpf/redbpf-probes) (*)

redbpf-tools v0.1.0 (/home/kcrazy/source/redbpf/redbpf-tools)
├── futures v0.3.16 (*)
├── getopts v0.2.21
│   └── unicode-width v0.1.8
├── libc v0.2.98
├── probes v0.1.0 (/home/kcrazy/source/redbpf/redbpf-tools/probes) (*)
├── redbpf v2.0.2 (/home/kcrazy/source/redbpf/redbpf) (*)
└── tokio v1.9.0 (*)
[build-dependencies]
└── cargo-bpf v2.0.2 (/home/kcrazy/source/redbpf/cargo-bpf) (*)

@kcrazy
Copy link
Author

kcrazy commented Oct 8, 2021

The contents of my execsnoop.log file are as follows:

collect2

/usr/libexec/gcc/x86_64-pc-linux-gnu/10.3.0/collect2
-plugin
/usr/libexec/gcc/x86_64-pc-linux-gnu/10.3.0/liblto_plugin.so
-plugin-opt=/usr/libexec/gcc/x86_64-pc-linux-gnu/10.3.0/lto-wrapper
-plugin-opt=-fresolution=/tmp/ccmS4z3h.res
--eh-frame-hdr
-m
elf_x86_64
-dynamic-linker
/lib64/ld-linux-x86-64.so.2
-pie
-o
/home/kcrazy/source/redbpf/target/debug/build/example-userspace-5592a1e744b2b2f1/build_script_build-5592a1e744b2b2f1
/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../lib64/Scrt1.o
/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../lib64/crti.o
/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/crtbeginS.o
-L/home/kcrazy/source/redbpf/target/debug/deps
-L/home/kcrazy/source/redbpf/target/debug/build/bpf-sys-8caf454f82147574/out
-L/home/kcrazy/source/redbpf/target/debug/build/llvm-sys-8b506a02649913bd/out
-L/home/kcrazy/llvm/lib
-L/home/kcrazy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib
-L/home/kcrazy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib
-L/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0
-L/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../lib64
-L/lib/../lib64
-L/usr/lib/../lib64
-L/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/lib
-L/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../..
/home/kcrazy/source/redbpf/target/debug/build/example-userspace-5592a1e744b2b2f1/build_script_build-5592a1e744b2b2f1.15slicqriut
/home/kcrazy/source/redbpf/target/debug/build/example-userspace-5592a1e744b2b2f1/build_script_build-5592a1e744b2b2f1.1kjarmo9nbt
/home/kcrazy/source/redbpf/target/debug/build/example-userspace-5592a1e744b2b2f1/build_script_build-5592a1e744b2b2f1.1lz0wwkqqi2
/home/kcrazy/source/redbpf/target/debug/build/example-userspace-5592a1e744b2b2f1/build_script_build-5592a1e744b2b2f1.1udwarhnicp
/home/kcrazy/source/redbpf/target/debug/build/example-userspace-5592a1e744b2b2f1/build_script_build-5592a1e744b2b2f1.294xtzd9xdf
/home/kcrazy/source/redbpf/target/debug/build/example-userspace-5592a1e744b2b2f1/build_script_build-5592a1e744b2b2f1.2bu29hvhnjx
/home/kcrazy/source/redbpf/target/debug/build/example-userspace-5592a1e744b2b2f1/build_script_build-5592a1e744b2b2f1.2z2nra0psge
/home/kcrazy/source/redbpf/target/debug/build/example-userspace-5592a1e744b2b2f1/build_script_build-5592a1e744b2b2f1.3haf5br5ax7
/home/kcrazy/source/redbpf/target/debug/build/example-userspace-5592a1e744b2b2f1/build_script_build-5592a1e744b2b2f1.3jgk2jc1j2y
/home/kcrazy/source/redbpf/target/debug/build/example-userspace-5592a1e744b2b2f1/build_script_build-5592a1e744b2b2f1.4rqgbx1g9ri
/home/kcrazy/source/redbpf/target/debug/build/example-userspace-5592a1e744b2b2f1/build_script_build-5592a1e744b2b2f1.58uzphrfbxp
/home/kcrazy/source/redbpf/target/debug/build/example-userspace-5592a1e744b2b2f1/build_script_build-5592a1e744b2b2f1.8aubobniduf
/home/kcrazy/source/redbpf/target/debug/build/example-userspace-5592a1e744b2b2f1/build_script_build-5592a1e744b2b2f1.52aqz2kvzo0
--as-needed
-Bstatic
/home/kcrazy/source/redbpf/target/debug/deps/libcargo_bpf_lib-33d3715f45c889e9.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libtempfile-2f4d41dc77174eba.rlib
/home/kcrazy/source/redbpf/target/debug/deps/librand-08af1d871362c2fe.rlib
/home/kcrazy/source/redbpf/target/debug/deps/librand_chacha-cbc694fa134c6e01.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libppv_lite86-545d86392ea1d8e4.rlib
/home/kcrazy/source/redbpf/target/debug/deps/librand_core-8b6215ce75f700d0.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libgetrandom-d801f701964b43b4.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libremove_dir_all-80ef6726c25ad48c.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libllvm_sys-8cbf6e42cceed152.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libredbpf-8b2376ec5ff77dca.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libbyteorder-0c03c404070d92e6.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libtokio-998fc1347464d3f6.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libsignal_hook_registry-73321e025c961684.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libonce_cell-a76c90beb999d50a.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libmio-10769dff3cf3410c.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libtracing-54702e7d5cab97db.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libtracing_core-78cfdba0c03c5b75.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libgoblin-d066aa8f7045b444.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libplain-2f677a7a95cfd0a1.rlib
/home/kcrazy/source/redbpf/target/debug/deps/liblog-c7a6438e9780af3a.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libscroll-d1033b1f2879249c.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libhexdump-9506d25e8edc8172.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libitertools-24346c7569f2671d.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libarrayvec-43d2f6fbcfcfd69b.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libfutures-1fad56436492fb9c.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libfutures_executor-4177bb44ba24a531.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libfutures_util-bdceb02bf0ef6544.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libfutures_io-12ff95146a6896b4.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libslab-26d05b350ac0da07.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libfutures_channel-5536d31c676f7e9c.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libpin_project_lite-ed06e07546a7102f.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libfutures_sink-dde56499d547c800.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libfutures_task-5b8f6133e14601aa.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libpin_utils-576e633f12357c97.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libfutures_core-cfd69f23e982eb04.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libanyhow-d1e64256fbcc8ff8.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libtoml_edit-17e62adc16ef3e75.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libchrono-6069502b77b85e94.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libnum_integer-016eaeb10a6f0eb9.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libnum_traits-3ea67f5534c2ade7.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libtime-d4a9aeba39d16586.rlib
/home/kcrazy/source/redbpf/target/debug/deps/liblinked_hash_map-d7738624b447d230.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libcombine-c2b26775275250a0.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libbytes-df7cac8fc38da202.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libbindgen-e98fcb4ed3865294.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libshlex-51f951512dcd8143.rlib
/home/kcrazy/source/redbpf/target/debug/deps/librustc_hash-7bf68832c0f4b1a6.rlib
/home/kcrazy/source/redbpf/target/debug/deps/liblazycell-05b01983d1848580.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libpeeking_take_while-9cff6bed9a8ada4a.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libclang_sys-52d7e149d93ba1da.rlib
/home/kcrazy/source/redbpf/target/debug/deps/liblibloading-d887e5e0d4d6db03.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libcfg_if-38c8a3e888ecb06a.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libcexpr-e6d724c19b1e44e1.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libnom-640d143e1d9b0633.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libbitvec-e96b527bfcddefad.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libfunty-9eca6c9d51b12396.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libwyz-890fd662fc55171c.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libtap-8668ae22b71a85c3.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libradium-8e2a4796d82bcf11.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libbitflags-f89ae4b715176e2d.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libsyn-b1e2911c0722b208.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libquote-8388bbcd500a3679.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libproc_macro2-4ad853a01b52ac03.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libunicode_xid-521ae656dc054791.rlib
/home/kcrazy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libproc_macro-48a8f9606
/home/kcrazy/source/redbpf/target/debug/deps/liblazy_static-5c53d641eb010a81.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libbpf_sys-9748b5fb012504dd.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libregex-c0311ef87925025d.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libaho_corasick-f751c074981e5308.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libmemchr-0721f17babcb5610.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libregex_syntax-b672c9191f2c7225.rlib
/home/kcrazy/source/redbpf/target/debug/deps/liblibc-ef703b7b559de845.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libglob-b2b3e3431c476f53.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libzero-03a2e3843be4f228.rlib
--start-group
/home/kcrazy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-2420485b9e5ef5e1
/home/kcrazy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-785e3cb
/home/kcrazy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-087191a8
/home/kcrazy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-9981842c029751
/home/kcrazy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-6fb405869b015
/home/kcrazy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-d05c5c3c56
/home/kcrazy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-42d74d2097528b
/home/kcrazy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-fb36534c1
/home/kcrazy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-b56b9
/home/kcrazy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-491902d6cb
/home/kcrazy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_
/home/kcrazy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-f78aa99d613a5
/home/kcrazy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-53ee54cd7fed2
/home/kcrazy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-544ecdbd6cda3c5
/home/kcrazy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-379cc252b6943a
/home/kcrazy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_
/home/kcrazy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-5b228734afae15e
--end-group
/home/kcrazy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-d6
-Bdynamic
-lrt
-ldl
-lpthread
-lm
-lz
-ltinfo
-lxml2
-lstdc++
-ldl
-lelf
-lz
-lgcc_s
-lutil
-lrt
-lpthread
-lm
-ldl
-lc
--eh-frame-hdr
-znoexecstack
--gc-sections
-zrelro
-znow
/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/crtendS.o
/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../lib64/crtn.o

ld

/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld
-plugin
/usr/libexec/gcc/x86_64-pc-linux-gnu/10.3.0/liblto_plugin.so
-plugin-opt=/usr/libexec/gcc/x86_64-pc-linux-gnu/10.3.0/lto-wrapper
-plugin-opt=-fresolution=/tmp/ccmS4z3h.res
--eh-frame-hdr
-m
elf_x86_64
-dynamic-linker
/lib64/ld-linux-x86-64.so.2
-pie
-o
/home/kcrazy/source/redbpf/target/debug/build/example-userspace-5592a1e744b2b2f1/build_script_build-5592a1e744b2b2f1
/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../lib64/Scrt1.o
/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../lib64/crti.o
/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/crtbeginS.o
-L/home/kcrazy/source/redbpf/target/debug/deps
-L/home/kcrazy/source/redbpf/target/debug/build/bpf-sys-8caf454f82147574/out
-L/home/kcrazy/source/redbpf/target/debug/build/llvm-sys-8b506a02649913bd/out
-L/home/kcrazy/llvm/lib
-L/home/kcrazy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib
-L/home/kcrazy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib
-L/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0
-L/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../lib64
-L/lib/../lib64
-L/usr/lib/../lib64
-L/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/lib
-L/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../..
/home/kcrazy/source/redbpf/target/debug/build/example-userspace-5592a1e744b2b2f1/build_script_build-5592a1e744b2b2f1.15slicqriut
/home/kcrazy/source/redbpf/target/debug/build/example-userspace-5592a1e744b2b2f1/build_script_build-5592a1e744b2b2f1.1kjarmo9nbt
/home/kcrazy/source/redbpf/target/debug/build/example-userspace-5592a1e744b2b2f1/build_script_build-5592a1e744b2b2f1.1lz0wwkqqi2
/home/kcrazy/source/redbpf/target/debug/build/example-userspace-5592a1e744b2b2f1/build_script_build-5592a1e744b2b2f1.1udwarhnicp
/home/kcrazy/source/redbpf/target/debug/build/example-userspace-5592a1e744b2b2f1/build_script_build-5592a1e744b2b2f1.294xtzd9xdf
/home/kcrazy/source/redbpf/target/debug/build/example-userspace-5592a1e744b2b2f1/build_script_build-5592a1e744b2b2f1.2bu29hvhnjx
/home/kcrazy/source/redbpf/target/debug/build/example-userspace-5592a1e744b2b2f1/build_script_build-5592a1e744b2b2f1.2z2nra0psge
/home/kcrazy/source/redbpf/target/debug/build/example-userspace-5592a1e744b2b2f1/build_script_build-5592a1e744b2b2f1.3haf5br5ax7
/home/kcrazy/source/redbpf/target/debug/build/example-userspace-5592a1e744b2b2f1/build_script_build-5592a1e744b2b2f1.3jgk2jc1j2y
/home/kcrazy/source/redbpf/target/debug/build/example-userspace-5592a1e744b2b2f1/build_script_build-5592a1e744b2b2f1.4rqgbx1g9ri
/home/kcrazy/source/redbpf/target/debug/build/example-userspace-5592a1e744b2b2f1/build_script_build-5592a1e744b2b2f1.58uzphrfbxp
/home/kcrazy/source/redbpf/target/debug/build/example-userspace-5592a1e744b2b2f1/build_script_build-5592a1e744b2b2f1.8aubobniduf
/home/kcrazy/source/redbpf/target/debug/build/example-userspace-5592a1e744b2b2f1/build_script_build-5592a1e744b2b2f1.52aqz2kvzo0
--as-needed
-Bstatic
/home/kcrazy/source/redbpf/target/debug/deps/libcargo_bpf_lib-33d3715f45c889e9.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libtempfile-2f4d41dc77174eba.rlib
/home/kcrazy/source/redbpf/target/debug/deps/librand-08af1d871362c2fe.rlib
/home/kcrazy/source/redbpf/target/debug/deps/librand_chacha-cbc694fa134c6e01.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libppv_lite86-545d86392ea1d8e4.rlib
/home/kcrazy/source/redbpf/target/debug/deps/librand_core-8b6215ce75f700d0.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libgetrandom-d801f701964b43b4.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libremove_dir_all-80ef6726c25ad48c.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libllvm_sys-8cbf6e42cceed152.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libredbpf-8b2376ec5ff77dca.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libbyteorder-0c03c404070d92e6.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libtokio-998fc1347464d3f6.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libsignal_hook_registry-73321e025c961684.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libonce_cell-a76c90beb999d50a.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libmio-10769dff3cf3410c.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libtracing-54702e7d5cab97db.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libtracing_core-78cfdba0c03c5b75.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libgoblin-d066aa8f7045b444.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libplain-2f677a7a95cfd0a1.rlib
/home/kcrazy/source/redbpf/target/debug/deps/liblog-c7a6438e9780af3a.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libscroll-d1033b1f2879249c.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libhexdump-9506d25e8edc8172.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libitertools-24346c7569f2671d.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libarrayvec-43d2f6fbcfcfd69b.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libfutures-1fad56436492fb9c.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libfutures_executor-4177bb44ba24a531.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libfutures_util-bdceb02bf0ef6544.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libfutures_io-12ff95146a6896b4.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libslab-26d05b350ac0da07.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libfutures_channel-5536d31c676f7e9c.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libpin_project_lite-ed06e07546a7102f.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libfutures_sink-dde56499d547c800.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libfutures_task-5b8f6133e14601aa.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libpin_utils-576e633f12357c97.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libfutures_core-cfd69f23e982eb04.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libanyhow-d1e64256fbcc8ff8.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libtoml_edit-17e62adc16ef3e75.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libchrono-6069502b77b85e94.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libnum_integer-016eaeb10a6f0eb9.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libnum_traits-3ea67f5534c2ade7.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libtime-d4a9aeba39d16586.rlib
/home/kcrazy/source/redbpf/target/debug/deps/liblinked_hash_map-d7738624b447d230.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libcombine-c2b26775275250a0.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libbytes-df7cac8fc38da202.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libbindgen-e98fcb4ed3865294.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libshlex-51f951512dcd8143.rlib
/home/kcrazy/source/redbpf/target/debug/deps/librustc_hash-7bf68832c0f4b1a6.rlib
/home/kcrazy/source/redbpf/target/debug/deps/liblazycell-05b01983d1848580.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libpeeking_take_while-9cff6bed9a8ada4a.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libclang_sys-52d7e149d93ba1da.rlib
/home/kcrazy/source/redbpf/target/debug/deps/liblibloading-d887e5e0d4d6db03.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libcfg_if-38c8a3e888ecb06a.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libcexpr-e6d724c19b1e44e1.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libnom-640d143e1d9b0633.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libbitvec-e96b527bfcddefad.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libfunty-9eca6c9d51b12396.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libwyz-890fd662fc55171c.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libtap-8668ae22b71a85c3.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libradium-8e2a4796d82bcf11.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libbitflags-f89ae4b715176e2d.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libsyn-b1e2911c0722b208.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libquote-8388bbcd500a3679.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libproc_macro2-4ad853a01b52ac03.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libunicode_xid-521ae656dc054791.rlib
/home/kcrazy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libproc_macro-48a8f9606
/home/kcrazy/source/redbpf/target/debug/deps/liblazy_static-5c53d641eb010a81.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libbpf_sys-9748b5fb012504dd.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libregex-c0311ef87925025d.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libaho_corasick-f751c074981e5308.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libmemchr-0721f17babcb5610.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libregex_syntax-b672c9191f2c7225.rlib
/home/kcrazy/source/redbpf/target/debug/deps/liblibc-ef703b7b559de845.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libglob-b2b3e3431c476f53.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libzero-03a2e3843be4f228.rlib
--start-group
/home/kcrazy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-2420485b9e5ef5e1
/home/kcrazy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-785e3cb
/home/kcrazy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-087191a8
/home/kcrazy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-9981842c029751
/home/kcrazy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-6fb405869b015
/home/kcrazy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-d05c5c3c56
/home/kcrazy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-42d74d2097528b
/home/kcrazy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-fb36534c1
/home/kcrazy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-b56b9
/home/kcrazy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-491902d6cb
/home/kcrazy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_
/home/kcrazy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-f78aa99d613a5
/home/kcrazy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-53ee54cd7fed2
/home/kcrazy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-544ecdbd6cda3c5
/home/kcrazy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-379cc252b6943a
/home/kcrazy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_
/home/kcrazy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-5b228734afae15e
--end-group
/home/kcrazy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-d6
-Bdynamic
-lrt
-ldl
-lpthread
-lm
-lz
-ltinfo
-lxml2
-lstdc++
-ldl
-lelf
-lz
-lgcc_s
-lutil
-lrt
-lpthread
-lm
-ldl
-lc
--eh-frame-hdr
-znoexecstack
--gc-sections
-zrelro
-znow
/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/crtendS.o
/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../lib64/crtn.o

collect2

/usr/libexec/gcc/x86_64-pc-linux-gnu/10.3.0/collect2
-plugin
/usr/libexec/gcc/x86_64-pc-linux-gnu/10.3.0/liblto_plugin.so
-plugin-opt=/usr/libexec/gcc/x86_64-pc-linux-gnu/10.3.0/lto-wrapper
-plugin-opt=-fresolution=/tmp/ccpOFcHn.res
--eh-frame-hdr
-m
elf_x86_64
-dynamic-linker
/lib64/ld-linux-x86-64.so.2
-pie
-o
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91
/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../lib64/Scrt1.o
/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../lib64/crti.o
/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/crtbeginS.o
-L/home/kcrazy/source/redbpf/target/debug/deps
-L/home/kcrazy/source/redbpf/target/debug/build/bpf-sys-8caf454f82147574/out
-L/home/kcrazy/source/redbpf/target/debug/build/llvm-sys-8b506a02649913bd/out
-L/home/kcrazy/llvm/lib
-L/home/kcrazy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib
-L/home/kcrazy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib
-L/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0
-L/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../lib64
-L/lib/../lib64
-L/usr/lib/../lib64
-L/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/lib
-L/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../..
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.1152rf9lueeyywk
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.12otg99lfu16pt3
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.13yuzi4ecsfzmc0
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.14t1jg09mf5soqm
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.15g1hyb8pubon0b
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.16b0racwoa58ouf
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.1856lm4tzzeodv2
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.19zfhsn7c0yuows
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.1b2jhzm4viji9um
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.1bhcot57tqd2a2c
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.1ftps0tmzk6g7lf
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.1l18ugg2i0gk3ic
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.1meh3ix2c4m2ial
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.1ntp4djkrto92qv
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.1pftz995kpwx6gv
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.1pp8kki1lrawotv
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.1tou5tdv4za5nmr
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.24d2wu1ego0ufrd
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.288smzx4qa9l9vy
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.28k38lgtd1hwzas
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.28tr8vlkgvm81o9
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.29qfhpg5s03e4kz
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.2ardbdd8a1tra70
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.2bu6h60qa6i2tba
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.2d6oy5lyxa6zz1y
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.2ggqe8brwuaiis8
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.2h0tmrkkmou1pg5
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.2h46tmwvf3wputa
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.2jehwctwampvcyd
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.2krxd8gtt7l4i8u
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.2m1qw9lq64w0oqv
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.2mpuummuzsyuwky
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.2pbtjjsrjs92htc
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.2tlbldhudgn1uwg
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.2x550rkk5i9x97l
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.30kfrhmm12sht1l
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.323hak3pqdu0wlj
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.34jprms6tk5klf6
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.34lhhhwxmarpvj0
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.36fre7mirlvi5h7
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.37ppb7pkfib9bcx
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.37xiqgufnrahh58
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.3d1jsv6anpdr09y
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.3da3rehqpm905b6
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.3esbl058sz0nbir
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.3hvd11sdorcss0k
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.3kknlcr6wvyfoy4
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.3lg6s3rrbcdmck8
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.3oizxsos3f8voyk
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.3t3dyuv50he6bvu
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.3uwge6rrnkz9uyc
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.3xi2b30pnw0sglw
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.3y5hvfzlp99mjsg
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.3y6hve44iuvvs1y
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.3zxg42925ylx4gt
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.47iwuc7o32oudhj
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.47nvmci2hiqxdl6
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.48o74pw03jc4njm
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.4capkc8ak48r51a
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.4d69kcs1isql544
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.4eqh726puxgsewf
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.4n83gcjbt8dqvja
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.4p9y0lq01w9aulj
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.4pxu42mo3axjbmn
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.4xnb12q4q5fzyo8
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.4yco76a7dhvzjey
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.508cp86mp6wyxck
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.50n1i7a0pc8lili
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.5281idla2m9h48c
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.55mviyljeqryl30
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.57anrsekzjjjs6e
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.57dbvrwgoizrd9z
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.5aafo9gvjcaonno
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.5ag9o0x4bxem588
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.9m1pdxij08hacl8
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.dw3qscxvyx6k9wn
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.f9kn74zkelh3plw
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.gvjkeabtu3xkks8
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.jcsjelorik45sf7
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.kfc3k8uhxcafebt
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.n59duioa38mk45z
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.q9ioygkphb2j4i6
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.rv5f2y67rqa5x2m
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.to43g54cbcmukcv
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.xb43pjxl15fhi11
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.z8oihrguumi4wwc
/home/kcrazy/source/redbpf/target/debug/build/redbpf-probes-1f3ca18410982e91/build_script_build-1f3ca18410982e91.2lo3wy10ugz5rc1
--as-needed
-Bstatic
/home/kcrazy/source/redbpf/target/debug/deps/libtracing_subscriber-980f50d17c0a7d91.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libsmallvec-cd9632e27e802452.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libthread_local-680cbed8abfdcd6f.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libsharded_slab-46af8ade2a320d8d.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libtracing_serde-cd45641607746d17.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libserde_json-e654bffa6f8f710f.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libryu-059aa1fbb24cd15e.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libitoa-e8b11f69ec08d8ae.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libserde-904cd245b9f568f0.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libtracing_log-d20bb33fbc99f1ee.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libansi_term-3890e7bdb4add20d.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libmatchers-a12abb92fac397e4.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libregex_automata-93ae503598843dfd.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libcargo_bpf_lib-33d3715f45c889e9.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libtempfile-2f4d41dc77174eba.rlib
/home/kcrazy/source/redbpf/target/debug/deps/librand-08af1d871362c2fe.rlib
/home/kcrazy/source/redbpf/target/debug/deps/librand_chacha-cbc694fa134c6e01.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libppv_lite86-545d86392ea1d8e4.rlib
/home/kcrazy/source/redbpf/target/debug/deps/librand_core-8b6215ce75f700d0.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libgetrandom-d801f701964b43b4.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libremove_dir_all-80ef6726c25ad48c.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libllvm_sys-8cbf6e42cceed152.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libredbpf-8b2376ec5ff77dca.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libbyteorder-0c03c404070d92e6.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libtokio-998fc1347464d3f6.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libsignal_hook_registry-73321e025c961684.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libonce_cell-a76c90beb999d50a.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libmio-10769dff3cf3410c.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libtracing-54702e7d5cab97db.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libtracing_core-78cfdba0c03c5b75.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libgoblin-d066aa8f7045b444.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libplain-2f677a7a95cfd0a1.rlib
/home/kcrazy/source/redbpf/target/debug/deps/liblog-c7a6438e9780af3a.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libscroll-d1033b1f2879249c.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libhexdump-9506d25e8edc8172.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libitertools-24346c7569f2671d.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libarrayvec-43d2f6fbcfcfd69b.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libfutures-1fad56436492fb9c.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libfutures_executor-4177bb44ba24a531.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libfutures_util-bdceb02bf0ef6544.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libfutures_io-12ff95146a6896b4.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libslab-26d05b350ac0da07.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libfutures_channel-5536d31c676f7e9c.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libpin_project_lite-ed06e07546a7102f.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libfutures_sink-dde56499d547c800.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libfutures_task-5b8f6133e14601aa.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libpin_utils-576e633f12357c97.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libfutures_core-cfd69f23e982eb04.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libtoml_edit-17e62adc16ef3e75.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libchrono-6069502b77b85e94.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libnum_integer-016eaeb10a6f0eb9.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libnum_traits-3ea67f5534c2ade7.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libtime-d4a9aeba39d16586.rlib
/home/kcrazy/source/redbpf/target/debug/deps/liblinked_hash_map-d7738624b447d230.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libcombine-c2b26775275250a0.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libbytes-df7cac8fc38da202.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libsyn-b1e2911c0722b208.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libbpf_sys-9748b5fb012504dd.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libzero-03a2e3843be4f228.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libbindgen-e98fcb4ed3865294.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libshlex-51f951512dcd8143.rlib
/home/kcrazy/source/redbpf/target/debug/deps/librustc_hash-7bf68832c0f4b1a6.rlib
/home/kcrazy/source/redbpf/target/debug/deps/liblazycell-05b01983d1848580.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libpeeking_take_while-9cff6bed9a8ada4a.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libregex-c0311ef87925025d.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libaho_corasick-f751c074981e5308.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libregex_syntax-b672c9191f2c7225.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libclang_sys-52d7e149d93ba1da.rlib
/home/kcrazy/source/redbpf/target/debug/deps/liblibloading-d887e5e0d4d6db03.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libcfg_if-38c8a3e888ecb06a.rlib
/home/kcrazy/source/redbpf/target/debug/deps/liblibc-ef703b7b559de845.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libglob-b2b3e3431c476f53.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libcexpr-e6d724c19b1e44e1.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libnom-640d143e1d9b0633.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libmemchr-0721f17babcb5610.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libbitvec-e96b527bfcddefad.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libfunty-9eca6c9d51b12396.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libwyz-890fd662fc55171c.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libtap-8668ae22b71a85c3.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libradium-8e2a4796d82bcf11.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libquote-8388bbcd500a3679.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libproc_macro2-4ad853a01b52ac03.rlib
/home/kcrazy/source/redbpf/target/debug/deps/libunicode_xid-521ae656dc054791.rlib
/home/kcrazy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libproc_macro-48a8f9606
/home/kcrazy/source/redbpf/target/debug/deps/libbitflags-f89ae4b715176e2d.rlib

@rhdxmr
Copy link
Collaborator

rhdxmr commented Oct 11, 2021

Hello @kcrazy

LLVM_SYS_120_PREFIX=$HOME/llvm RUST_BACKTRACE=full cargo build -v --examples

I saw you used custom LLVM 12 in your home directory.
How did you install that?
I'd like to install the custom LLVM 12 in my machine and reproduce the issue.

@kcrazy
Copy link
Author

kcrazy commented Oct 11, 2021

Hello @rhdxmr

Download and unpack a copy of the source for the llvm 12.0 version.

mkdir -p llvm/build
cd llvm/build
cmake .. -DCMAKE_INSTALL_PREFIX=$HOME/llvm

I referenced this page:
https://github.com/tari/llvm-sys.rs

@rhdxmr
Copy link
Collaborator

rhdxmr commented Oct 12, 2021

@kcrazy

I followed the instruction you gave to me and referenced the page you mentioned and I successfully installed custom LLVM 12.

Using the custom LLVM 12, I reproduced the problem that ld processes consume too much memory.
Look at this screenshot. You can see that 3 ld processes use over 20G in my machine. Wow.

htop

Here's my solution to reduce the memory consumption.
When you build your custom LLVM12, make it as a Release.

$ tar -xaf llvm-12.0.0.src.tar.xz
$ mkdir -p llvm-12.0.0.src/build
$ cd llvm-12.0.0.src/build
$ cmake .. -DCMAKE_INSTALL_PREFIX=$HOME/llvm-12-release -DCMAKE_BUILD_TYPE=Release
$ cmake --build . --target install

As you can see, -DCMAKE_BUILD_TYPE=Release solves the problem.

$ LLVM_SYS_120_PREFIX=$HOME/llvm-12-release/ cargo build -v --examples

How about trying this?

@kcrazy
Copy link
Author

kcrazy commented Oct 12, 2021

Great, I'll try it, thanks a lot!

@kcrazy
Copy link
Author

kcrazy commented Oct 13, 2021

Hello @rhdxmr
It's done, thank you!
Solved the problem that has been bothering me

@rhdxmr
Copy link
Collaborator

rhdxmr commented Oct 13, 2021

@kcrazy
I am glad to hear that. Thank you

@rhdxmr rhdxmr closed this as completed Oct 13, 2021
rhdxmr added a commit that referenced this issue Nov 11, 2021
A few users had struggled with problems originated from RedBPF. And they
asked how to solve the tricky problems via github issues.

The updated content consists of answers to issues as below:
- #213
- #194
- #212
- #205

Thanks to users effort and their report, this content can be written.

Signed-off-by: Junyeong Jeong <rhdxmr@gmail.com>
@rhdxmr rhdxmr mentioned this issue Nov 11, 2021
@rhdxmr
Copy link
Collaborator

rhdxmr commented Nov 11, 2021

@kcrazy
I mentioned this issue at the tutorial to guide new users how to build LLVM from source.
See #217 for more information.
Thanks

rhdxmr added a commit that referenced this issue Nov 12, 2021
A few users had struggled with problems originated from RedBPF. And they
asked how to solve the tricky problems via github issues.

The updated content consists of answers to issues as below:
- #213
- #194
- #212
- #205

Thanks to users effort and their report, this content can be written.

Signed-off-by: Junyeong Jeong <rhdxmr@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants