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 [] --help print this message --prefix= set install root dir as (default: /usr/local) --bindir= set executable install dir as (default: ${prefix}/bin) --libdir= set library install dir as (default: ${prefix}/lib) --mandir= set manual doc install dir as (default: ${prefix}/share/man) --objdir= set build dir as (default: ${PWD}) --sysconfdir= override the etc dir as --with-elfutils= search for elfutils in /include and /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= set target architecture (default: system default arch) 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= pass extra C compiler flags --ldflags= pass extra linker flags -p preserve old setting -o 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 0m30.494s user 0m25.013s sys 0m2.746s ~/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 0m0.409s user 0m0.328s sys 0m0.079s /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 + /wedge/oils-for-unix.org/pkg/uftrace/0.13/bin/uftrace --version + tee version.txt 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.421 us [ 71400] | __monstartup(); 0.130 us [ 71400] | __cxa_atexit(); [ 71400] | main() { 8.035 us [ 71400] | printf(); 8.627 us [ 71400] | } /* 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': 71400, 'depth': 0, 'timestamp': 629585649278, 'address': 94541564911776, 'name': '__monstartup'} function exit {'tid': 71400, 'depth': 0, 'timestamp': 629585649699, 'address': 94541564911776, 'name': '__monstartup', 'duration': 421} function entry {'tid': 71400, 'depth': 0, 'timestamp': 629585650661, 'address': 94541564911792, 'name': '__cxa_atexit'} function exit {'tid': 71400, 'depth': 0, 'timestamp': 629585650791, 'address': 94541564911792, 'name': '__cxa_atexit', 'duration': 130} function entry {'tid': 71400, 'depth': 0, 'timestamp': 629585652203, 'address': 94541564912151, 'name': 'main'} function entry {'tid': 71400, 'depth': 1, 'timestamp': 629585652444, 'address': 94541564911760, 'name': 'printf'} function exit {'tid': 71400, 'depth': 1, 'timestamp': 629585660479, 'address': 94541564911760, 'name': 'printf', 'duration': 8035} function exit {'tid': 71400, 'depth': 0, 'timestamp': 629585660830, 'address': 94541564912151, 'name': 'main', 'duration': 8627} TypeError: uftrace_end() missing 1 required positional argument: 'ctx' + set +x ~/work/oils/oils OK