Loading _build/deps-source/uftrace/ OK name: uftrace -- single version: 0.13 -- WEDGE_IS_ABSOLUTE wedge-make () { local src_dir=$1; local build_dir=$2; local install_dir=$3; local makefile=$src_dir/check-deps/Makefile.check; local py_version; py_version=$(python3 -V); if echo $py_version | egrep 'Python 3.[67]'; then echo; echo "*** PATCHING utrace $makefile because we detected $py_version"; echo; sed -i 's/--modversion)$/--modversion)m/' $makefile; local c_file=$src_dir/utils/script-python.c; sed -i 's/".so"/".so.1.0"/' $c_file; fi; if echo $py_version | egrep 'Python 3.11'; then local c_file=$src_dir/utils/script-python.c; sed -i 's/".so"/".so.1.0"/' $c_file; fi; pushd $build_dir; $src_dir/configure --help || true; echo; $src_dir/configure --prefix=$install_dir; echo; time make; popd } OK wedge-make wedge-install () { local build_dir=$1; pushd $build_dir; time make install; popd } OK wedge-install OK wedge-smoke-test Loaded _build/deps-source/uftrace/ SRC /home/runner/work/oils/oils/_build/deps-source/uftrace/uftrace-0.13 ~/work/oils/oils/_build/wedge/tmp/uftrace-0.13 ~/work/oils/oils ~/work/oils/oils/_build/wedge/tmp/uftrace-0.13 ~/work/oils/oils/_build/wedge/tmp/uftrace-0.13 ~/work/oils/oils Usage: /home/runner/work/oils/oils/_build/deps-source/uftrace/uftrace-0.13/configure [<options>] --help print this message --prefix=<DIR> set install root dir as <DIR> (default: /usr/local) --bindir=<DIR> set executable install dir as <DIR> (default: ${prefix}/bin) --libdir=<DIR> set library install dir as <DIR> (default: ${prefix}/lib) --mandir=<DIR> set manual doc install dir as <DIR> (default: ${prefix}/share/man) --objdir=<DIR> set build dir as <DIR> (default: ${PWD}) --sysconfdir=<DIR> override the etc dir as <DIR> --with-elfutils=<DIR> search for elfutils in <DIR>/include and <DIR>/lib --without-libelf build without libelf (and libdw) (even if found on the system) --without-libdw build without libdw (even if found on the system) --without-libstdc++ build without libstdc++ (even if found on the system) --without-libpython build without libpython (even if found on the system) --without-libluajit build without libluajit (even if found on the system) --without-libncurses build without libncursesw (even if found on the system) --without-libunwind build without libunwind (even if found on the system) --without-capstone build without libcapstone (even if found on the system) --without-perf build without perf event (even if available) --without-schedule build without scheduler event (even if available) --arch=<ARCH> set target architecture (default: system default arch) e.g. x86_64, aarch64, i386, or arm --cross-compile=<CROSS_COMPILE> Specify the compiler prefix during compilation e.g. CC is overridden by $(CROSS_COMPILE)gcc --cflags=<CFLAGS> pass extra C compiler flags --ldflags=<LDFLAGS> pass extra linker flags -p preserve old setting -o <NAME> output filename Some influential environment variables: ARCH Target architecture e.g. x86_64, aarch64, i386, or arm CROSS_COMPILE Specify the compiler prefix during compilation e.g. CC is overridden by $(CROSS_COMPILE)gcc CFLAGS C compiler flags LDFLAGS linker flags uftrace detected system features: ... prefix: /wedge/oils-for-unix.org/pkg/uftrace/0.13 ... libelf: [ OFF ] - more flexible ELF data handling ... libdw: [ OFF ] - DWARF debug info support ... libpython: [ OFF ] - python scripting support ... libluajit: [ OFF ] - luajit scripting support ... libncursesw: [ on ] - TUI support ... cxa_demangle: [ on ] - full demangler support with libstdc++ ... perf_event: [ on ] - perf (PMU) event support ... schedule: [ on ] - scheduler event support ... capstone: [ OFF ] - full dynamic tracing support ... libunwind: [ OFF ] - stacktrace support (optional for debugging) GEN version.h CC uftrace.o CC cmds/dump.o CC cmds/graph.o CC cmds/info.o CC cmds/live.o CC cmds/record.o CC cmds/recv.o CC cmds/replay.o CC cmds/report.o CC cmds/script.o CC cmds/tui.o CC utils/argspec.o CC utils/auto-args.o CC utils/data-file.o CC utils/debug.o CC utils/demangle.o CC utils/dwarf.o CC utils/event.o CC utils/extern.o CC utils/field.o CC utils/filter.o CC utils/fstack.o CC utils/graph.o CC utils/hashmap.o CC utils/kernel.o CC utils/pager.o CC utils/perf.o CC utils/rbtree.o CC utils/regs.o CC utils/report.o CC utils/script-luajit.o CC utils/script-python.o CC utils/script.o CC utils/session.o CC utils/socket.o CC utils/symbol-libelf.o CC utils/symbol-rawelf.o CC utils/symbol.o CC utils/tracefs.o CC utils/utils.o CC arch/x86_64/cpuinfo.o CC arch/x86_64/symbol.o LINK arch/x86_64/uftrace.o FLAGS: * new build flags or cross compiler CC FPIC libtraceevent/event-parse.o CC FPIC libtraceevent/event-plugin.o CC FPIC libtraceevent/trace-seq.o CC FPIC libtraceevent/parse-filter.o CC FPIC libtraceevent/parse-utils.o CC FPIC libtraceevent/kbuffer-parse.o LINK libtraceevent/libtraceevent.a LINK uftrace CC FPIC libmcount/dynamic.op CC FPIC libmcount/event.op CC FPIC libmcount/mcount.op CC FPIC libmcount/misc.op CC FPIC libmcount/plthook.op CC FPIC libmcount/pmu.op CC FPIC libmcount/record.op CC FPIC libmcount/wrap.op CC FPIC libmcount/debug.op CC FPIC libmcount/regs.op CC FPIC libmcount/rbtree.op CC FPIC libmcount/filter.op CC FPIC libmcount/demangle.op CC FPIC libmcount/utils.op CC FPIC libmcount/script.op CC FPIC libmcount/script-python.op CC FPIC libmcount/script-luajit.op CC FPIC libmcount/auto-args.op CC FPIC libmcount/dwarf.op CC FPIC libmcount/hashmap.op CC FPIC libmcount/argspec.op CC FPIC libmcount/tracefs.op CC FPIC libmcount/socket.op CC FPIC libmcount/symbol-libelf.op CC FPIC libmcount/symbol-rawelf.op CC FPIC libmcount/symbol.op ASM arch/x86_64/dynamic.op ASM arch/x86_64/fentry.op ASM arch/x86_64/mcount.op ASM arch/x86_64/plthook.op ASM arch/x86_64/xray.op CC FPIC arch/x86_64/mcount-dynamic.op CC FPIC arch/x86_64/mcount-event.op CC FPIC arch/x86_64/mcount-insn.op CC FPIC arch/x86_64/mcount-noplt.op CC FPIC arch/x86_64/mcount-support.op CC FPIC arch/x86_64/symbol.op LINK arch/x86_64/mcount-entry.op LINK libmcount/libmcount.so CC FPIC libmcount/dynamic-fast.op CC FPIC libmcount/event-fast.op CC FPIC libmcount/mcount-fast.op CC FPIC libmcount/misc-fast.op CC FPIC libmcount/plthook-fast.op CC FPIC libmcount/pmu-fast.op CC FPIC libmcount/record-fast.op CC FPIC libmcount/wrap-fast.op LINK libmcount/libmcount-fast.so CC FPIC libmcount/dynamic-single.op CC FPIC libmcount/event-single.op CC FPIC libmcount/mcount-single.op CC FPIC libmcount/misc-single.op CC FPIC libmcount/plthook-single.op CC FPIC libmcount/pmu-single.op CC FPIC libmcount/record-single.op CC FPIC libmcount/wrap-single.op LINK libmcount/libmcount-single.so CC FPIC libmcount/dynamic-fast-single.op CC FPIC libmcount/event-fast-single.op CC FPIC libmcount/mcount-fast-single.op CC FPIC libmcount/misc-fast-single.op CC FPIC libmcount/plthook-fast-single.op CC FPIC libmcount/pmu-fast-single.op CC FPIC libmcount/record-fast-single.op CC FPIC libmcount/wrap-fast-single.op LINK libmcount/libmcount-fast-single.so CC FPIC libmcount/mcount-nop.op LINK libmcount/libmcount-nop.so CC misc/demangler.o LINK misc/demangler CC misc/symbols.o LINK misc/symbols CC misc/dbginfo.o LINK misc/dbginfo real 0m39.710s user 0m28.286s sys 0m2.927s ~/work/oils/oils/_build/wedge/tmp/uftrace-0.13 ~/work/oils/oils ~/work/oils/oils Loading _build/deps-source/uftrace/ OK name: uftrace -- single version: 0.13 -- WEDGE_IS_ABSOLUTE wedge-make () { local src_dir=$1; local build_dir=$2; local install_dir=$3; local makefile=$src_dir/check-deps/Makefile.check; local py_version; py_version=$(python3 -V); if echo $py_version | egrep 'Python 3.[67]'; then echo; echo "*** PATCHING utrace $makefile because we detected $py_version"; echo; sed -i 's/--modversion)$/--modversion)m/' $makefile; local c_file=$src_dir/utils/script-python.c; sed -i 's/".so"/".so.1.0"/' $c_file; fi; if echo $py_version | egrep 'Python 3.11'; then local c_file=$src_dir/utils/script-python.c; sed -i 's/".so"/".so.1.0"/' $c_file; fi; pushd $build_dir; $src_dir/configure --help || true; echo; $src_dir/configure --prefix=$install_dir; echo; time make; popd } OK wedge-make wedge-install () { local build_dir=$1; pushd $build_dir; time make install; popd } OK wedge-install OK wedge-smoke-test Loaded _build/deps-source/uftrace/ /home/runner/work/oils/oils/_build/wedge/tmp/uftrace-0.13 /home/runner/work/oils/oils CC uftrace.o LINK uftrace INSTALL uftrace INSTALL libmcount INSTALL bash-completion Makefile:36: To install man pages, please install 'pandoc'. real 0m1.593s user 0m0.534s sys 0m0.108s /home/runner/work/oils/oils Loading _build/deps-source/uftrace/ OK name: uftrace -- single version: 0.13 -- WEDGE_IS_ABSOLUTE wedge-make () { local src_dir=$1; local build_dir=$2; local install_dir=$3; local makefile=$src_dir/check-deps/Makefile.check; local py_version; py_version=$(python3 -V); if echo $py_version | egrep 'Python 3.[67]'; then echo; echo "*** PATCHING utrace $makefile because we detected $py_version"; echo; sed -i 's/--modversion)$/--modversion)m/' $makefile; local c_file=$src_dir/utils/script-python.c; sed -i 's/".so"/".so.1.0"/' $c_file; fi; if echo $py_version | egrep 'Python 3.11'; then local c_file=$src_dir/utils/script-python.c; sed -i 's/".so"/".so.1.0"/' $c_file; fi; pushd $build_dir; $src_dir/configure --help || true; echo; $src_dir/configure --prefix=$install_dir; echo; time make; popd } OK wedge-make wedge-install () { local build_dir=$1; pushd $build_dir; time make install; popd } OK wedge-install OK wedge-smoke-test Loaded _build/deps-source/uftrace/ SMOKE TEST ~/work/oils/oils/_build/wedge/smoke-test/uftrace-0.13 ~/work/oils/oils + wedge-smoke-test /wedge/oils-for-unix.org/pkg/uftrace/0.13 /home/runner/work/oils/oils/_build/deps-source/uftrace/ + local install_dir=/wedge/oils-for-unix.org/pkg/uftrace/0.13 + local wedge_dir=/home/runner/work/oils/oils/_build/deps-source/uftrace/ + local uftrace=/wedge/oils-for-unix.org/pkg/uftrace/0.13/bin/uftrace + tee version.txt + /wedge/oils-for-unix.org/pkg/uftrace/0.13/bin/uftrace --version uftrace v0.13 ( x86_64 python3 tui perf sched ) + grep python3 version.txt uftrace v0.13 ( x86_64 python3 tui perf sched ) + echo 'Python 3 support found' Python 3 support found + cc -pg -o hello /home/runner/work/oils/oils/_build/deps-source/uftrace//hello.c + /wedge/oils-for-unix.org/pkg/uftrace/0.13/bin/uftrace record hello Hello world + /wedge/oils-for-unix.org/pkg/uftrace/0.13/bin/uftrace replay hello # DURATION TID FUNCTION 0.861 us [ 66183] | __monstartup(); 0.170 us [ 66183] | __cxa_atexit(); [ 66183] | main() { 13.826 us [ 66183] | printf(); 14.226 us [ 66183] | } /* main */ + /wedge/oils-for-unix.org/pkg/uftrace/0.13/bin/uftrace script -S /home/runner/work/oils/oils/_build/deps-source/uftrace//plugin.py script begin {'record': False, 'version': 'v0.13 ( x86_64 python3 tui perf sched )', 'cmds': ()} function entry {'tid': 66183, 'depth': 0, 'timestamp': 495909595157, 'address': 94918654083232, 'name': '__monstartup'} function exit {'tid': 66183, 'depth': 0, 'timestamp': 495909596018, 'address': 94918654083232, 'name': '__monstartup', 'duration': 861} function entry {'tid': 66183, 'depth': 0, 'timestamp': 495909596920, 'address': 94918654083248, 'name': '__cxa_atexit'} function exit {'tid': 66183, 'depth': 0, 'timestamp': 495909597090, 'address': 94918654083248, 'name': '__cxa_atexit', 'duration': 170} function entry {'tid': 66183, 'depth': 0, 'timestamp': 495909598453, 'address': 94918654083607, 'name': 'main'} function entry {'tid': 66183, 'depth': 1, 'timestamp': 495909598573, 'address': 94918654083216, 'name': 'printf'} function exit {'tid': 66183, 'depth': 1, 'timestamp': 495909612399, 'address': 94918654083216, 'name': 'printf', 'duration': 13826} function exit {'tid': 66183, 'depth': 0, 'timestamp': 495909612679, 'address': 94918654083607, 'name': 'main', 'duration': 14226} TypeError: uftrace_end() missing 1 required positional argument: 'ctx' + set +x ~/work/oils/oils OK