Skip to content

zephyr: lib: alloc: Use cached memory for L3 Heap #12296

zephyr: lib: alloc: Use cached memory for L3 Heap

zephyr: lib: alloc: Use cached memory for L3 Heap #12296

Workflow file for this run

---
name: IPC fuzzing
# 'workflow_dispatch' allows running this workflow manually from the
# 'Actions' tab
# yamllint disable-line rule:truthy
on:
workflow_call:
inputs:
fuzzing_duration_s:
type: number
default: 300 # 5 minutes
workflow_dispatch:
inputs:
fuzzing_duration_s:
type: number
default: 300
pull_request:
# TODO: can we provide a default inputs here too?
jobs:
simple-IPC-fuzz_sh:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
# Keep these names short due to questionable Github UI choices
IPC: [IPC3, IPC4]
steps:
- name: add i386 arch
run: |
sudo dpkg --add-architecture i386
sudo apt-get update
- name: apt-get install i386 packages
run: |
# We don't know why Github requires us to explicit all these i386
# dependencies. On a vanilla Ubuntu 22.04 the last apt-get is
# enough.
# Also, it does not seem possible to download Github images for
# local testing which means trial and error for this requires a
# force-push every time: excruciatingly slow!
sudo apt-get -y install \
libgcc-s1:i386 libc6-dev:i386 libstdc++6:i386 \
libgomp1:i386 libitm1:i386 libatomic1:i386 \
libasan8:i386 libubsan1:i386 libquadmath0:i386 \
sudo apt-get -y install \
libc6-dev-i386 libstdc++-12-dev:i386
- name: apt-get install build tools
run:
sudo apt-get -y install
clang llvm ninja-build device-tree-compiler python3-pyelftools
- uses: actions/checkout@v3
with:
path: ./workspace/sof
- name: west update
run: |
cd workspace/sof
pip3 install west
west init -l
west update --narrow --fetch-opt=--filter=tree:0
- name: build and run fuzzer for a few minutes
run: |
cd workspace
clang --verbose
set -x
case '${{ matrix.IPC }}' in
IPC3) cmake_arg='-DCONFIG_IPC_MAJOR_3=y' ;;
IPC4) cmake_arg='-DCONFIG_IPC_MAJOR_4=y' ;;
esac
duration="${{inputs.fuzzing_duration_s}}"
duration="${duration:-301}" # pull_request has not 'inputs.' :-(
sof/scripts/fuzz.sh -o fuzz-stdout.txt -t "$duration" -- "$cmake_arg"
- name: Upload stdout
uses: actions/upload-artifact@v3
if: failure()
with:
name: ${{ matrix.IPC }} logs
path: |
workspace/fuzz-stdout.txt