diff options
author | Pablo Saavedra <psaavedra@igalia.com> | 2025-09-04 13:42:33 +0200 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2025-09-04 10:51:14 -0700 |
commit | 7856922e5ebede9bf41ff4a38065c8aeccaef51d (patch) | |
tree | b24a6864b4aa0072eb3d7084dd9ed12592443531 | |
parent | 6485fad19084dc2c3fcb9fbb7e00ab955d110999 (diff) | |
download | meta-openembedded-7856922e5ebede9bf41ff4a38065c8aeccaef51d.tar.gz |
sysprof: upgrade 48.0 -> 48.1
Changes:
* libsysprof-capture: Clean ring buffer memory for counters
Also:
* Make elf loader search for debug links in .debug dirs
Signed-off-by: Pablo Saavedra <psaavedra@igalia.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | meta-gnome/recipes-gnome/sysprof/sysprof/0001-meson-Check-for-libunwind-instead-of-libunwind-gener.patch | 8 | ||||
-rw-r--r-- | meta-gnome/recipes-gnome/sysprof/sysprof/0002-meson-Do-not-invoke-the-commands-to-update-the-icon-.patch | 6 | ||||
-rw-r--r-- | meta-gnome/recipes-gnome/sysprof/sysprof/0003-libsysprof-Check-for-unw_set_caching_policy-before-u.patch | 2 | ||||
-rw-r--r-- | meta-gnome/recipes-gnome/sysprof/sysprof/0005-Make-elf-loader-search-for-debug-links-in-.debug-dir.patch | 47 | ||||
-rw-r--r-- | meta-gnome/recipes-gnome/sysprof/sysprof_48.1.bb (renamed from meta-gnome/recipes-gnome/sysprof/sysprof_48.0.bb) | 3 |
5 files changed, 57 insertions, 9 deletions
diff --git a/meta-gnome/recipes-gnome/sysprof/sysprof/0001-meson-Check-for-libunwind-instead-of-libunwind-gener.patch b/meta-gnome/recipes-gnome/sysprof/sysprof/0001-meson-Check-for-libunwind-instead-of-libunwind-gener.patch index 5bdc55b3a5..3d78e188b5 100644 --- a/meta-gnome/recipes-gnome/sysprof/sysprof/0001-meson-Check-for-libunwind-instead-of-libunwind-gener.patch +++ b/meta-gnome/recipes-gnome/sysprof/sysprof/0001-meson-Check-for-libunwind-instead-of-libunwind-gener.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 36fbd12df9258972f8ff1fbb24506f12751178eb Mon Sep 17 00:00:00 2001 | 1 | From 3d547c043f772fe1352c7beb0e3331e35c77e63e Mon Sep 17 00:00:00 2001 |
2 | From: Pablo Saavedra <psaavedra@igalia.com> | 2 | From: Pablo Saavedra <psaavedra@igalia.com> |
3 | Date: Mon, 11 Nov 2024 13:05:15 +0100 | 3 | Date: Mon, 11 Nov 2024 13:05:15 +0100 |
4 | Subject: [PATCH] meson: Check for libunwind instead of libunwind-generic | 4 | Subject: [PATCH] meson: Check for libunwind instead of libunwind-generic |
@@ -18,11 +18,11 @@ Signed-off-by: Pablo Saavedra <psaavedra@igalia.com> | |||
18 | 1 file changed, 1 insertion(+), 1 deletion(-) | 18 | 1 file changed, 1 insertion(+), 1 deletion(-) |
19 | 19 | ||
20 | diff --git a/meson.build b/meson.build | 20 | diff --git a/meson.build b/meson.build |
21 | index 23fcea8..3d3feca 100644 | 21 | index 3907354..783f558 100644 |
22 | --- a/meson.build | 22 | --- a/meson.build |
23 | +++ b/meson.build | 23 | +++ b/meson.build |
24 | @@ -110,7 +110,7 @@ polkit_dep = dependency('polkit-gobject-1', version: polkit_req_version, require | 24 | @@ -114,7 +114,7 @@ if cc.has_header('asm/perf_regs.h') |
25 | config_h.set10('HAVE_POLKIT', polkit_dep.found()) | 25 | endif |
26 | 26 | ||
27 | if need_libsysprof | 27 | if need_libsysprof |
28 | - libunwind_dep = dependency('libunwind-generic', required: true) | 28 | - libunwind_dep = dependency('libunwind-generic', required: true) |
diff --git a/meta-gnome/recipes-gnome/sysprof/sysprof/0002-meson-Do-not-invoke-the-commands-to-update-the-icon-.patch b/meta-gnome/recipes-gnome/sysprof/sysprof/0002-meson-Do-not-invoke-the-commands-to-update-the-icon-.patch index 6ed04eefac..61c75f08b4 100644 --- a/meta-gnome/recipes-gnome/sysprof/sysprof/0002-meson-Do-not-invoke-the-commands-to-update-the-icon-.patch +++ b/meta-gnome/recipes-gnome/sysprof/sysprof/0002-meson-Do-not-invoke-the-commands-to-update-the-icon-.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From ef2cb850bc24d57ddf3641cb1ba202a657422c66 Mon Sep 17 00:00:00 2001 | 1 | From 58619c59e72c796aa2686bc6ffbfa07a23dbc14d Mon Sep 17 00:00:00 2001 |
2 | From: Carlos Alberto Lopez Perez <clopez@igalia.com> | 2 | From: Carlos Alberto Lopez Perez <clopez@igalia.com> |
3 | Date: Wed, 24 Jul 2024 15:51:05 +0100 | 3 | Date: Wed, 24 Jul 2024 15:51:05 +0100 |
4 | Subject: [PATCH] meson: Do not invoke the commands to update the icon caches | 4 | Subject: [PATCH] meson: Do not invoke the commands to update the icon caches |
@@ -15,10 +15,10 @@ Signed-off-by: Carlos Alberto Lopez Perez <clopez@igalia.com> | |||
15 | 1 file changed, 1 insertion(+), 1 deletion(-) | 15 | 1 file changed, 1 insertion(+), 1 deletion(-) |
16 | 16 | ||
17 | diff --git a/meson.build b/meson.build | 17 | diff --git a/meson.build b/meson.build |
18 | index 3d3feca..8da9b5f 100644 | 18 | index 783f558..8775fe6 100644 |
19 | --- a/meson.build | 19 | --- a/meson.build |
20 | +++ b/meson.build | 20 | +++ b/meson.build |
21 | @@ -272,7 +272,7 @@ configure_file( | 21 | @@ -276,7 +276,7 @@ configure_file( |
22 | configuration: config_h | 22 | configuration: config_h |
23 | ) | 23 | ) |
24 | 24 | ||
diff --git a/meta-gnome/recipes-gnome/sysprof/sysprof/0003-libsysprof-Check-for-unw_set_caching_policy-before-u.patch b/meta-gnome/recipes-gnome/sysprof/sysprof/0003-libsysprof-Check-for-unw_set_caching_policy-before-u.patch index 60592bde4f..0f3703457d 100644 --- a/meta-gnome/recipes-gnome/sysprof/sysprof/0003-libsysprof-Check-for-unw_set_caching_policy-before-u.patch +++ b/meta-gnome/recipes-gnome/sysprof/sysprof/0003-libsysprof-Check-for-unw_set_caching_policy-before-u.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 5a2b4cdbc7f0a329245066c849592fe310bdefd7 Mon Sep 17 00:00:00 2001 | 1 | From 219920476d7b23370bfb456ee4ac1cf9b21479c6 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Thu, 25 Jul 2024 20:18:17 -0700 | 3 | Date: Thu, 25 Jul 2024 20:18:17 -0700 |
4 | Subject: [PATCH] libsysprof: Check for unw_set_caching_policy before using | 4 | Subject: [PATCH] libsysprof: Check for unw_set_caching_policy before using |
diff --git a/meta-gnome/recipes-gnome/sysprof/sysprof/0005-Make-elf-loader-search-for-debug-links-in-.debug-dir.patch b/meta-gnome/recipes-gnome/sysprof/sysprof/0005-Make-elf-loader-search-for-debug-links-in-.debug-dir.patch new file mode 100644 index 0000000000..bd7305d77d --- /dev/null +++ b/meta-gnome/recipes-gnome/sysprof/sysprof/0005-Make-elf-loader-search-for-debug-links-in-.debug-dir.patch | |||
@@ -0,0 +1,47 @@ | |||
1 | From 9c35912dba0597a241e9af4fe5c87bfc0931c46c Mon Sep 17 00:00:00 2001 | ||
2 | From: Pawel Lampe <plampe@igalia.com> | ||
3 | Date: Fri, 16 May 2025 14:31:29 +0200 | ||
4 | Subject: [PATCH] Make elf loader search for debug links in .debug dirs | ||
5 | |||
6 | When the distribution is built using yocto project, it's possible | ||
7 | to specify 'dbg-pkgs' image feature, see: | ||
8 | https://docs.yoctoproject.org/dev/ref-manual/features.html | ||
9 | This image feature makes files with package debug symbols being | ||
10 | placed under .debug directories accompanying the original binary | ||
11 | directories and mentioned in the .gnu_debuglink of the original binary. | ||
12 | Effectively the symbols of e.g. /x/y/libz.so will be placed in | ||
13 | /x/y/.debug/libz.so. | ||
14 | |||
15 | This change makes sysprof's elf loader to search for debug links | ||
16 | in such a .debug directories. | ||
17 | |||
18 | Upstream-Status: Backport [https://gitlab.gnome.org/GNOME/sysprof/-/merge_requests/140] | ||
19 | --- | ||
20 | src/libsysprof/sysprof-elf-loader.c | 7 +++++++ | ||
21 | 1 file changed, 7 insertions(+) | ||
22 | |||
23 | diff --git a/src/libsysprof/sysprof-elf-loader.c b/src/libsysprof/sysprof-elf-loader.c | ||
24 | index 2e52e26..e0b4089 100644 | ||
25 | --- a/src/libsysprof/sysprof-elf-loader.c | ||
26 | +++ b/src/libsysprof/sysprof-elf-loader.c | ||
27 | @@ -336,6 +336,7 @@ sysprof_elf_loader_annotate (SysprofElfLoader *self, | ||
28 | g_autofree char *directory_name = NULL; | ||
29 | g_autofree char *debug_path = NULL; | ||
30 | g_autofree char *short_debug_path = NULL; | ||
31 | + g_autofree char *shorter_debug_path = NULL; | ||
32 | const char *short_directory_name; | ||
33 | const char *debug_dir = self->debug_dirs[i]; | ||
34 | const char *build_id; | ||
35 | @@ -360,6 +361,12 @@ sysprof_elf_loader_annotate (SysprofElfLoader *self, | ||
36 | sysprof_elf_set_debug_link_elf (elf, get_deepest_debuglink (debug_link_elf)); | ||
37 | return; | ||
38 | } | ||
39 | + shorter_debug_path = g_build_filename (directory_name, ".debug", debug_link, NULL); | ||
40 | + if ((debug_link_elf = sysprof_elf_loader_load (self, mount_namespace, shorter_debug_path, build_id, 0, NULL))) | ||
41 | + { | ||
42 | + sysprof_elf_set_debug_link_elf (elf, get_deepest_debuglink (debug_link_elf)); | ||
43 | + return; | ||
44 | + } | ||
45 | } | ||
46 | } | ||
47 | |||
diff --git a/meta-gnome/recipes-gnome/sysprof/sysprof_48.0.bb b/meta-gnome/recipes-gnome/sysprof/sysprof_48.1.bb index 968b5d8e14..145c0bfe38 100644 --- a/meta-gnome/recipes-gnome/sysprof/sysprof_48.0.bb +++ b/meta-gnome/recipes-gnome/sysprof/sysprof_48.1.bb | |||
@@ -21,8 +21,9 @@ SRC_URI += "file://0001-meson-Check-for-libunwind-instead-of-libunwind-gener.pat | |||
21 | file://0002-meson-Do-not-invoke-the-commands-to-update-the-icon-.patch \ | 21 | file://0002-meson-Do-not-invoke-the-commands-to-update-the-icon-.patch \ |
22 | file://0003-libsysprof-Check-for-unw_set_caching_policy-before-u.patch \ | 22 | file://0003-libsysprof-Check-for-unw_set_caching_policy-before-u.patch \ |
23 | file://0004-sysprof-greeter-fix-environ-with-shadowing.patch \ | 23 | file://0004-sysprof-greeter-fix-environ-with-shadowing.patch \ |
24 | file://0005-Make-elf-loader-search-for-debug-links-in-.debug-dir.patch \ | ||
24 | " | 25 | " |
25 | SRC_URI[archive.sha256sum] = "1b0f0380f2f30708ba87829321a06fee1db36dfa87797bbf07f0a7acf4498d18" | 26 | SRC_URI[archive.sha256sum] = "54f157fdfef1edf1e2f22e542c462d90e1c21fca8c30eba4127cee739039bbe2" |
26 | 27 | ||
27 | # reason: gtk4 requires opengl distro feature | 28 | # reason: gtk4 requires opengl distro feature |
28 | REQUIRED_DISTRO_FEATURES = "${@bb.utils.contains('PACKAGECONFIG', 'gtk', 'opengl', '', d)}" | 29 | REQUIRED_DISTRO_FEATURES = "${@bb.utils.contains('PACKAGECONFIG', 'gtk', 'opengl', '', d)}" |