Skip to content

hyperscan: print database infor is called inside kernel, it may not b… #1

hyperscan: print database infor is called inside kernel, it may not b…

hyperscan: print database infor is called inside kernel, it may not b… #1

Workflow file for this run

name: Lint
on: [push]
jobs:
diff-upstream:
runs-on: [self-hosted, ubuntu-22-04]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1000
- name: fetch upstream
run: |
git remote add upstream https://github.com/intel/hyperscan.git || true
git fetch upstream --depth 1000
- name: diff upstream
run: |
git diff --patch-with-stat --color \
--merge-base upstream/master -- \
":(exclude)unit/gtest/*" \
":(exclude)src/kmod/*" \
":(exclude)debian.dkms/" \
":(exclude).github/*" \
":(exclude)unit/hyperscan/xdp_*" \
":(exclude)src/Kbuild" \
":(exclude)cmake/FindLibBpf.cmake"
analyze:
runs-on: [self-hosted, ubuntu-22-04]
container:
image: harbor.p.gc.onl/ddos/linux-builder-focal:main
credentials:
username: ${{ secrets.HARBOR_USERNAME }}
password: ${{ secrets.HARBOR_PASSWORD }}
env:
LINUX_ROOT: /lib/modules/5.17.0-8-generic/build
steps:
- uses: actions/checkout@v4
- name: install kernel headers
run: |
apt-get update -o Dir::Etc::sourcelist="sources.list.d/gcdn.list"
apt-get install -y --no-install-recommends \
linux-headers-generic-sifter-20.04
- name: checkpatch
shell: bash
run: |
cd ${LINUX_ROOT}
touch COPYING CREDITS MAINTAINERS README
scripts/checkpatch.pl --ignore \
LINUX_VERSION_CODE,CONSTANT_COMPARISON \
-f ${GITHUB_WORKSPACE}/src/kmod/{rex.c,rex.h,rex_trace.h} \
--codespell --codespellfile \
/usr/lib/python3/dist-packages/codespell_lib/data/dictionary.txt
- name: coccicheck
run: |
make -C ${LINUX_ROOT} \
C=2 CHECK=${LINUX_ROOT}/scripts/coccicheck \
PYTHONHOME=/usr \
M=$PWD/src \
-j$(nproc) kmod/rex.o \
| grep --line-buffered --color -E "WARNING|\$"