Skip to content

Instantly share code, notes, and snippets.

View oluceps's full-sized avatar
㊙️
I may be slow to respond.

oluceps oluceps

㊙️
I may be slow to respond.
View GitHub Profile
@oluceps
oluceps / a-trojan-with-nginx-stream-module.md
Last active October 16, 2022 03:02 — forked from phlinhng/a-trojan-with-nginx-stream-module.md
Trojan + NGINX 多網站共存

利用 NGINX 的 Stream 模塊 sni_preread 功能,可以做到讓 Trojan 和其他網站在同一台機器上共享 443 端口。

Nix 0 secs █████████████████████ 100.0%
@oluceps
oluceps / aarch64_openeuler openEuler 22.03 (LTS-SP1)
Last active January 29, 2023 17:12
Output of make test 2>&1|tee arch.log in example/tests
This file has been truncated, but you can view the full file.
ls ../bpftools/bashreadline/bashreadline.h && ../../eunomia-cc//workspace/bin/ecc ../bpftools/bashreadline/bashreadline.bpf.c ../bpftools/bashreadline/bashreadline.h \
|| ../../eunomia-cc//workspace/bin/ecc ../bpftools/bashreadline/bashreadline.bpf.c
../bpftools/bashreadline/bashreadline.h
Compiling bpf object...
Generating export types...
Packing ebpf object and config into ../bpftools/bashreadline/package.json...
sudo timeout --preserve-status -s 2 2 ./ecli run ../bpftools/bashreadline/package.json
TIME PID STR
Ctrl C exit...
ls ../bpftools/bootstrap/bootstrap.h && ../../eunomia-cc//workspace/bin/ecc ../bpftools/bootstrap/bootstrap.bpf.c ../bpftools/bootstrap/bootstrap.h \
ls ../bpftools/runqlat/runqlat.h && ../../compiler/workspace/bin/ecc ../bpftools/runqlat/runqlat.bpf.c ../bpftools/runqlat/runqlat.h \
|| ../../compiler/workspace/bin/ecc ../bpftools/runqlat/runqlat.bpf.c
../bpftools/runqlat/runqlat.h
Compiling bpf object...
$ clang -g -O2 -target bpf -Wno-unknown-attributes -D__TARGET_ARCH_mips -idirafter /usr/local/include -idirafter /usr/lib/llvm-11/lib/clang/11.0.1/include -idirafter /usr/include/mipsel-linux-gnu -idirafter /usr/include -I/tmp/eunomia.ydDjcs/include -I/tmp/eunomia.ydDjcs/include/vmlinux/mips -I/root/eunomia-bpf/examples/bpftools/runqlat -c ../bpftools/runqlat/runqlat.bpf.temp.c -o ../bpftools/runqlat/runqlat.bpf.o
In file included from ../bpftools/runqlat/runqlat.bpf.temp.c:10:
/root/eunomia-bpf/examples/bpftools/runqlat/core_fixes.bpf.h:79:6: error: use of unknown builtin '__builtin_preserve_type_info' [-Wimplicit-function-declaration]
if (bpf_core_type_exists(struct trace_event_raw_block_rq_completion___x))
^
/tmp/eunomia.ydDjcs/i
error: linking with `cc` failed: exit status: 1
|note"cc"
"/tmp/rustc0K2n8b/symbols.o"
"/home/riro/t/eunomia-bpf/ecli/target/release/deps/ecli-141824b492e230ea.ecli.45a5a42c-cgu.0.rcgu.o"
"/home/riro/t/eunomia-bpf/ecli/target/release/deps/ecli-141824b492e230ea.ecli.45a5a42c-cgu.1.rcgu.o"
"/home/riro/t/eunomia-bpf/ecli/target/release/deps/ecli-141824b492e230ea.ecli.45a5a42c-cgu.10.rcgu.o"
"/home/riro/t/eunomia-bpf/ecli/target/release/deps/ecli-141824b492e230ea.ecli.45a5a42c-cgu.11.rcgu.o"
"/home/riro/t/eunomia-bpf/ecli/target/release/deps/ecli-141824b492e230ea.ecli.45a5a42c-cgu.12.rcgu.o"
"/home/riro/t/eunomia-bpf/ecli/target/release/deps/ecli-141824b492e230ea.ecli.45a5a42c-cgu.13.rcgu.o"
"/home/riro/t/eunomia-bpf/ecli/target/release/deps/ecli-141824b492e230ea.ecli.45a5a42c-cgu.14.rcgu.o"
@oluceps
oluceps / log
Last active February 23, 2023 04:17
riscv test of eunomia-bpf (errors) - comp - Wed 22 Feb
ls ../testfail/fentry-link/fentry-link.h && ../../compiler/workspace/bin/ecc ../testfail/fentry-link/fentry-link.bpf.c ../testfail/fentry-link/fentry-link.h \
|| ../../compiler/workspace/bin/ecc ../testfail/fentry-link/fentry-link.bpf.c
ls: cannot access '../testfail/fentry-link/fentry-link.h': No such file or directory
Compiling bpf object...
Packing ebpf object and config into ../testfail/fentry-link/package.json...
sudo timeout --preserve-status -s 2 2 ./ecli run ../testfail/fentry-link/package.json
arg: ../testfail/fentry-link/package.json
libbpf: prog 'do_unlinkat': failed to attach: ERROR: strerror_r(-524)=22
libbpf: prog 'do_unlinkat': failed to auto-attach: -524
failed to attach skeleton
ls ../aa/fentry-link/fentry-link.h && ../../compiler/workspace/bin/ecc ../aa/fentry-link/fentry-link.bpf.c ../aa/fentry-link/fentry-link.h \
|| ../../compiler/workspace/bin/ecc ../aa/fentry-link/fentry-link.bpf.c
ls: cannot access '../aa/fentry-link/fentry-link.h': No such file or directory
Compiling bpf object...
Packing ebpf object and config into ../aa/fentry-link/package.json...
sudo timeout --preserve-status -s 2 2 ./ecli run ../aa/fentry-link/package.json
arg: ../aa/fentry-link/package.json
libbpf: prog 'do_unlinkat': failed to attach: ERROR: strerror_r(-524)=22
libbpf: prog 'do_unlinkat': failed to auto-attach: -524
failed to attach skeleton
@oluceps
oluceps / log-4509ebf7
Last active May 13, 2023 12:52
nix-build -E 'with import <nixpkgs> { }; pkgs.pkgsCross.aarch64-android.gcc12Stdenv.cc'
This file has been truncated, but you can view the full file.
$CPATH is `'
$LIBRARY_PATH is `'
/nix/store/qr60k7sz61hvv2baadlfv5qjr8q7vlg6-builder.sh: line 40: /nix/store/0kh9lkqqjpwflxfvb4a1ngxnkcfnlspd-binutils-wrapper-2.40/nix-support/libc-ldflags-before: No such file or directory
/nix/store/qr60k7sz61hvv2baadlfv5qjr8q7vlg6-builder.sh: line 40: /nix/store/0kh9lkqqjpwflxfvb4a1ngxnkcfnlspd-binutils-wrapper-2.40/nix-support/libc-ldflags-before: No such file or directory
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/s6kbsz7n9cksj7j5f7f49f66yfibnjxa-gcc-12.2.0.tar.xz
source root is gcc-12.2.0
setting SOURCE_DATE_EPOCH to timestamp 1660898032 of file gcc-12.2.0/MD5SUMS
@nix { "action": "setPhase", "phase": "patchPhase" }
@oluceps
oluceps / nixosRebuildFail
Created May 21, 2023 17:47
illegal reference specifier
This file has been truncated, but you can view the full file.
$ nix --extra-experimental-features nix-command flakes build --out-link /tmp/nixos-rebuild.rt47MM/nixos-rebuild /etc/nixos#nixosConfigurations."hostname".config.system.build.nixos-rebuild --verbose
evaluating derivation 'git+file:///etc/nixos#nixosConfigurations."hostname".config.system.build.nixos-rebuild'...
warning: Git tree '/etc/nixos' is dirty
evaluating file '/nix/store/6x2m3398id31f9krhc4z515bm43lsy66-source/flake.nix'
$ exec /nix/store/vjkdarn9k860v8qrfp46083qckjf2pm9-nixos-rebuild/bin/nixos-rebuild switch --flake /etc/nixos --verbose
building the system configuration...
Building in flake mode.
$ nix --extra-experimental-features nix-command flakes build /etc/nixos#nixosConfigurations."hostname".config.system.build.toplevel --verbose --out-link /tmp/nixos-rebuild.tAV8Ft/result
evaluating derivation 'git+file:///etc/nixos#nixosConfigurations."hostname".config.system.build.toplevel'...
warning: Git tree '/etc/nixos' is dirty