diff options
| author | Andreas Müller <schnitzeltony@gmail.com> | 2020-06-01 23:45:15 +0200 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2020-06-03 15:15:43 -0700 |
| commit | 9c2ec3d81b994e43066ef67580ef466b09625802 (patch) | |
| tree | 907b56e4e53a3276351af7e59c71c362610a0785 /meta-gnome/recipes-kernel/sysprof | |
| parent | 86e8c35f115e28f6359442fa2580e25deb7832e7 (diff) | |
| download | meta-openembedded-9c2ec3d81b994e43066ef67580ef466b09625802.tar.gz | |
sysprof: upgrade 3.34.1 -> 3.36.0
* Move recipe recipes-kernel -> recipes-gnome
* 0001-libsysprof-ui-Rename-environ-to-sys_environ.patch can go: upstream did
raname variable differently
* We can build help files these days
* reworder patches / recipe cleanup
Overview of changes in Sysprof 3.36.0
=====================================
* Preload library has been moved to $libdir from $libexecdir
* Build system improvements
* Fix whole-system capture setting when using "Record Again" feature
* New SysprofCollector interfaces for samples, marks, and logs to
sit alongside allocations
* Translation updates
Overview of changes in Sysprof 3.35.92
======================================
* A new profiler for tracking memory allocations within processes
that are spawned by Sysprof. Select "Track Allocations" to use
an LD_PRELOAD module which monitors allocations within the target
process. A callgraph is provided with allocations and their stack
traces. This brings the main features of the venerable "Memprof"
into Sysprof.
* Port Sysprof to work on RHEL 7
* Improvements to marks and counters displays
* A new data frame in libsysprof-capture for memory allocations
with stack traces.
* sysprof-cli --merge can now be used to merge multiple syscap
files together.
* sysprof <program-path> can now be used to open Sysprof directly
to a program to execute.
* Sysprof now builds with additional security protections and
optimization flags such as -Bsymbolic, -Wl,-z,defs, -Wl,-z,now,
and -Wl,-z,relro.
* Fixes for macOS
* The ELF symbol resolver is faster
* sysprof-cli now properly adds supplemental information to the
capture file such as decoded symbols. This makes sharing syscap
files across machines easier and more reliable.
* A new mmap()'d ring buffer can be shared between processes for
faster data transfer to sysprof. We expect more features around
this SysprofCollector interface in future releases.
* A new set if icons has been provided for the collectors
* Translation updates
Overview of changes in Sysprof 3.35.2
=====================================
* Build and test fixes
* Track changes to gdbus-codegen
* Include additional pkg-config variable for access to D-Bus data
* Translation updates
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-gnome/recipes-kernel/sysprof')
4 files changed, 0 insertions, 177 deletions
diff --git a/meta-gnome/recipes-kernel/sysprof/files/0001-libsysprof-ui-Rename-environ-to-sys_environ.patch b/meta-gnome/recipes-kernel/sysprof/files/0001-libsysprof-ui-Rename-environ-to-sys_environ.patch deleted file mode 100644 index 1e2b3c92b4..0000000000 --- a/meta-gnome/recipes-kernel/sysprof/files/0001-libsysprof-ui-Rename-environ-to-sys_environ.patch +++ /dev/null | |||
| @@ -1,63 +0,0 @@ | |||
| 1 | From 4bd0d5d5dd6841fbac8385527617d18e7731244d Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Wed, 15 Jan 2020 13:17:58 -0800 | ||
| 4 | Subject: [PATCH] libsysprof-ui: Rename environ to sys_environ | ||
| 5 | |||
| 6 | This helps avoid namesapace conflict with glibc headers | ||
| 7 | |||
| 8 | Fixes | ||
| 9 | /usr/include/unistd.h:545:15: note: previous declaration is here | ||
| 10 | |||
| 11 | extern char **environ; | ||
| 12 | |||
| 13 | Upstream-Status: Pending | ||
| 14 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 15 | --- | ||
| 16 | src/libsysprof-ui/sysprof-profiler-assistant.c | 10 +++++----- | ||
| 17 | 1 file changed, 5 insertions(+), 5 deletions(-) | ||
| 18 | |||
| 19 | diff --git a/src/libsysprof-ui/sysprof-profiler-assistant.c b/src/libsysprof-ui/sysprof-profiler-assistant.c | ||
| 20 | index 22e3e24..c55d551 100644 | ||
| 21 | --- a/src/libsysprof-ui/sysprof-profiler-assistant.c | ||
| 22 | +++ b/src/libsysprof-ui/sysprof-profiler-assistant.c | ||
| 23 | @@ -235,7 +235,7 @@ sysprof_profiler_assistant_record_clicked_cb (SysprofProfilerAssistant *self, | ||
| 24 | { | ||
| 25 | g_auto(GStrv) argv = NULL; | ||
| 26 | g_auto(GStrv) env = NULL; | ||
| 27 | - SysprofEnviron *environ; | ||
| 28 | + SysprofEnviron *sys_environ; | ||
| 29 | const gchar *command; | ||
| 30 | gint argc; | ||
| 31 | |||
| 32 | @@ -245,8 +245,8 @@ sysprof_profiler_assistant_record_clicked_cb (SysprofProfilerAssistant *self, | ||
| 33 | sysprof_profiler_set_spawn (profiler, TRUE); | ||
| 34 | sysprof_profiler_set_spawn_argv (profiler, (const gchar * const *)argv); | ||
| 35 | |||
| 36 | - environ = sysprof_environ_editor_get_environ (self->environ_editor); | ||
| 37 | - env = sysprof_environ_get_environ (environ); | ||
| 38 | + sys_environ = sysprof_environ_editor_get_environ (self->environ_editor); | ||
| 39 | + env = sysprof_environ_get_environ (sys_environ); | ||
| 40 | sysprof_profiler_set_spawn_env (profiler, (const gchar * const *)env); | ||
| 41 | |||
| 42 | sysprof_profiler_set_spawn_inherit_environ (profiler, | ||
| 43 | @@ -405,7 +405,7 @@ sysprof_profiler_assistant_class_init (SysprofProfilerAssistantClass *klass) | ||
| 44 | static void | ||
| 45 | sysprof_profiler_assistant_init (SysprofProfilerAssistant *self) | ||
| 46 | { | ||
| 47 | - g_autoptr(SysprofEnviron) environ = sysprof_environ_new (); | ||
| 48 | + g_autoptr(SysprofEnviron) sys_environ = sysprof_environ_new (); | ||
| 49 | |||
| 50 | gtk_widget_init_template (GTK_WIDGET (self)); | ||
| 51 | |||
| 52 | @@ -445,7 +445,7 @@ sysprof_profiler_assistant_init (SysprofProfilerAssistant *self) | ||
| 53 | self, | ||
| 54 | G_CONNECT_SWAPPED); | ||
| 55 | |||
| 56 | - sysprof_environ_editor_set_environ (self->environ_editor, environ); | ||
| 57 | + sysprof_environ_editor_set_environ (self->environ_editor, sys_environ); | ||
| 58 | } | ||
| 59 | |||
| 60 | void | ||
| 61 | -- | ||
| 62 | 2.25.0 | ||
| 63 | |||
diff --git a/meta-gnome/recipes-kernel/sysprof/files/0001-meson.build-do-not-hardcode-linux-as-host_machine-.s.patch b/meta-gnome/recipes-kernel/sysprof/files/0001-meson.build-do-not-hardcode-linux-as-host_machine-.s.patch deleted file mode 100644 index 2354892265..0000000000 --- a/meta-gnome/recipes-kernel/sysprof/files/0001-meson.build-do-not-hardcode-linux-as-host_machine-.s.patch +++ /dev/null | |||
| @@ -1,42 +0,0 @@ | |||
| 1 | From 43c39b5685445242d071b3706af2903efa508b4a Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | ||
| 3 | Date: Tue, 14 Jan 2020 12:58:27 +0100 | ||
| 4 | Subject: [PATCH] meson.build: do not hardcode 'linux' as | ||
| 5 | host_machine().system() value | ||
| 6 | |||
| 7 | In some build environmets such as OpenEmbedded this can be 'linux-gnueabi' | ||
| 8 | or otherwise not exactly 'linux'. | ||
| 9 | |||
| 10 | Upstream-Status: Pending | ||
| 11 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | ||
| 12 | --- | ||
| 13 | src/libsysprof/meson.build | 2 +- | ||
| 14 | src/tools/meson.build | 2 +- | ||
| 15 | 2 files changed, 2 insertions(+), 2 deletions(-) | ||
| 16 | |||
| 17 | diff --git a/src/libsysprof/meson.build b/src/libsysprof/meson.build | ||
| 18 | index 3449961..3c2d186 100644 | ||
| 19 | --- a/src/libsysprof/meson.build | ||
| 20 | +++ b/src/libsysprof/meson.build | ||
| 21 | @@ -84,7 +84,7 @@ libsysprof_deps = [ | ||
| 22 | polkit_dep, | ||
| 23 | ] | ||
| 24 | |||
| 25 | -if host_machine.system() == 'linux' | ||
| 26 | +if host_machine.system().contains('linux') | ||
| 27 | libsysprof_public_sources += [ | ||
| 28 | 'sysprof-memory-source.c', | ||
| 29 | 'sysprof-perf-counter.c', | ||
| 30 | diff --git a/src/tools/meson.build b/src/tools/meson.build | ||
| 31 | index 670052a..3fb7f0c 100644 | ||
| 32 | --- a/src/tools/meson.build | ||
| 33 | +++ b/src/tools/meson.build | ||
| 34 | @@ -2,7 +2,7 @@ tools_deps = [ | ||
| 35 | libsysprof_capture_dep, | ||
| 36 | ] | ||
| 37 | |||
| 38 | -if get_option('libsysprof') and host_machine.system() == 'linux' | ||
| 39 | +if get_option('libsysprof') and host_machine.system().contains('linux') | ||
| 40 | polkit_agent_dep = dependency('polkit-agent-1') | ||
| 41 | sysprof_cli = executable('sysprof-cli', 'sysprof-cli.c', | ||
| 42 | dependencies: tools_deps + [libsysprof_dep, polkit_dep, polkit_agent_dep], | ||
diff --git a/meta-gnome/recipes-kernel/sysprof/files/0001-sysprof-Define-NT_GNU_BUILD_ID-if-undefined.patch b/meta-gnome/recipes-kernel/sysprof/files/0001-sysprof-Define-NT_GNU_BUILD_ID-if-undefined.patch deleted file mode 100644 index 75aa86cdbf..0000000000 --- a/meta-gnome/recipes-kernel/sysprof/files/0001-sysprof-Define-NT_GNU_BUILD_ID-if-undefined.patch +++ /dev/null | |||
| @@ -1,35 +0,0 @@ | |||
| 1 | From 3025d80aaacc5f67aa9eb1e6fde30f71d9c5b04b Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Mon, 18 Jul 2011 16:00:17 -0700 | ||
| 4 | Subject: [PATCH 1/2] sysprof: Define NT_GNU_BUILD_ID if undefined | ||
| 5 | |||
| 6 | On uclibc elf.h does not have GNU extentions but we need this define | ||
| 7 | so we define it locally if its not getting it from elf.h | ||
| 8 | |||
| 9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 10 | |||
| 11 | Upstream-Status: Pending | ||
| 12 | |||
| 13 | %% original patch: define-NT_GNU_BUILD_ID.patch | ||
| 14 | --- | ||
| 15 | src/libsysprof/elfparser.h | 4 ++++ | ||
| 16 | 1 file changed, 4 insertions(+) | ||
| 17 | |||
| 18 | diff --git a/src/libsysprof/elfparser.h b/src/libsysprof/elfparser.h | ||
| 19 | index 160e4c9..94fa5c0 100644 | ||
| 20 | --- a/src/libsysprof/elfparser.h | ||
| 21 | +++ b/src/libsysprof/elfparser.h | ||
| 22 | @@ -18,6 +18,10 @@ | ||
| 23 | |||
| 24 | #include <glib.h> | ||
| 25 | |||
| 26 | +#ifndef NT_GNU_BUILD_ID | ||
| 27 | +#define NT_GNU_BUILD_ID 3 | ||
| 28 | +#endif | ||
| 29 | + | ||
| 30 | typedef struct ElfSym ElfSym; | ||
| 31 | typedef struct ElfParser ElfParser; | ||
| 32 | |||
| 33 | -- | ||
| 34 | 2.17.1 | ||
| 35 | |||
diff --git a/meta-gnome/recipes-kernel/sysprof/sysprof_3.34.1.bb b/meta-gnome/recipes-kernel/sysprof/sysprof_3.34.1.bb deleted file mode 100644 index ad69ab68c3..0000000000 --- a/meta-gnome/recipes-kernel/sysprof/sysprof_3.34.1.bb +++ /dev/null | |||
| @@ -1,37 +0,0 @@ | |||
| 1 | SUMMARY = "System-wide Performance Profiler for Linux" | ||
| 2 | HOMEPAGE = "http://www.sysprof.com" | ||
| 3 | LICENSE = "GPLv3+" | ||
| 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \ | ||
| 5 | file://src/sysprof/sysprof-application.c;endline=17;md5=a3de8df3b0f8876dd01e1388d2d4b607" | ||
| 6 | |||
| 7 | GNOMEBASEBUILDCLASS = "meson" | ||
| 8 | inherit gnomebase gettext systemd upstream-version-is-even gsettings mime mime-xdg | ||
| 9 | |||
| 10 | DEPENDS += "glib-2.0 libxml2-native glib-2.0-native" | ||
| 11 | |||
| 12 | SRC_URI[archive.md5sum] = "cc32455277b31afb1965d627ae3e3629" | ||
| 13 | SRC_URI[archive.sha256sum] = "844bbb8d8b65071b3bca96f8e921319ceef81f2d2c51fcc9da63a4b355c893d0" | ||
| 14 | SRC_URI += "file://0001-sysprof-Define-NT_GNU_BUILD_ID-if-undefined.patch \ | ||
| 15 | file://0001-meson.build-do-not-hardcode-linux-as-host_machine-.s.patch \ | ||
| 16 | file://0001-libsysprof-ui-Rename-environ-to-sys_environ.patch \ | ||
| 17 | " | ||
| 18 | |||
| 19 | PACKAGECONFIG ?= "sysprofd libsysprof ${@bb.utils.contains_any('DISTRO_FEATURES', '${GTK3DISTROFEATURES}', 'gtk', '', d)}" | ||
| 20 | PACKAGECONFIG[gtk] = "-Denable_gtk=true,-Denable_gtk=false,gtk+3 libdazzle" | ||
| 21 | PACKAGECONFIG[sysprofd] = "-Dwith_sysprofd=bundled,-Dwith_sysprofd=none,polkit" | ||
| 22 | PACKAGECONFIG[libsysprof] = "-Dlibsysprof=true,-Dlibsysprof=false,polkit" | ||
| 23 | |||
| 24 | # Enablig this requries yelp | ||
| 25 | EXTRA_OEMESON += "-Dhelp=false -Dsystemdunitdir=${systemd_unitdir}/system" | ||
| 26 | |||
| 27 | SOLIBS = ".so" | ||
| 28 | FILES_SOLIBSDEV = "" | ||
| 29 | |||
| 30 | SYSTEMD_SERVICE_${PN} = "${@bb.utils.contains('PACKAGECONFIG', 'sysprofd', 'sysprof2.service sysprof3.service', '', d)}" | ||
| 31 | |||
| 32 | FILES_${PN} += " \ | ||
| 33 | ${datadir}/dbus-1/system-services \ | ||
| 34 | ${datadir}/dbus-1/system.d \ | ||
| 35 | ${datadir}/dbus-1/interfaces \ | ||
| 36 | ${datadir}/metainfo \ | ||
| 37 | " | ||
