mirror of
https://github.com/raspberrypi/linux.git
synced 2026-01-03 08:14:12 +00:00
libperf: Add perf_evsel__init function
Add the perf_evsel__init() function to initialize perf_evsel struct. Signed-off-by: Jiri Olsa <jolsa@kernel.org> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Alexey Budankov <alexey.budankov@linux.intel.com> Cc: Andi Kleen <ak@linux.intel.com> Cc: Michael Petlan <mpetlan@redhat.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Link: http://lkml.kernel.org/r/20190721112506.12306-38-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
committed by
Arnaldo Carvalho de Melo
parent
ce9036a6e3
commit
b04c597af7
@@ -2,3 +2,8 @@
|
||||
#include <perf/evsel.h>
|
||||
#include <linux/list.h>
|
||||
#include <internal/evsel.h>
|
||||
|
||||
void perf_evsel__init(struct perf_evsel *evsel)
|
||||
{
|
||||
INIT_LIST_HEAD(&evsel->node);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user