mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
helpers: add fallbacks for perf_event_open
First try the proxy to the service, then fallback to trying in-process.
This commit is contained in:
@ -42,7 +42,6 @@ gboolean sysprof_helpers_list_processes_finish (SysprofHelpers
|
||||
gint32 **processes,
|
||||
gsize *n_processes,
|
||||
GError **error);
|
||||
#ifdef __linux__
|
||||
void sysprof_helpers_get_proc_file_async (SysprofHelpers *self,
|
||||
const gchar *path,
|
||||
GCancellable *cancellable,
|
||||
@ -52,6 +51,7 @@ gboolean sysprof_helpers_get_proc_file_finish (SysprofHelpers
|
||||
GAsyncResult *result,
|
||||
gchar **contents,
|
||||
GError **error);
|
||||
#ifdef __linux__
|
||||
void sysprof_helpers_perf_event_open_async (SysprofHelpers *self,
|
||||
struct perf_event_attr *attr,
|
||||
gint32 pid,
|
||||
|
||||
Reference in New Issue
Block a user