mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/2] perfcounters: Fix build for tracepoint profiling
@ 2009-07-06  8:31 Chris Wilson
  2009-07-06  8:31 ` [PATCH 2/2] perf tool: Add a trace point event parser Chris Wilson
  2009-07-13  9:01 ` [tip:perfcounters/urgent] perf_counter: Fix the tracepoint channel to perfcounters tip-bot for Chris Wilson
  0 siblings, 2 replies; 4+ messages in thread
From: Chris Wilson @ 2009-07-06  8:31 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: Chris Wilson, Ben Gamari, linux-kernel

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
---
 init/Kconfig          |    2 +-
 kernel/perf_counter.c |   10 +++-------
 2 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/init/Kconfig b/init/Kconfig
index 0e8784e..13473ac 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -955,7 +955,7 @@ config PERF_COUNTERS
 
 config EVENT_PROFILE
 	bool "Tracepoint profile sources"
-	depends on PERF_COUNTERS && EVENT_TRACER
+	depends on PERF_COUNTERS && EVENT_TRACING
 	default y
 
 endmenu
diff --git a/kernel/perf_counter.c b/kernel/perf_counter.c
index d55a50d..c6c38fb 100644
--- a/kernel/perf_counter.c
+++ b/kernel/perf_counter.c
@@ -3671,7 +3671,7 @@ static const struct pmu perf_ops_task_clock = {
 void perf_tpcounter_event(int event_id)
 {
 	struct perf_sample_data data = {
-		.regs = get_irq_regs();
+		.regs = get_irq_regs(),
 		.addr = 0,
 	};
 
@@ -3687,16 +3687,12 @@ extern void ftrace_profile_disable(int);
 
 static void tp_perf_counter_destroy(struct perf_counter *counter)
 {
-	ftrace_profile_disable(perf_event_id(&counter->attr));
+	ftrace_profile_disable(counter->attr.config);
 }
 
 static const struct pmu *tp_perf_counter_init(struct perf_counter *counter)
 {
-	int event_id = perf_event_id(&counter->attr);
-	int ret;
-
-	ret = ftrace_profile_enable(event_id);
-	if (ret)
+	if (ftrace_profile_enable(counter->attr.config))
 		return NULL;
 
 	counter->destroy = tp_perf_counter_destroy;
-- 
1.6.3.3


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-07-13  9:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-06  8:31 [PATCH 1/2] perfcounters: Fix build for tracepoint profiling Chris Wilson
2009-07-06  8:31 ` [PATCH 2/2] perf tool: Add a trace point event parser Chris Wilson
2009-07-10  9:22   ` Ingo Molnar
2009-07-13  9:01 ` [tip:perfcounters/urgent] perf_counter: Fix the tracepoint channel to perfcounters tip-bot for Chris Wilson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome