summaryrefslogtreecommitdiff
path: root/tools/perf/lib/evsel.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/lib/evsel.c')
-rw-r--r--tools/perf/lib/evsel.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/perf/lib/evsel.c b/tools/perf/lib/evsel.c
index 8e91738c5c38..ddc3ad447bfb 100644
--- a/tools/perf/lib/evsel.c
+++ b/tools/perf/lib/evsel.c
@@ -3,6 +3,7 @@
#include <linux/list.h>
#include <internal/evsel.h>
#include <linux/zalloc.h>
+#include <stdlib.h>
void perf_evsel__init(struct perf_evsel *evsel, struct perf_event_attr *attr)
{
@@ -19,3 +20,8 @@ struct perf_evsel *perf_evsel__new(struct perf_event_attr *attr)
return evsel;
}
+
+void perf_evsel__delete(struct perf_evsel *evsel)
+{
+ free(evsel);
+}