libsysprof-profile: add API to notify of process started

This will be used when we discover a process started like when the Perf
instrument gets PERF_RECORD_COMM.
This commit is contained in:
Christian Hergert
2023-05-30 17:27:33 -07:00
parent ee3a78433f
commit 2ac4ff692d
2 changed files with 43 additions and 7 deletions

View File

@ -44,14 +44,20 @@ struct _SysprofInstrumentClass
DexFuture *(*record) (SysprofInstrument *self,
SysprofRecording *recording,
GCancellable *cancellable);
DexFuture *(*process_started) (SysprofInstrument *self,
SysprofRecording *recording,
int pid);
};
DexFuture *_sysprof_instruments_acquire_policy (GPtrArray *instruments,
SysprofRecording *recording);
DexFuture *_sysprof_instruments_prepare (GPtrArray *instruments,
SysprofRecording *recording);
DexFuture *_sysprof_instruments_record (GPtrArray *instruments,
SysprofRecording *recording,
GCancellable *cancellable);
DexFuture *_sysprof_instruments_acquire_policy (GPtrArray *instruments,
SysprofRecording *recording);
DexFuture *_sysprof_instruments_prepare (GPtrArray *instruments,
SysprofRecording *recording);
DexFuture *_sysprof_instruments_record (GPtrArray *instruments,
SysprofRecording *recording,
GCancellable *cancellable);
DexFuture *_sysprof_instruments_process_started (GPtrArray *instruments,
SysprofRecording *recording,
int pid);
G_END_DECLS