profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/thefallentree/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.

thefallentree/parity-clique 5

Clique (EIP225 Proof-of authority concensus) Engine implementation for Parity

thefallentree/machine-learning-for-software-engineers 1

A complete daily plan for studying to become a machine learning engineer.

thefallentree/mushclient 1

Open Source Windows MUD game client

thefallentree/swarm 1

Swarm: a Docker-native clustering system

libbpf/ci 0

BPF CI

thefallentree/ci 0

BPF CI

thefallentree/diem 0

Diem’s mission is to build a trusted and innovative financial network that empowers people and businesses around the world.

thefallentree/ed25519-dalek 0

Fast and efficient ed25519 signing and verification in Rust.

thefallentree/idea-bison 0

idea plugin for bison grammar support

thefallentree/libbpf 0

Automated upstream mirror for libbpf stand-alone build.

push eventfluffos/fluffos

Yucong Sun

commit sha e023330b22a1de0f6abb2e89f9e7fab75f7d7dd4

Bundle libevent

view details

Yucong Sun

commit sha 9ba97f1d040f0a378994152c9c594e82e7130e12

make stacktrace actually print useful stuff

view details

push time in 5 hours

push eventfluffos/fluffos

Yucong Sun

commit sha 4f31f181a4730bbbb1e5a879748bf434d8cda874

Bundle libevent

view details

Yucong Sun

commit sha 0c7c105e4692fe673eaab7cb67d3d7b1f2628853

make stacktrace actually print useful stuff

view details

push time in 5 hours

PR opened fluffos/fluffos

V2021
+113671 -21

0 comment

270 changed files

pr created time in 7 hours

push eventfluffos/fluffos

Yucong Sun

commit sha 24c2a832ad00171e32bfccf1098d9385cbed821f

Update libwebsockets to 4.2.0-stable

view details

Yucong Sun

commit sha 8607711aad099f6c5427473da3f516644d3f6346

Bundle libevent

view details

Yucong Sun

commit sha d508f35813800c1fa5617c22a023df62e693e82a

make stacktrace actually print useful stuff

view details

push time in 7 hours

issue openedwarmcat/libwebsockets

make libevent debug mode happy by setting O_NONBLOCK manually.

diff --git a/src/thirdparty/libwebsockets/lib/plat/unix/unix-pipe.c b/src/thirdparty/libwebsockets/lib/plat/unix/unix-pipe.c
index b4470975..306bccad 100644
--- a/src/thirdparty/libwebsockets/lib/plat/unix/unix-pipe.c
+++ b/src/thirdparty/libwebsockets/lib/plat/unix/unix-pipe.c
@@ -41,7 +41,10 @@ lws_plat_pipe_create(struct lws *wsi)
 #elif defined(LWS_HAVE_PIPE2)
        return pipe2(pt->dummy_pipe_fds, O_NONBLOCK);
 #else
-       return pipe(pt->dummy_pipe_fds);
+       int ret =  pipe(pt->dummy_pipe_fds);
+       ret = fcntl(pt->dummy_pipe_fds[0], F_SETFL, O_NONBLOCK);
+       ret = fcntl(pt->dummy_pipe_fds[1], F_SETFL, O_NONBLOCK);
+       return ret;
 #endif
 }

created time in 8 hours

issue openedlibevent/libevent

avoid use strdup() in libevent

strdup() allocates memory through internal malloc, which can't be masked by allocator like jemalloc, and will crash the program if being static linked.

libevent right now has a wrapper that it only uses if mm_malloc_fn is set, but it should always use it instead.

created time in 8 hours

issue commentlibevent/libevent

cmake via add_subdirectory() doesn't work

This has started working:

set(EVENT__DISABLE_BENCHMARK ON CACHE BOOL "" FORCE)
set(EVENT__DISABLE_MBEDTLS ON CACHE BOOL "" FORCE)
set(EVENT__DISABLE_BENCHMARK ON CACHE BOOL "" FORCE)
set(EVENT__DISABLE_TESTS ON CACHE BOOL "" FORCE)
set(EVENT__DISABLE_REGRESS ON CACHE BOOL "" FORCE)
set(EVENT__DISABLE_SAMPLES ON CACHE BOOL "" FORCE)
set(EVENT__DISABLE_MM_REPLACEMENT ON CACHE BOOL "" FORCE)
include_directories(SYSETEM ${CMAKE_CURRENT_BINARY_DIR}/thirdparty/libevent/include)
include_directories(SYSETEM thirdparty/libevent/include)
add_subdirectory(thirdparty/libevent EXCLUDE_FROM_ALL)

target_link_libraries(... PRIVATE event_core_static event_extra_static event_openssl_static event_pthreads_static)

Here is a snippet for anyone interested in doing so.

thefallentree

comment created time in 8 hours

issue commentlibevent/libevent

Snippet to do bufferevent_flush() with openssl

I have figured out why:

https://github.com/libevent/libevent/blob/fabbf3b31074ed74b9f0657299836fe40e4e365a/bufferevent_ssl.c#L388

Didn't check the return code for drain , and most importantly, didn't evbuffer_unfreeze the output before drain, in my snippet it was freeze after the drain, making the subsequent calls keep sending the data. a simple fix is to add unfreeze and also check the return code of the evbuffer_drain here.

thefallentree

comment created time in 8 hours

push eventthefallentree/vmtest

Yucong Sun

commit sha a1bfb15cef42cae3c3d0fab8a93de04bc403c388

test1

view details

push time in 10 hours

push eventlibbpf/ci

Yucong Sun

commit sha 253170b0cefb90bbf620f0abc13a528226d5b1e9

test

view details

push time in 10 hours

PR merged fluffos/fluffos

Update libwebsockets to 4.2.0-stable
+1580 -1114

0 comment

106 changed files

thefallentree

pr closed time in 10 hours

push eventfluffos/fluffos

Yucong Sun

commit sha 24c2a832ad00171e32bfccf1098d9385cbed821f

Update libwebsockets to 4.2.0-stable

view details

push time in 10 hours

push eventthefallentree/vmtest

Yucong Sun

commit sha ffe45def3bbb44c2cff9a9aada38b18c2039c2a1

test1

view details

push time in 10 hours

push eventlibbpf/ci

Yucong Sun

commit sha 6022d5d8b24923bb8d200386e3ae6312aa2c3a35

test

view details

push time in 11 hours

push eventlibbpf/ci

Yucong Sun

commit sha 4ee1ca45c2cc32e8fa062dc1258142d7c8b57a58

test

view details

push time in 11 hours

push eventthefallentree/vmtest

Yucong Sun

commit sha 156bf33c658f265d62167ec8d8eb8a1686636c43

test1

view details

push time in 11 hours

push eventthefallentree/vmtest

Yucong Sun

commit sha ea189dade517b1d4ed4a25e06c4e45653658656a

test1

view details

push time in 12 hours

push eventlibbpf/ci

Yucong Sun

commit sha fa99ac35d60dcd8768253638d16ed2b500696aa2

test

view details

push time in 12 hours

push eventthefallentree/vmtest

Yucong Sun

commit sha 410ded103d14dc640c0568e121b68afdf3bac10a

test1

view details

push time in 12 hours

PR opened kernel-patches/vmtest

test1
+1 -1

0 comment

1 changed file

pr created time in 12 hours

push eventthefallentree/vmtest

Yucong Sun

commit sha fa07d13393d0cf5053e9e4b2e396279af940296b

Enable CI testing for PRs in vmtest repo Adds two optional step in CI workflow that clones bpf-next tree, these steps only runs out of "kernel-patches/bpf" repo, this will allow testing CI scripts on vmtest repo PRs.

view details

Sergey V. Yudin

commit sha a3c05ae1d313f5437fb0e699d65fa08a1a12d5a3

Merge pull request #27 from thefallentree/test1 Enable CI testing for PRs in vmtest repo

view details

Quentin Monnet

commit sha 9ab47b46eae70430a1cda4fbb4625b2a9227dafc

Revert "ci: run script to test bpftool types/options sync" This reverts commit 03a098058467add9a1ae54cc92003a4afb2ce3b7. The function was simply defined and not called in this commit. We tried to call it in a later commit, but it would fail because the VM image does not have python3 installed at this time. We will use another approach and run the checks on the host directly, not in the VM running the other selftest. Clean up the existing function.

view details

Quentin Monnet

commit sha be848c159f643bbb4082c61751127182926bbd3c

ci: run bpftool checks after building the selftests When new eBPF program, map, or attach types are added to the kernel, bpftool needs to be updated in order to support the related features. These updates should add the new types to the code itself, but also to the help messages, documentation, and bash completion. Given that it is easy to omit one of those, a script has been created to attempt to validate that all parts have been consistently updated. This new script for bpftool is hosted in the kernel repository, amongst the BPF selftests. But it is not called from the Makefile, and not run along with the other selftests. If it was, all patches updating the BPF UAPI would require the relevant changes in bpftool at the same time, _in the same patches_, which is not desirable. To ensure that bpftool's parts remain in sync, let's run this script from the CI. This patch adds a new section to the run.sh script, focused on bpftool, and calling the new test_bpftool_synctypes.py. Notes: - This is a second attempt at running those checks in the CI, the initial commits were reverted (see previous commit). - This replicates the commit in libbpf: https://github.com/libbpf/libbpf/commit/88649fe655b8 There's one difference: ${REPO_PATH} is omitted here, because not defined/used in this repo.

view details

Yucong Sun

commit sha 16b80544ed711d6d0f1f34f949d70c39511873b2

Avoid hanging on kernel panics using tip from [0], make linux reboot immediately after a kernel panic, and make qemu exit on reboot attempts. [0] https://unix.stackexchange.com/questions/443017/can-i-make-qemu-exit-with-failure-on-kernel-panic

view details

Yucong Sun

commit sha c85965d2dbc912fac1175321631c8d9769c53046

Set timeout to 1.5H instead of default 6H the normal runtime is about 40-50minutes, there should be still plenty of room

view details

Yucong Sun

commit sha be2b641f64b6fc947bc99ba8f8f4f6cf0d6f1bee

Apply local patches before building kernel

view details

Yucong Sun

commit sha 6285e7596fb3d0305129387a664cc5dc3e6b713b

Change to .diff to workaround gitignore restriction

view details

SergeI Iudin

commit sha e70414da8bd6549460c8e54084feec2434968f36

Merge pull request #32 from thefallentree/test1 Change to .diff to workaround gitignore restriction

view details

Yucong Sun

commit sha 4fd3287787dfe5ff1d0b5da49490b410dabbdf8d

Rename directory to workaround gitignore in linux repo

view details

Yucong Sun

commit sha 29403d38344609184bc381c25c786191969dadee

Allow local patch to fail

view details

Andrii Nakryiko

commit sha 42fb9988c7e3aadf9a85b855a2966b66f92d1231

[ci] Add temporary patch fix for bpf tree Add ea7b4244b365 ("x86/setup: Explicitly include acpi.h") to fix bpf tree build. Signed-off-by: Andrii Nakryiko <andrii@kernel.org>

view details

Yucong Sun

commit sha a364c5a88b269d6c3194521fa244d5d1b0660c99

test1

view details

push time in 12 hours

push eventlibbpf/ci

Yucong Sun

commit sha 03ec40dc2ce91238d8c78d7f910cdb13d8457149

test

view details

push time in 12 hours

create barnchlibbpf/ci

branch : thefallentree

created branch time in 12 hours

fork thefallentree/ci

BPF CI

fork in 12 hours

PR opened fluffos/fluffos

Update libwebsockets to 4.2.0-stable
+1580 -1114

0 comment

106 changed files

pr created time in 12 hours

push eventfluffos/fluffos

Yucong Sun

commit sha 437ff39993240cb5549f684d472aa4e077eef85b

Fix partial write in http2: https://github.com/warmcat/libwebsockets/issues/2412

view details

Yucong Sun

commit sha 2a1ee173f3fdc78d23f936d425f85606c77a1361

Update libwebsockets to 4.2.0-stable

view details

push time in 12 hours

push eventthefallentree/linux

Yucong Sun

commit sha e377f3eb0cd6d2559cdfa753f58e245a3e8eae77

selftests/bpf: Add parallelism to test_progs This patch adds "-j" mode to test_progs, executing tests in multiple process. "-j" mode is optional, and works with all existing test selection mechanism, as well as "-v", "-l" etc. In "-j" mode, main process use UDS/DGRAM to communicate to each forked worker, commanding it to run tests and collect logs. After all tests are finished, a summary is printed. main process use multiple competing threads to dispatch work to worker, trying to keep them all busy. The test status will be printed as soon as it is finished, if there are error logs, it will be printed after the final summary line. By specifying "--debug", additional debug information on server/worker communication will be printed. Example output: > ./test_progs -n 15-20 -j [ 12.801730] bpf_testmod: loading out-of-tree module taints kernel. Launching 8 workers. #20 btf_split:OK #16 btf_endian:OK #18 btf_module:OK #17 btf_map_in_map:OK #19 btf_skc_cls_ingress:OK #15 btf_dump:OK Summary: 6/20 PASSED, 0 SKIPPED, 0 FAILED Signed-off-by: Yucong Sun <sunyucong@gmail.com>

view details

Yucong Sun

commit sha 99267c9f15d084f1fefc97028e906a31058ae147

selftests/bpf: add per worker cgroup suffix This patch allows each worker to use a unique cgroup base directory, thus allowing tests that uses cgroups to run concurrently. Signed-off-by: Yucong Sun <sunyucong@gmail.com>

view details

Yucong Sun

commit sha 6c73e9a7b7c4aa70fe2d852a2590ec8fc0a98f73

selftests/bpf: pin some tests to worker 0 This patch modify some tests to provide serial_test_name() instead of test_name() to indicate it must run on worker 0. On encountering these tests, all other threads will wait on a conditional variable, which worker 0 will signal once the tests has finished running. Additionally, before running the test, thread 0 also check and wait until all other threads has finished their current work, to make sure the pinned test really are the only test running in the system. After this change, all tests should pass in '-j' mode. Signed-off-by: Yucong Sun <sunyucong@gmail.com>

view details

push time in a day

push eventthefallentree/linux

Yucong Sun

commit sha 76d59f4a730f88128d7300e19fe694b83643fb3b

selftests/bpf: Add parallelism to test_progs This patch adds "-j" mode to test_progs, executing tests in multiple process. "-j" mode is optional, and works with all existing test selection mechanism, as well as "-v", "-l" etc. In "-j" mode, main process use UDS/DGRAM to communicate to each forked worker, commanding it to run tests and collect logs. After all tests are finished, a summary is printed. main process use multiple competing threads to dispatch work to worker, trying to keep them all busy. The test status will be printed as soon as it is finished, if there are error logs, it will be printed after the final summary line. By specifying "--debug", additional debug information on server/worker communication will be printed. Example output: > ./test_progs -n 15-20 -j [ 12.801730] bpf_testmod: loading out-of-tree module taints kernel. Launching 8 workers. #20 btf_split:OK #16 btf_endian:OK #18 btf_module:OK #17 btf_map_in_map:OK #19 btf_skc_cls_ingress:OK #15 btf_dump:OK Summary: 6/20 PASSED, 0 SKIPPED, 0 FAILED Signed-off-by: Yucong Sun <sunyucong@gmail.com>

view details

Yucong Sun

commit sha db6389e5a28df294e07a475236ea64b0ee01c554

selftests/bpf: add per worker cgroup suffix This patch allows each worker to use a unique cgroup base directory, thus allowing tests that uses cgroups to run concurrently. Signed-off-by: Yucong Sun <sunyucong@gmail.com>

view details

Yucong Sun

commit sha a9ee4e01a24979bdb37a5e9710cb8c116e86baab

selftests/bpf: pin some tests to worker 0 This patch modify some tests to provide serial_test_name() instead of test_name() to indicate it must run on worker 0. On encountering these tests, all other threads will wait on a conditional variable, which worker 0 will signal once the tests has finished running. Additionally, before running the test, thread 0 also check and wait until all other threads has finished their current work, to make sure the pinned test really are the only test running in the system. After this change, all tests should pass in '-j' mode. Signed-off-by: Yucong Sun <sunyucong@gmail.com>

view details

push time in a day

push eventthefallentree/linux

Grant Seltzer

commit sha 69cd823956ba8ce266a901170b1060db8073bddd

libbpf: Add sphinx code documentation comments This adds comments above five functions in btf.h which document their uses. These comments are of a format that doxygen and sphinx can pick up and render. These are rendered by libbpf.readthedocs.org Signed-off-by: Grant Seltzer <grantseltzer@gmail.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20210915021951.117186-1-grantseltzer@gmail.com

view details

Matteo Croce

commit sha 336562752acc1a723f9a24b5b8129ae22e0478c6

bpf: Update bpf_get_smp_processor_id() documentation BPF programs run with migration disabled regardless of preemption, as they are protected by migrate_disable(). Update the uapi documentation accordingly. Signed-off-by: Matteo Croce <mcroce@microsoft.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Yonghong Song <yhs@fb.com> Link: https://lore.kernel.org/bpf/20210914235400.59427-1-mcroce@linux.microsoft.com

view details

Alexei Starovoitov

commit sha 700b3f35e171e7d413d44ec468f0556d661a16bc

bpf: Fix libbpf_version.h build dependency. Auto generated libbpf_version.h could be causing build issue like: $ make CC [U] kernel/bpf/preload/iterators/iterators.o In file included from ../tools/lib/bpf/libbpf.h:20, from ../kernel/bpf/preload/iterators/iterators.c:10: ../tools/lib/bpf/libbpf_common.h:13:10: fatal error: libbpf_version.h: No such file or directory 13 | #include "libbpf_version.h" | ^~~~~~~~~~~~~~~~~~ compilation terminated. make[4]: *** [../scripts/Makefile.userprogs:43: kernel/bpf/preload/iterators/iterators.o] Error 1 Fix it by force rebuilding libbpf. Fixes: 0b46b7550560 ("libbpf: Add LIBBPF_DEPRECATED_SINCE macro for scheduling API deprecations") Suggested-by: Andrii Nakryiko <andrii@kernel.org> Signed-off-by: Alexei Starovoitov <ast@kernel.org>

view details

Yucong Sun

commit sha eb6887b7f54d346a25f23ce5881682b26d5ca906

selftests/bpf: Add parallelism to test_progs This patch adds "-j" mode to test_progs, executing tests in multiple process. "-j" mode is optional, and works with all existing test selection mechanism, as well as "-v", "-l" etc. In "-j" mode, main process use UDS/DGRAM to communicate to each forked worker, commanding it to run tests and collect logs. After all tests are finished, a summary is printed. main process use multiple competing threads to dispatch work to worker, trying to keep them all busy. The test status will be printed as soon as it is finished, if there are error logs, it will be printed after the final summary line. By specifying "--debug", additional debug information on server/worker communication will be printed. Example output: > ./test_progs -n 15-20 -j [ 12.801730] bpf_testmod: loading out-of-tree module taints kernel. Launching 8 workers. #20 btf_split:OK #16 btf_endian:OK #18 btf_module:OK #17 btf_map_in_map:OK #19 btf_skc_cls_ingress:OK #15 btf_dump:OK Summary: 6/20 PASSED, 0 SKIPPED, 0 FAILED Signed-off-by: Yucong Sun <sunyucong@gmail.com>

view details

Yucong Sun

commit sha 42b6b761009866bb319593fd70367c2f23eeabd5

selftests/bpf: add per worker cgroup suffix This patch allows each worker to use a unique cgroup base directory, thus allowing tests that uses cgroups to run concurrently. Signed-off-by: Yucong Sun <sunyucong@gmail.com>

view details

push time in a day

push eventthefallentree/linux

Yonghong Song

commit sha 2220ecf55c1b7aa36e99b00a6b964f4e5333f9bf

selftests/bpf: Skip btf_tag test if btf_tag attribute not supported Commit c240ba287890 ("selftests/bpf: Add a test with a bpf program with btf_tag attributes") added btf_tag selftest to test BTF_KIND_TAG generation from C source code, and to test kernel validation of generated BTF types. But if an old clang (clang 13 or earlier) is used, the following compiler warning may be seen: progs/tag.c:23:20: warning: unknown attribute 'btf_tag' ignored and the test itself is marked OK. The compiler warning is bad and the test itself shouldn't be marked OK. This patch added the check for btf_tag attribute support. If btf_tag is not supported by the clang, the attribute will not be used in the code and the test will be marked as skipped. For example, with clang 13: ./test_progs -t btf_tag #21 btf_tag:SKIP Summary: 1/0 PASSED, 1 SKIPPED, 0 FAILED The selftests/README.rst is updated to clarify when the btf_tag test may be skipped. Signed-off-by: Yonghong Song <yhs@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Link: https://lore.kernel.org/bpf/20210915061036.2577971-1-yhs@fb.com

view details

Alexei Starovoitov

commit sha 741aa8b42616641dfc86edd2416086c2308afe77

bpf: Fix libbpf_version.h build dependency. Auto generated libbpf_version.h could be causing build issue like: $ make CC [U] kernel/bpf/preload/iterators/iterators.o In file included from ../tools/lib/bpf/libbpf.h:20, from ../kernel/bpf/preload/iterators/iterators.c:10: ../tools/lib/bpf/libbpf_common.h:13:10: fatal error: libbpf_version.h: No such file or directory 13 | #include "libbpf_version.h" | ^~~~~~~~~~~~~~~~~~ compilation terminated. make[4]: *** [../scripts/Makefile.userprogs:43: kernel/bpf/preload/iterators/iterators.o] Error 1 Fix it by force rebuilding libbpf. Fixes: 0b46b7550560 ("libbpf: Add LIBBPF_DEPRECATED_SINCE macro for scheduling API deprecations") Suggested-by: Andrii Nakryiko <andrii@kernel.org> Signed-off-by: Alexei Starovoitov <ast@kernel.org>

view details

Yucong Sun

commit sha 9725e047f3a0baf597ce4070032d6b4a51316ce0

selftests/bpf: Add parallelism to test_progs This patch adds "-j" mode to test_progs, executing tests in multiple process. "-j" mode is optional, and works with all existing test selection mechanism, as well as "-v", "-l" etc. In "-j" mode, main process use UDS/DGRAM to communicate to each forked worker, commanding it to run tests and collect logs. After all tests are finished, a summary is printed. main process use multiple competing threads to dispatch work to worker, trying to keep them all busy. Example output: > ./test_progs -n 15-20 -j [ 8.584709] bpf_testmod: loading out-of-tree module taints kernel. Launching 2 workers. [0]: Running test 15. [1]: Running test 16. [1]: Running test 17. [1]: Running test 18. [1]: Running test 19. [1]: Running test 20. [1]: worker exit. [0]: worker exit. #15 btf_dump:OK #16 btf_endian:OK #17 btf_map_in_map:OK #18 btf_module:OK #19 btf_skc_cls_ingress:OK #20 btf_split:OK Summary: 6/20 PASSED, 0 SKIPPED, 0 FAILED Know issue: Some tests fail when running concurrently, later patch will either fix the test or pin them to worker 0. Signed-off-by: Yucong Sun <sunyucong@gmail.com> V4 -> V3: address style warnings. V3 -> V2: fix missing outputs in commit messages. V2 -> V1: switch to UDS client/server model.

view details

Yucong Sun

commit sha 522e159c57f9e53f80af7b674d43b9f97749df30

selftests/bpf: add per worker cgroup suffix This patch allows each worker to use a unique cgroup base directory, thus allowing tests that uses cgroups to run concurrently. Signed-off-by: Yucong Sun <sunyucong@gmail.com>

view details

Yucong Sun

commit sha f009fe8b8e372b45fe07b57475bb66ca51ecb36b

selftests/bpf: pin some tests to worker 0 This patch adds a simple name list to pin some tests that fail to run in parallel to worker 0. On encountering these tests, all other threads will wait on a conditional variable, which worker 0 will signal once the tests has finished running. Additionally, before running the test, thread 0 also check and wait until all other threads has finished their work, to make sure the pinned test really are the only test running in the system. After this change, all tests should pass in '-j' mode. Signed-off-by: Yucong Sun <sunyucong@gmail.com>

view details

push time in a day