File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Expand file tree Collapse file tree 1 file changed +33
-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+ path : ${{ github.workspace }}/build
85+
86+ - name : smoke test
87+ env :
88+ BABELTRACE_PLUGIN_PATH : ${{ github.workspace }}/build
89+ run : |
90+ find ${{ github.workspace }}/build
91+ apt-get install -y babeltrace2 jq
92+ babeltrace2 trace.dat
93+ babeltrace2 --component=meta:sink.ftrace.tracemeta trace.dat | jq
94+ mkdir -p /tmp/traceout
95+ ./ftrace-to-ctf --lttng trace.dat /tmp/traceout
96+
97+ generate-trace-data :
98+ runs-on : ubuntu-24.04
99+ steps :
100+ - name : install dependencies
101+ run : |
102+ sudo apt-get update
103+ sudo apt-get install -y trace-cmd
104+
105+ - name : generate trace.dat sample data
106+ run : sudo trace-cmd record -C mono -e "sched:*" sleep 1
107+ - uses : actions/upload-artifact@v5
108+ with :
109+ name : trace-data
110+ path : trace.dat
You can’t perform that action at this time.
0 commit comments