667180cbc8
sysprofd: add API to set perf_event_paranoid
...
This will allow us to get more information on demand when running the
profiler without endless tweaking by end users.
2021-02-24 11:26:10 -08:00
b624ec8809
build: track changes to GLib and gdbus-codegen
...
GLib is already doing this, which broke a number of auto-generated code.
This tracks those changes and manually sets the annotations so that we
are guaranteed to get this behavior.
We'll need to fix other uses (such as in Mutter), but we have to do that
already because of the change in GLib.
Fixes #17
2019-10-30 14:46:20 -07:00
b8898fceea
service: remove unnecessary code
...
This is fixed in glib now.
2019-07-30 15:17:32 -07:00
fc745767d4
governor: add daemon API and helpers to set CPU governor
2019-06-14 08:03:37 -07:00
7fd8ca4c8f
sysprofd: make sysprofd exit after 120 seconds of inactivity
2019-05-29 15:13:01 -07:00
c368da09de
libsysprof-ui: allow restricting remote proxy
2019-05-29 15:13:00 -07:00
931112b195
sysprofd: actually check authorization result
2019-05-29 15:13:00 -07:00
9d72203687
sysprofd: add API to get a FD for a file in proc
...
This is useful for optimized parsing of proc files such as necessary by
the memory source to seek() back to the start (instead of re-opening a
new file).
2019-05-29 15:13:00 -07:00
dfdebf115f
sysprofd: add comm and do some postprocessing
2019-05-29 15:13:00 -07:00
ecbca06013
sysprofd: add hook to postprocess cmdline
2019-05-29 15:13:00 -07:00
3310d83257
sysprofd: use add_value()
...
Otherwise we need another GVariantBuilder
2019-05-29 15:13:00 -07:00
a318a135c6
sysprofd: fix include
2019-05-29 15:13:00 -07:00
d6d4c0d140
sysprofd: start on optimized getprocessinfo helper
...
Calling all the individual function calls to get process information would
be considerably inefficient, so we can coalesce a bunch of that and change
our process-model implementation (and proc source) to use this.
2019-05-29 15:13:00 -07:00
200f7484d1
sysprofd: remove consistency check
...
We can try and just let the syscall tell us what happened.
2019-05-29 15:13:00 -07:00
aafcc0a57a
sysprofd: remove debug code
2019-05-29 15:13:00 -07:00
cd3b4d6538
src: use helpers and add group_fd to remote API
2019-05-29 15:13:00 -07:00
4a6f7324c1
sysprofd: fix error path and add some logging
2019-05-29 15:12:59 -07:00
bc5c243407
sysprofd: implement mechanics for perf_event_open
2019-05-29 15:12:59 -07:00
ab2fdffa6d
sysprofd: require polkit authorization by the peer
2019-05-29 15:12:59 -07:00
ed48eadd08
sysprofd: start on port to GDBusConnection
...
This will help us reduce a lot of code and eventually make some things
more asynchronous to allow for interactive authorization.
2019-05-29 15:12:59 -07:00