Commit Graph

34 Commits

Author SHA1 Message Date
Wang Mingyu
defe860c3b
uftrace: upgrade 0.18 -> 0.18.1
0001-build-Fix-a-build-error-on-i386.patch
removed since it's included in 0.18.1

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-07-30 16:40:03 -07:00
Liu Yiding
ffda36150c
uftrace: fix issue that actually not install
1. "oe_runmake DESTDIR=${D} install" will actually install to ${D},
"oe_runmake DESTDIR=${D}" will skip install, ${D} is empty

2. fix issue that:
| ERROR: uftrace-0.18-r0 do_package: QA Issue: File '/usr/lib/libelf.so' from
| uftrace was already stripped, this will prevent future debugging! [already-stripped]

we have set to use sysroot libelf in do_configure with "--with-elfutils=${STAGING_EXECPREFIXDIR}",
here remove uftrace build libelf

Signed-off-by: Liu Yiding <liuyd.fnst@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-07-30 08:03:04 -07:00
Khem Raj
459a98c170
uftrace: Fix build failure on x86
Do not inherit autotools bbclass, the configure script is hand-written
and not a autoconf generated one.

Backport a fix to build on 32bit x86
Fixes
| i686-yoe-linux-ld.lld: error: undefined symbol: uftrace_arch_ops
| >>> referenced by symbol.c:586 (utils/symbol.c:586)
| >>>               /mnt/b/yoe/master/build/tmp/work/core2-32-yoe-linux/uftrace/0.18/sources/uftrace-0.18/libmcount/symbol.op:(load_elf_dynsymtab)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-07-16 15:42:59 -07:00
Wang Mingyu
c7e2e1e3ec
uftrace: upgrade 0.17 -> 0.18
Changelog:
===========
- symbol: Fix uninitialized 'sec_iter' in the 'arch_load_dynsymtab_noplt'
- graph: -f total-avg,self-avg,total-max,total-min,self-max,self-min in tui,cmds
- test: exclude system_initialize_function in t295 and t296 using filter option
- record: Add shmem directory to exec permission
- misc: Support Rocky Linux 9 in install-deps parts
- tests: Fix s-thread.c and s-exp-mixed.c tests from clang

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-07-16 08:52:07 -07:00
Alexander Kanavin
fc78d37ff0
meta-openembedded/all: adapt to UNPACKDIR changes
Please see
https://git.yoctoproject.org/poky/commit/?id=4dd321f8b83afecd962393101b2a6861275b5265
for what changes are needed, and sed commands that can be used to make them en masse.

I've verified that bitbake -c patch world works with these, but did not run a world
build; the majority of recipes shouldn't need further fixups, but if there are
some that still fall out, they can be fixed in followups.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-06-25 06:44:52 -07:00
Wang Mingyu
6b96d4062d uftrace: upgrade 0.16 -> 0.17
Changelog:
===========
* New features
  Support watchpoint for global variables
  Show man pages for the given command
  Add utc_offset in the header info

* Bug fixes
  Show arguments in libraries from dlopen
  Save debug info for libraries from dlopen
  Protect FD of communication channel from being closed

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-12-24 08:23:09 -08:00
Wang Mingyu
86a78344c8
uftrace: upgrade 0.15.2 -> 0.16
Changelog:
==========
- build: Add -mno-sse to fix i386 build
- build: Fix build failure on RHEL 7
- mcount: Fix a compiler warning on PAGE_SIZE
- fix: #1858 by changing the wrong logic in update_dbg_info
- ci: Fix ci warning on GitHub Acitons
- slide: Add tensorflow and keras tracing example
- python: Fix GC isn't working correctly.
- replay: Support a new argument format for octal values
- build: Fix compiler warnings
- Fix Python SyntaxWarning on invalid escape sequence in the tests scripts
- utils: Lower the debug level after dwfl_module_getdwarf
- wrap: Do not print "dlopen is called for '(null)'"
- Support standard deviation(STDDEV) in report output
- dwarf: Close file descriptors in setup_dwarf_info()

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-05-02 07:32:54 -07:00
Khem Raj
6f4ed3a094
uftrace: Fix build with musl >= 1.2.5
The famous basename API fallout

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-03-25 18:52:52 -07:00
Khem Raj
dea8afa45e
uftrace: Adjust the summary to reflect rust and python support
Suggested-by: Paran Lee
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-01-27 12:10:01 -08:00
Khem Raj
d441057a05
uftrace: Upgrade to 0.15.2
Added RISCV64 support

Release Notes [1]

[1] https://github.com/namhyung/uftrace/releases/tag/v0.15.2

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-01-27 09:47:41 -08:00
Khem Raj
4252e49ff2 uftrace: upgrade 0.13.1 -> 0.14
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-11-06 08:47:16 -08:00
Wang Mingyu
9074dd9b34 uftrace: upgrade 0.13 -> 0.13.1
0001-build-Fix-a-build-race-related-to-utils-mermaid.html.patch
removed since it's included in 0.13.1

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-02-22 01:03:38 -08:00
Khem Raj
e95aca9bd0 uftreace: Fix a build race
Fixes a build race seen after 0.13 upgrade

| /home/pokybuild/yocto-worker/meta-oe/build/build/tmp/work/core2-64-poky-linux/uftrace/0.13-r0/git/cmds/dump.c: In function 'dump_mermaid_footer':
| /home/pokybuild/yocto-worker/meta-oe/build/build/tmp/work/core2-64-poky-linux/uftrace/0.13-r0/git/cmds/dump.c:1347:10: fatal error: utils/mermaid.html.cstr: No such file or directory
|  1347 | #include "utils/mermaid.html.cstr" /* This file is a converted of mermaid.html to one string literal in build-time */
|       |          ^~~~~~~~~~~~~~~~~~~~~~~~~
| compilation terminated.
| make[1]: *** [Makefile:310: /home/pokybuild/yocto-worker/meta-oe/build/build/tmp/work/core2-64-poky-linux/uftrace/0.13-r0/build/cmds/dump.o] Error 1

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-01-21 23:36:00 -08:00
Wang Mingyu
c8e5256382 uftrace: upgrade 0.12 -> 0.13
Changelog:
==========
* new options
  -L/--loc-filter option to filter by source location  (#1395)
  --mermaid option for uftrace dump  (#1511)
  --no-sched-preempt option to disable preempted schedule events  (#1587)

* new features
  make -Z/--size-filter option work in general  (#1600)
  optionally spawn a background agent to talk using a socket  (#1543)
  add "size" field for uftrace report  (#1495)

* bug fixes
  handle different tracefs mount points  (#1476)
  fix timestamp parsing for external data  (#1549)

* other changes
  add clang-format support
  change to use Github actions
  test both GCC and LLVM/clang  (#1523)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-01-17 01:05:53 -08:00
wangmy
1657160a1a uftrace: upgrade 0.11 -> 0.12
Changelog:
==========
 * support dynamic tracing with -fpatchable-function-entry
 * --clock option to use a different clock source

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-07-02 11:37:02 -04:00
Khem Raj
14c7d8a0d7 recipes: Update LICENSE variable to use SPDX license identifiers
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-03-04 17:41:45 -08:00
Oleksandr Kravchuk
a168765249 uftrace: update to 0.11
Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-12-13 08:09:25 -08:00
Richard Purdie
b402a3076f recipes: Update SRC_URI branch and protocols
This patch updates SRC_URIs using git to include branch=master if no branch is set
and also to use protocol=https for github urls as generated by the conversion script
in OE-Core.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-11-03 06:57:49 -07:00
Martin Jansa
c61dc077bb Convert to new override syntax
This is the result of automated script (0.9.1) conversion:

oe-core/scripts/contrib/convert-overrides.py .

converting the metadata to use ":" as the override character instead of "_".

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2021-08-03 10:21:25 -07:00
wangmy
ccacda40bc uftrace: upgrade 0.9.4 -> 0.10
0001-aarch64-Fix-a-plthook-crash-on-aarch64-with-binutils.patch
removed since it is removed in 0.10

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-05-28 06:55:33 -07:00
wangmy
54feab11a1 uftrace: Fix a plthook crash on aarch64 with binutils2.35.1 and later versions on aarch64
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-05-14 07:26:46 -07:00
wangmy
e1c894d687 uftrace: Fix error on aarch64 when binutils update to 2.35.1
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-04-15 09:28:44 -07:00
Honggyu Kim
2120240646 uftrace: add PV to update the package version
uftrace_0.9.4.bb now doesn't actually use exact 0.9.4 version, so it has
to add a PV value to update the package version.

Signed-off-by: Honggyu Kim <honggyu.kp@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-05-17 16:23:33 -07:00
Adrian Bunk
f60d1303bb uftrace: Fix PR
The latest update moved uftrace from a stable release
to a git snapshot.

Adjust PR accordingly.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-05-06 12:51:39 -07:00
Honggyu Kim
5098155437 uftrace: update commit hash to more robust version
Since uftrace-0.9.4 was released, there has been some important bug
fixes.  It would be better to include such bug fix commits so this patch
updates the commit hash to more stable one.

The bug fix patches are as follows:

[1] a0fbee404b
[2] 251ba74a72
[3] 19e6f0d4b3
[4] d648bbffed

Signed-off-by: Honggyu Kim <honggyu.kp@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-04-30 07:36:08 -07:00
Wang Mingyu
aa90c0920e uftrace: upgrade 0.9.3 -> 0.9.4
Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-02-21 14:21:52 -08:00
Zang Ruochen
dd76eb7d68 uftrace: upgrade 0.9.2 -> 0.9.3
-Upgrade from uftrace_0.9.2.bb to uftrace_0.9.3.bb.

Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-07-18 11:21:57 -07:00
Khem Raj
88c6c00c0c uftrace: Upgrade to 0.9.2
Drop pathes which are upstreamed

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-03-03 14:00:26 -08:00
leimaohui
1262533bd1 uftrace: Support armeb.
Signed-off-by: Lei Maohui <leimaohui@cn.fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-02-22 18:14:52 -08:00
André Draszik
e219649594 meta-oe: remove True option to getVar calls (again)
A couple have still been missed in the past despite multiple
attempts at doing so (or simply have re-appeared?).

Search & replace made using the following command:
    sed -e 's|\(d\.getVar \?\)( \?\([^,()]*\), \?True)|\1(\2)|g' \
        -i $(git grep -E 'getVar ?\( ?([^,()]*), ?True\)' \
             | cut -d':' -f1 \
             | sort -u)

Signed-off-by: André Draszik <andre.draszik@jci.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-01-13 10:28:01 -08:00
Yi-Soo An
3cb2263938 uftrace: Support x86
If TARGET_ARCH is not set to i386 for x86, build will be failed
with logs such as "arch/i586: No such file or directory".
In this case, TARGET_ARCH is set to i586.

To succeed the build, add additional function named set_target_arch.

Signed-off-by: Yi-Soo An <yisooan@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-11-01 10:04:54 -07:00
Khem Raj
973578148d uftrace: Upgrade to 0.8.3
* Deliberately provide a non existing path to with_elfutils so it does
  not copy libelf.so into its staged install and become a provider for
  that library while elfutils should be the legit provider and this
  package should just list it in its rdeps

* Fix build with musl

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-09-09 10:46:29 -07:00
Changhyeok Bae
1f6c0f6fd5 uftrace: update version to 0.8
Two patches are applied in upstream (v0.8)

Major release features
 * event tracing support
 * python scripting support
 * nested libcall tracing

Signed-off-by: Changhyeok Bae <changhyeok.bae@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-10-04 14:53:26 +00:00
Changhyeok Bae
d6a1c0e7b7 uftrace: add recipe
- Add recipe for uftrace v0.7.
- Support x86_64, arm (v6 or later), and aarch64.
- Disable for armv4 and armv5 in arm architecture which is only
  supported armv6 or later.
- Attached 2 patches is merged to upstream.

Signed-off-by: Changhyeok Bae <changhyeok.bae@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-07-24 18:57:37 +02:00