libsysprof: only use sync form for perf counter

We already have async auth workflow, so we only need the synchronous
form here, which makes things a bit less complicated.
This commit is contained in:
Christian Hergert
2019-05-10 12:15:59 -07:00
parent ec603e1221
commit 05bfc21fce
2 changed files with 70 additions and 126 deletions

View File

@ -78,19 +78,6 @@ gboolean sysprof_helpers_perf_event_open (SysprofHelpers
GCancellable *cancellable,
gint *out_fd,
GError **error);
void sysprof_helpers_perf_event_open_async (SysprofHelpers *self,
struct perf_event_attr *attr,
gint32 pid,
gint32 cpu,
gint32 group_fd,
guint64 flags,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
gboolean sysprof_helpers_perf_event_open_finish (SysprofHelpers *self,
GAsyncResult *result,
gint *out_fd,
GError **error);
#endif
G_END_DECLS