Commit Graph

2248 Commits

Author SHA1 Message Date
a8fedfbeec Update Catalan translation 2021-11-26 05:59:37 +01:00
2406d9209d Merge branch 'speedtrack-preload-gui' into 'master'
Preload correct speedtrack lib in GUI

See merge request GNOME/sysprof!47
2021-11-16 22:22:09 +00:00
d05f1cba57 Preload correct speedtrack lib in GUI
Signed-off-by: FeRD (Frank Dana) <ferdnyc@gmail.com>
2021-11-16 15:42:37 -05:00
0f393a9750 Update Catalan translation 2021-11-14 15:03:02 +01:00
9e11368600 Add Korean translation 2021-11-13 17:29:39 +00:00
d6a62d5f38 Update Polish translation 2021-11-07 13:48:07 +01:00
1019db2099 Update Catalan translation 2021-11-05 13:42:51 +01:00
da37659edc Update Ukrainian translation 2021-11-05 06:58:25 +00:00
7a040a6032 memprof: add section for allocation leaks
These are defined by allocation records that do not have a corresponding
release record.
2021-11-04 21:10:44 -07:00
0518cae7f9 tests: use integer types
So we can catch negative values.
2021-11-04 20:07:54 -07:00
75364415b3 build: require libunwind unless disabled
Only some situations can use this properly without libunwind, so make
sure that we have it available unless -Dlibunwind=false.

Distributors, please be kind, use libunwind!
2021-11-04 19:48:29 -07:00
2903f08d02 release 3.42.1 2021-11-04 10:26:31 -07:00
708dd8d6bc Update Catalan translation 2021-11-02 07:32:54 +01:00
b0c2145059 Merge branch 'enable_paranoid_cb-no-g_steal_pointer' into 'master'
enable_paranoid_cb: Do not use g_steal_pointer in callee argument list

See merge request GNOME/sysprof!46
2021-11-01 15:26:38 +00:00
b3b2e61c19 enable_paranoid_cb: Do not use g_steal_pointer in callee argument list
The order in which the argument list is evaluated is unspecified, so it
was possible for g_steal_pointer to set self = NULL before
self->old_governor was evaluated, resulting in a crash:

Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007f6efc678d84 in enable_paranoid_cb (object=0x561a4d147c80, result=0x561a4d173560, user_data=0x561a4d09d610) at ../src/libsysprof/sysprof-governor-source.c:290
290	                                        self->old_governor,
[Current thread is 1 (Thread 0x7f6efae4b600 (LWP 122786))]
(gdb) bt
#0  0x00007f6efc678d84 in enable_paranoid_cb (object=0x561a4d147c80 [SysprofHelpers], result=0x561a4d173560, user_data=0x561a4d09d610) at ../src/libsysprof/sysprof-governor-source.c:290
#1  0x00007f6efd51b389 in g_task_return_now (task=0x561a4d173560 [GTask]) at ../../../gio/gtask.c:1219
#2  0x00007f6efd51becb in g_task_return (type=<optimized out>, task=0x561a4d173560 [GTask]) at ../../../gio/gtask.c:1289
#3  g_task_return (task=0x561a4d173560 [GTask], type=<optimized out>) at ../../../gio/gtask.c:1245
#4  0x00007f6efc6a6060 in sysprof_helpers_set_paranoid_cb (object=0x561a4cf9df90 [IpcServiceProxy], result=0x561a4d1736e0, user_data=0x561a4d173560) at ../src/libsysprof/sysprof-helpers.c:788
#5  0x00007f6efd51b389 in g_task_return_now (task=0x561a4d1736e0 [GTask]) at ../../../gio/gtask.c:1219
#6  0x00007f6efd51becb in g_task_return (type=<optimized out>, task=0x561a4d1736e0 [GTask]) at ../../../gio/gtask.c:1289
#7  g_task_return (task=0x561a4d1736e0 [GTask], type=<optimized out>) at ../../../gio/gtask.c:1245
#8  0x00007f6efd5830cb in reply_cb (connection=<optimized out>, res=<optimized out>, user_data=user_data@entry=0x561a4d1736e0) at ../../../gio/gdbusproxy.c:2568
#9  0x00007f6efd51b389 in g_task_return_now (task=0x561a4d22b000 [GTask]) at ../../../gio/gtask.c:1219
#10 0x00007f6efd51becb in g_task_return (type=<optimized out>, task=0x561a4d22b000 [GTask]) at ../../../gio/gtask.c:1289
#11 g_task_return (task=0x561a4d22b000 [GTask], type=<optimized out>) at ../../../gio/gtask.c:1245
#12 0x00007f6efd577cbf in g_dbus_connection_call_done (source=<optimized out>, result=0x561a4d22b0c0, user_data=user_data@entry=0x561a4d22b000) at ../../../gio/gdbusconnection.c:5797
#13 0x00007f6efd51b389 in g_task_return_now (task=0x561a4d22b0c0 [GTask]) at ../../../gio/gtask.c:1219
#14 0x00007f6efd51b3c9 in complete_in_idle_cb (task=0x561a4d22b0c0) at ../../../gio/gtask.c:1233
#15 0x00007f6efd32db84 in g_main_dispatch (context=0x561a4cb60af0) at ../../../glib/gmain.c:3381
#16 g_main_context_dispatch (context=0x561a4cb60af0) at ../../../glib/gmain.c:4099
#17 0x00007f6efd32df28 in g_main_context_iterate (context=context@entry=0x561a4cb60af0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../../../glib/gmain.c:4175
#18 0x00007f6efd32dfdf in g_main_context_iteration (context=context@entry=0x561a4cb60af0, may_block=may_block@entry=1) at ../../../glib/gmain.c:4240
#19 0x00007f6efd54a06d in g_application_run (application=0x561a4cb56120 [SysprofApplication], argc=<optimized out>, argv=<optimized out>) at ../../../gio/gapplication.c:2569
#20 0x0000561a4b2edd14 in main (argc=1, argv=0x7ffddcebb708) at ../src/sysprof/sysprof.c:44
(gdb) info locals
helpers = 0x561a4d147c80 [SysprofHelpers]
self = 0x0
error = 0x0
old_governor = -1
__func__ = "enable_paranoid_cb"
2021-11-01 10:29:15 +01:00
66d412b235 display: show time in local time
Fixes #67
2021-10-28 19:01:18 -07:00
ce3b6e3484 Add Catalan translation 2021-10-21 23:21:47 +02:00
d2d0e82e7f Fix invalid Catalan help translation 2021-10-21 15:29:09 +02:00
e1085cb737 Add Catalan help translation 2021-10-20 18:22:54 +02:00
2d1a789628 Merge branch 'resolver-fixes' into 'master'
Add Flatpak debug symbol dirs

See merge request GNOME/sysprof!45
2021-10-15 17:32:30 +00:00
32a7436837 binfile: Use correct prefix for debug files 2021-10-15 07:17:14 +03:00
46e7e31f45 elf-symbol-resolver: Add Flatpak Debug paths
Add paths for com.example.App.Debug and com.example.Sdk.Debug where most
of the debug symbols should lie.
2021-10-15 07:17:14 +03:00
01eafe951e elf-symbol-resolver: Use custom debug dirs
They were set up, but not actually used for resolving. Fix that.
2021-10-08 23:37:12 +03:00
3429249715 binfile: Fix debug message format strings 2021-10-08 23:37:12 +03:00
56b4520603 Merge branch 'fix-flatpak-filesystem-host' into 'master'
elfparser: Try original filename too

See merge request GNOME/sysprof!44
2021-10-08 17:47:30 +00:00
3b180b313b elfparser: Try original filename too
Fixes Sysprof running under Flatpak (e.g. from Builder) being unable to
resolve any paths on Silverblue.
2021-10-08 11:27:37 +03:00
b113c89af1 symbol-resolver: fix includes for close/lseek 2021-09-21 16:52:16 -07:00
f49681cb23 Release 3.42.0 (GNOME 41.0) 2021-09-21 16:41:52 -07:00
5a7d79f0b4 sysprof: cleanup version naming 2021-09-21 16:41:37 -07:00
3eca1ff409 symbol-resolver: remove unused function 2021-09-21 16:37:46 -07:00
551d3c31bf Merge branch 'wip/chergert/path-resolver' 2021-09-21 16:26:12 -07:00
d641856317 proc: ignore inode from podman processes
They never appear to be right anyway, so they just get in the way of
decoding anything (for which we might get right with a CRC check later).
2021-09-21 16:16:30 -07:00
468b45b086 tests: fix inode check
We care about the event, not what we read.
2021-09-21 16:05:00 -07:00
a0de244f7e elf: add note about zero inodes 2021-09-21 16:03:58 -07:00
f09e378ca0 tests: ignore zero inode 2021-09-21 16:03:48 -07:00
b0812681b2 tests: style cleanup 2021-09-21 15:40:42 -07:00
5b6377ee78 tests: make resolving path match elf resolver
Just use the ev->filename if we didn't translate the path (so we can avoid
extra string copies).
2021-09-21 15:39:47 -07:00
e62d6a07a2 podman: include image layers in overlay
We want the image layers so we can find the files in the base image
correctly.
2021-09-21 15:36:18 -07:00
5caebd29f4 podman: fix typo 2021-09-21 15:35:45 -07:00
bf8a851a57 elf: fix pid usage
We want the pid from the event.
2021-09-21 15:35:37 -07:00
11ae2fa395 build: fix write length 2021-09-21 13:12:02 -07:00
0fd7ea3f80 tests: cleanup addr decode output 2021-09-21 11:50:34 -07:00
09360c5cb9 tests: add test to dump translated maps 2021-09-21 11:50:22 -07:00
4c6912e804 elf: add helpers for test utilities to verify decoding 2021-09-21 11:50:03 -07:00
f88e2ee041 Update Serbian translation 2021-09-18 07:08:30 +00:00
fb33d382cc extract instance data from .flatpak-info 2021-09-17 17:16:44 -07:00
728c5081d1 more work on resolver kinds 2021-09-17 17:11:06 -07:00
5f43a57ab0 tests: add util to extract build-id
Easier to remember than readelf stuff and tests the same code paths.
2021-09-16 22:59:28 -07:00
4d12f9eea7 build: use static library for tests 2021-09-16 22:58:51 -07:00
5f352abc86 do delayed path resolving of files containing symbols
we still need to teach this to locate debug dirs relative to the
process paths.
2021-09-15 17:52:58 -07:00