mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-21 07:09:15 +07:00
859442bd3f
This patch adds a PMU callback and the required mechanic so that drivers can process the command line configuration elements found in evsel::config_terms. Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org> Acked-by: Jiri Olsa <jolsa@kernel.org> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: linux-arm-kernel@lists.infradead.org Link: http://lkml.kernel.org/r/1474041004-13956-6-git-send-email-mathieu.poirier@linaro.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
27 lines
844 B
C
27 lines
844 B
C
/*
|
|
* drv_configs.h: Interface to apply PMU specific configuration
|
|
* Copyright (c) 2016-2018, Linaro Ltd.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
* under the terms and conditions of the GNU General Public License,
|
|
* version 2, as published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope it will be useful, but WITHOUT
|
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
|
* more details.
|
|
*
|
|
*/
|
|
|
|
#ifndef __PERF_DRV_CONFIGS_H
|
|
#define __PERF_DRV_CONFIGS_H
|
|
|
|
#include "drv_configs.h"
|
|
#include "evlist.h"
|
|
#include "evsel.h"
|
|
|
|
int perf_evlist__apply_drv_configs(struct perf_evlist *evlist,
|
|
struct perf_evsel **err_evsel,
|
|
struct perf_evsel_config_term **term);
|
|
#endif
|