Re: [PATCH] [RFC] perf: robustify proc and debugfs file recording

From: Michael Neuling
Date: Wed Jul 13 2011 - 06:39:50 EST


Sonny,


> While attempting to create a timechart of boot up I found
> perf didn't tolerate modules being loaded/unloaded. This patch
> fixes this by reading the file once and then writing the size
> read at the correct point in the file. It also simplifies the
> code somewhat.

I'm getting a bunch of unused variables warnings when I compile this.
Care to clean them up?

CC util/trace-event-info.o
util/trace-event-info.c: In function âread_header_filesâ:
util/trace-event-info.c:221:27: error: unused variable âcheck_sizeâ [-Werror=unused-variable]
util/trace-event-info.c:221:21: error: unused variable âsizeâ [-Werror=unused-variable]
util/trace-event-info.c: In function âcopy_event_systemâ:
util/trace-event-info.c:255:27: error: unused variable âcheck_sizeâ [-Werror=unused-variable]
util/trace-event-info.c:255:21: error: unused variable âsizeâ [-Werror=unused-variable]
util/trace-event-info.c: In function âread_proc_kallsymsâ:
util/trace-event-info.c:377:21: error: unused variable âcheck_sizeâ [-Werror=unused-variable]
util/trace-event-info.c: In function âread_ftrace_printkâ:
util/trace-event-info.c:394:21: error: unused variable âcheck_sizeâ [-Werror=unused-variable]
cc1: all warnings being treated as errors

Mikey
--
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/