Commit Graph

4424 Commits

Author SHA1 Message Date
163406ccfe sysprof-cli: add --no-sysprofd command line option
This tells the SysprofProfiler that it should avoid using sysprofd unless
for some reason that instrument simply cannot work without it. Currently
that is at least the RAPL and user-space stack decoding instruments
but there may be others.
2025-03-21 12:08:16 -07:00
8ee9784188 libsysprof: add SysprofProfiler:acquire-privileges property
If this property is set to TRUE (the default) it queries sysprofd and
policy-kit for appropriate privileges. That generally means that the
instruments will use sysprofd to get access to things like /proc files,
perf event streams, and what not.

If set to FALSE, then this tells the instruments that they should try to
do that work locally instead of querying the sysprofd instance via D-Bus.
2025-03-21 12:08:16 -07:00
f7eb2134ad libsysprof/instruments: use provided D-Bus connection for sysprofd
If we were provided a D-Bus connection to use for sysprofd then use that.
Otherwise, try to fallback to doing the work in process without the help
of sysprofd.
2025-03-21 12:08:16 -07:00
94af48094d libsysprof/perf-event-stream: do local syscall when DBus is unavailable
If we are setup without a D-Bus connection to use to talk to sysprofd then
try to perform the syscall() directly for perf_event_open.

Generally that means you need to be root.
2025-03-21 12:08:15 -07:00
637dfceb85 libsysprof/instruments: add set_connection() vfunc
This is used to tell the instruments what GDBusConnection they should use
to query sysprofd. Lack of a connection means they should try to do things
in process without querying sysprofd.
2025-03-21 12:08:15 -07:00
2971f34541 libsysprof/util: add helper to get proc file
This helper allows us to get the file locally or via sysprofd when the
GDBusConnection is provided.

Be careful about use as your local /proc may be different than the
"system" /proc where sysprofd lives.
2025-03-21 12:08:12 -07:00
ae58643f4d build: add GNOME 49 version macros 2025-03-21 11:59:18 -07:00
4de3985e13 Merge branch 'varunrmallya/issue130-goal3' into 'master'
sysprof-greeter: Add UI and functionality for adding external debug directories.

See merge request GNOME/sysprof!122
2025-03-20 20:03:10 +00:00
50036d26fd sysprof/greeter: fixup g_auto usage and trailing space 2025-03-20 13:02:45 -07:00
0c406167dc sysprof-greeter: add debug directory handling in profiler creation
Signed-off-by: varun-r-mallya <varunrmallya@gmail.com>
2025-03-20 13:02:45 -07:00
6424bd35aa sysprof-greeter: improve code quality and UI in greeter
Signed-off-by: varun-r-mallya <varunrmallya@gmail.com>
2025-03-20 13:02:45 -07:00
78c6a5ad49 sysprof-recording-template: add debugdirs property for external debug directories
Signed-off-by: varun-r-mallya <varunrmallya@gmail.com>
2025-03-20 13:02:44 -07:00
db914e8c63 sysprof-greeter: validate directory existence in debug directory entry
Signed-off-by: varun-r-mallya <varunrmallya@gmail.com>
2025-03-20 13:02:44 -07:00
530aff1d50 sysprof-greeter: replicate UI for managing debug directories with wrong key
Signed-off-by: varun-r-mallya <varunrmallya@gmail.com>
2025-03-20 13:02:44 -07:00
7f1d30eb88 Bump version for 49 development 2025-03-20 12:53:21 -07:00
fdea12454a .foundry: setup ignore 2025-03-20 12:52:29 -07:00
5e1dfa47db Update British English translation 2025-03-19 20:39:42 +00:00
19547e96e6 DESIGN.md: add some information on how sysprof is built 2025-03-17 18:47:08 -07:00
05dface80a Merge branch 'wip/hppa' into 'master'
mapped-ring-buffer: Round to the shared memory boundary on hppa

See merge request GNOME/sysprof!127
2025-03-18 01:31:25 +00:00
745c5c28c4 build: add check for asm/perf_regs.h
Related: #127
2025-03-17 18:28:19 -07:00
5dac046f2f contrib/elfparser: be a bit more defensive
Related: #139
2025-03-17 17:52:35 -07:00
b129c7dea2 mapped-ring-buffer: Round to the shared memory boundary on hppa
In map_head_and_body_twice(), the second mmap call fails:

mmap2(NULL, 135168, PROT_READ|PROT_WRITE, MAP_SHARED, 3, 0) = 0xf64a2000
mmap2(0xf64b3000, 65536, PROT_READ|PROT_WRITE, MAP_SHARED|MAP_FIXED, 3, 0x1000) = -1 EINVAL (Invalid argument)

Due to cache issues, all shared mapping of a page must be equivalently
mapped.  This requires page mappings to be at the same virtual address
modulo 4 MB.  Due to a kernel limitation, all mappings to a file must
be equivalent.

The test can be fixed by rounding the buffer_size used in the mapped
ring buffer to 4 MB on hppa.  This makes the two mmap mappings equivalent.

Bug-Debian: https://bugs.debian.org/1021853
2025-03-17 11:53:28 -04:00
8ee813c9a9 Updated Spanish translation 2025-03-17 11:06:11 +01:00
f4edefb44e Post-release version bump 2025-03-15 12:45:32 -07:00
392c6e9687 Release 48.0 2025-03-15 12:45:16 -07:00
3d3694025f Update Swedish translation 2025-03-12 16:25:51 +00:00
289ed176c3 Update Catalan translation 2025-03-12 14:20:44 +00:00
c563334707 Update Indonesian translation 2025-03-12 09:51:21 +00:00
ce5db32c94 Update Nepali translation 2025-03-12 05:05:57 +00:00
001c7ea15a Release 48.rc
A little late but should help distributions doing integration.
2025-03-11 10:12:20 -07:00
dc698e6d5b Update Turkish translation 2025-03-10 11:51:39 +00:00
af3daadbdd Merge branch 'varunrmallya/issue136' into 'master'
Adds persistence to environment variables

See merge request GNOME/sysprof!125
2025-03-09 17:28:08 +00:00
4e372c6497 Update Danish translation 2025-03-09 01:34:45 +00:00
9cf22bc906 sysprof-greeter: fix memory leak in sysprof_greeter_create_profiler
Signed-off-by: varun-r-mallya <varunrmallya@gmail.com>
2025-03-07 14:16:28 +05:30
0a5ee18a39 Update Catalan translation 2025-03-06 22:01:20 +00:00
8186cc464a sysprof-greeter: optimize environment variable handling in profiler creation
Signed-off-by: varun-r-mallya <varunrmallya@gmail.com>
2025-03-06 17:57:01 +05:30
79fb1221a9 Merge branch 'line_layer_fix' into 'master'
sysprof/chart: Translate origin of child chart layer

Closes #126

See merge request GNOME/sysprof!123
2025-03-06 01:45:48 +00:00
3950c486d4 Update Hungarian translation 2025-03-06 01:17:47 +00:00
516956e3e7 Update Hungarian translation 2025-03-05 21:35:23 +00:00
0aae18d583 Update French translation 2025-03-05 18:27:53 +00:00
17152e3a5d Update Hungarian translation 2025-03-05 18:24:12 +00:00
8813be055e Updated Spanish translation 2025-03-05 17:04:53 +01:00
157963e15e Update Czech translation 2025-03-04 12:12:23 +00:00
580b31b19a Update Czech translation 2025-03-04 11:50:26 +00:00
3b2aa696f2 Update Lithuanian translation 2025-03-02 20:31:10 +00:00
290839516e Update Korean translation 2025-03-02 06:35:51 +00:00
95f75ad0ed Update Basque translation 2025-03-01 15:37:52 +00:00
289e7970d3 Update Galician translation 2025-02-28 12:00:05 +00:00
65272cfd6e Update Portuguese translation 2025-02-27 21:11:43 +00:00
0e0bc32578 Update Hebrew translation 2025-02-27 07:51:46 +00:00