Skip to content

Commit

Permalink
perf_counter: Add dummy perf_counter_print_debug function
Browse files Browse the repository at this point in the history
Impact: minimize requirements on architectures

Currently, an architecture just enabling CONFIG_PERF_COUNTERS but not
providing any extra functions will fail to build with
perf_counter_print_debug being undefined, since we don't provide an
empty dummy definition like we do with the hw_perf_* functions.

This provides an empty dummy perf_counter_print_debug() to make it
easier for architectures to turn on CONFIG_PERF_COUNTERS.

Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Paul Mackerras committed Jan 9, 2009
1 parent 3cbed42 commit 4eb96fc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kernel/perf_counter.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ int __weak hw_perf_group_sched_in(struct perf_counter *group_leader,
return 0;
}

void __weak perf_counter_print_debug(void) { }

static void
list_add_counter(struct perf_counter *counter, struct perf_counter_context *ctx)
{
Expand Down

0 comments on commit 4eb96fc

Please sign in to comment.