perf: remove authorization and proxy usage from counter

This belongs in other abstractions to be more general.
This commit is contained in:
Christian Hergert
2019-05-10 09:25:32 -07:00
parent eff557db59
commit ec603e1221
2 changed files with 30 additions and 389 deletions

View File

@ -109,8 +109,8 @@ typedef struct
typedef union
{
struct perf_event_header header;
guint8 raw[0];
struct perf_event_header header;
guint8 raw[0];
SysprofPerfCounterEventFork fork;
SysprofPerfCounterEventComm comm;
SysprofPerfCounterEventExit exit;
@ -122,14 +122,9 @@ typedef union
#pragma pack(pop)
typedef void (*SysprofPerfCounterCallback) (SysprofPerfCounterEvent *event,
guint cpu,
gpointer user_data);
guint cpu,
gpointer user_data);
void sysprof_perf_counter_authorize_async (GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
gboolean sysprof_perf_counter_authorize_finish (GAsyncResult *result,
GError **error);
GType sysprof_perf_counter_get_type (void);
SysprofPerfCounter *sysprof_perf_counter_new (GMainContext *context);
void sysprof_perf_counter_set_callback (SysprofPerfCounter *self,