File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change 3535
3636 build :
3737 runs-on : ubuntu-24.04
38+ needs : generate-trace-data
3839 strategy :
3940 matrix :
4041 distro :
7576 run : |
7677 meson setup -Dbuildtype=debugoptimized ${{ matrix.meson_opts }} build
7778 cd build && ninja
79+
80+ - name : download sample trace data
81+ uses : actions/download-artifact@v5
82+ with :
83+ name : trace-data
84+
85+ - name : smoke test
86+ run : |
87+ find $GITHUB_WORKSPACE
88+ export BABELTRACE_PLUGIN_PATH="$GITHUB_WORKSPACE/build"
89+ apt-get install -y babeltrace2 jq
90+ babeltrace2 --plugin-path=. "$GITHUB_WORKSPACE/trace.dat"
91+ babeltrace2 --component=meta:sink.ftrace.tracemeta "$GITHUB_WORKSPACE/trace.dat" | jq
92+ mkdir -p /tmp/traceout
93+ ./ftrace-to-ctf --lttng "$GITHUB_WORKSPACE/trace.dat" /tmp/traceout
94+
95+ generate-trace-data :
96+ runs-on : ubuntu-24.04
97+ steps :
98+ - name : install dependencies
99+ run : |
100+ sudo apt-get update
101+ sudo apt-get install -y trace-cmd
102+
103+ - name : generate trace.dat sample data
104+ run : sudo trace-cmd record -C mono -e "sched:*" sleep 1
105+ - uses : actions/upload-artifact@v5
106+ with :
107+ name : trace-data
108+ path : trace.dat
You can’t perform that action at this time.
0 commit comments