mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-27 03:49:57 -04:00
selftests/powerpc/pmu: Add support for perf sampling tests
Add support functions for enabling perf sampling test in a new folder "sampling_tests" under "selftests/powerpc/pmu". This includes support functions for allocating and processing the mmap buffer. These functions are added/defined in "sampling_tests/misc.*" files. Also updates the corresponding Makefiles in "selftests/powerpc" and "sampling_tests" folder. Signed-off-by: Athira Rajeev <atrajeev@linux.vnet.ibm.com> [mpe: Drop unneeded bits from the Makefile] Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20220127072012.662451-3-kjain@linux.ibm.com
This commit is contained in:
committed by
Michael Ellerman
parent
f961e20f15
commit
c315669e2f
@@ -0,0 +1,9 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright 2022, Athira Rajeev, IBM Corp.
|
||||
*/
|
||||
|
||||
#include "../event.h"
|
||||
|
||||
void *event_sample_buf_mmap(int fd, int mmap_pages);
|
||||
void *__event_read_samples(void *sample_buff, size_t *size, u64 *sample_count);
|
||||
Reference in New Issue
Block a user