Commit Graph

2267 Commits

Author SHA1 Message Date
c75391e681 tools/sysprof-cli: always inherit stdin
Fixes #76
2022-04-01 12:57:30 -07:00
8799d2f0ca libsysprof: add API to inherit stdin
Related #76
2022-04-01 12:57:02 -07:00
1587bc13b6 libsysprof: add accessors for setting spawnable flags
We need this to be able to allow inheriting stdin from sysprof-cli.
2022-04-01 12:41:49 -07:00
3c5540047f build: bump for development 2022-04-01 12:41:14 -07:00
7d44e2db75 release 3.44.0 (GNOME 42.0) 2022-03-18 15:46:32 -07:00
c4ffb18ded Update Finnish translation 2022-03-14 19:39:42 +00:00
7042fa9382 Update Hungarian translation 2022-03-13 01:32:03 +00:00
c6dfe76810 Release 3.43.90 2022-03-07 13:43:12 -08:00
eac37aaf92 Updated Spanish translation 2022-02-07 13:23:27 +01:00
725584a01f Add Hebrew translation 2022-02-03 16:15:24 +00:00
206be3a132 Update Chinese (China) translation 2022-02-03 03:49:43 +00:00
7416fa2440 Update Brazilian Portuguese translation 2022-01-28 19:18:02 +00:00
f9c68d9154 Update Catalan translation 2022-01-19 21:26:45 +01:00
33b5d672a3 Add Galician translation 2022-01-02 23:08:49 +00:00
38776abfc2 Update Serbian translation 2021-12-30 13:04:07 +00:00
b23408ee95 Update Catalan translation 2021-12-20 21:07:48 +00:00
1e36c0133e Update Swedish translation 2021-12-04 22:19:59 +00:00
1ee82e86c0 Merge branch 'fix-proc-maps-pathname' into 'master'
proc: fix capture of mapped pathnames

Closes #70

See merge request GNOME/sysprof!48
2021-11-29 00:10:56 +00:00
a8fedfbeec Update Catalan translation 2021-11-26 05:59:37 +01:00
03652e1a44 proc: fix capture of mapped pathnames
pathnames are listed unescaped in /proc/[pid]/maps, so using %s as the
conversion specifier cuts pathnames off at space characters. Use %[^\n]
instead, to read everything until the end of the line.

Also, the scanf manpage states: "String input conversions store a
terminating null byte ('\0') to mark the end of the input; the maximum
field width does not include this terminator". So set the maximum field
width to 511 instead of 512, to leave one free byte in the buffer for
the terminating null byte.

Fixes #70
2021-11-23 14:41:31 +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