Re: [PATCH] perf: add /proc/perf_events file for dump perf eventsinfo

From: David Ahern
Date: Thu Sep 13 2012 - 17:03:41 EST


On 7/5/12 7:02 AM, Jovi Zhang wrote:
From 91fbcca37a2c9979083f4b9a6fa9c1875fc2886f Mon Sep 17 00:00:00 2001
From: Jovi Zhang <bookjovi@xxxxxxxxx>
Date: Fri, 6 Jul 2012 00:05:40 +0800
Subject: [PATCH] perf: add /proc/perf_events file for dump perf events info

This new /proc/perf_events file is used for real time dump all
perf events info in whole system wide machine, this patch also add
a new field perf_entry in struct perf_event, for connect to
global list perf_events_list.

Applied your patch to see if sheds light on a problem. Saw this compiling the kernel:

kernel/events/proc_perf_events.c: In function âperf_events_proc_showâ:
kernel/events/proc_perf_events.c:175:5: warning: format â%lluâ expects argument of type âlong long unsigned intâ, but argument 3 has type âlong intâ [-Wformat]

David
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/