Skip to content

Commit

Permalink
perf: Get rid of oprofile leftovers
Browse files Browse the repository at this point in the history
perf_pmu_name() and perf_num_counters() are unused. Drop them.

Signed-off-by: Marc Zyngier <[email protected]>
Acked-by: Will Deacon <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
  • Loading branch information
Marc Zyngier committed Apr 22, 2021
1 parent ac21ecf commit 7f31884
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
2 changes: 0 additions & 2 deletions include/linux/perf_event.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 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,
struct task_struct *task);
extern void __perf_event_task_sched_out(struct task_struct *prev,
Expand Down
5 changes: 0 additions & 5 deletions kernel/events/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -580,11 +580,6 @@ static u64 perf_event_time(struct perf_event *event);

void __weak perf_event_print_debug(void) { }

extern __weak const char *perf_pmu_name(void)
{
return "pmu";
}

static inline u64 perf_clock(void)
{
return local_clock();
Expand Down

0 comments on commit 7f31884

Please sign in to comment.