mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
coresight: Communicate perf event to sink buffer allocation functions
Make struct perf_event available to sink buffer allocation functions in order to use the pid they carry to allocate and free buffer memory along with regimenting access to what source a sink can collect data for. Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org> Tested-by: Leo Yan <leo.yan@linaro.org> Tested-by: Robert Walker <robert.walker@arm.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
f5200aa983
commit
a0f08a6a9f
5 changed files with 22 additions and 17 deletions
|
@ -193,8 +193,9 @@ struct coresight_device {
|
|||
struct coresight_ops_sink {
|
||||
int (*enable)(struct coresight_device *csdev, u32 mode, void *data);
|
||||
int (*disable)(struct coresight_device *csdev);
|
||||
void *(*alloc_buffer)(struct coresight_device *csdev, int cpu,
|
||||
void **pages, int nr_pages, bool overwrite);
|
||||
void *(*alloc_buffer)(struct coresight_device *csdev,
|
||||
struct perf_event *event, void **pages,
|
||||
int nr_pages, bool overwrite);
|
||||
void (*free_buffer)(void *config);
|
||||
unsigned long (*update_buffer)(struct coresight_device *csdev,
|
||||
struct perf_output_handle *handle,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue