perf: Get rid of oprofile leftovers
perf_pmu_name() and perf_num_counters() are unused. Drop them. Signed-off-by: Marc Zyngier <maz@kernel.org> Acked-by: Will Deacon <will@kernel.org> Link: https://lore.kernel.org/r/20210414134409.1266357-6-maz@kernel.org
This commit is contained in:
Родитель
ac21ecf5ad
Коммит
7f318847a0
|
@ -951,8 +951,6 @@ extern void perf_event_itrace_started(struct perf_event *event);
|
||||||
extern int perf_pmu_register(struct pmu *pmu, const char *name, int type);
|
extern int perf_pmu_register(struct pmu *pmu, const char *name, int type);
|
||||||
extern void perf_pmu_unregister(struct pmu *pmu);
|
extern void perf_pmu_unregister(struct pmu *pmu);
|
||||||
|
|
||||||
extern int perf_num_counters(void);
|
|
||||||
extern const char *perf_pmu_name(void);
|
|
||||||
extern void __perf_event_task_sched_in(struct task_struct *prev,
|
extern void __perf_event_task_sched_in(struct task_struct *prev,
|
||||||
struct task_struct *task);
|
struct task_struct *task);
|
||||||
extern void __perf_event_task_sched_out(struct task_struct *prev,
|
extern void __perf_event_task_sched_out(struct task_struct *prev,
|
||||||
|
|
|
@ -580,11 +580,6 @@ static u64 perf_event_time(struct perf_event *event);
|
||||||
|
|
||||||
void __weak perf_event_print_debug(void) { }
|
void __weak perf_event_print_debug(void) { }
|
||||||
|
|
||||||
extern __weak const char *perf_pmu_name(void)
|
|
||||||
{
|
|
||||||
return "pmu";
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline u64 perf_clock(void)
|
static inline u64 perf_clock(void)
|
||||||
{
|
{
|
||||||
return local_clock();
|
return local_clock();
|
||||||
|
|
Загрузка…
Ссылка в новой задаче