From c1be6dd3bb47b24adc16f945766adada916e3e5f Mon Sep 17 00:00:00 2001 From: Pablo Ubal Naveira Date: Wed, 13 Nov 2024 12:11:35 +0100 Subject: [PATCH] wip --- .github/workflows/ci.yml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bd8398e..46b14d3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,28 +17,39 @@ jobs: strategy: matrix: node-version: [18.x] - kernel: [6.1] + kernel: [6.5] steps: - name: Checkout uses: actions/checkout@v4 - name: Install build dependencies - run: sudo apt-get update && sudo apt-get install -y build-essential linux-headers-$(uname -r) wget unzip libelf-dev + run: | + sudo apt-get update && sudo apt-get install -y build-essential linux-headers-$(uname -r) wget unzip libelf-dev linux-source-6.5.0 + tar jxvf /usr/src/linux-source-6.5.0.tar.bz2 + cd linux-source-6.5.0 - name: Configure kernel sources run: | wget https://github.com/veithen/knetstat/archive/refs/heads/master.zip unzip master.zip cd knetstat-master - curl https://cdn.kernel.org/pub/linux/kernel/$(echo ${{ matrix.kernel }} | sed -E 's/([^.]+)[.].*/v\1.x/')/linux-${{ matrix.kernel }}.tar.xz | tar xJ + # wget https://cl.archive.ubuntu.com/ubuntu/pool/main/l/linux-azure-6.5/linux-azure-6.5_6.5.0.orig.tar.gz && tar xvzf linux-azure-6.5_6.5.0.orig.tar.gz + mv ../linux-source-6.5.0 linux-6.5 cp /boot/config-$(uname -r) linux-${{ matrix.kernel }}/.config make -C linux-${{ matrix.kernel }} clean yes "" | make -C linux-${{ matrix.kernel }} oldconfig make -C linux-${{ matrix.kernel }} modules_prepare - make KSRC=linux-${{ matrix.kernel }} + sed -i '/Module.symvers/d' ./Makefile + make KBUILD_MODPOST_WARN=1 KSRC=linux-${{ matrix.kernel }} sudo insmod knetstat.ko sudo lsmod | grep knetstat + - name: dmesg + if: always() + run: | + sudo dmesg|tail -n 10 + ls -la /lib/modules + - name: run knetstat run: cat /proc/net/tcpstat