Re: [PATCH V6 04/25] perf tools: Add support for AUX area recording

From: Jiri Olsa
Date: Tue Mar 24 2015 - 07:08:37 EST


On Mon, Mar 16, 2015 at 02:41:26PM +0200, Adrian Hunter wrote:

SNIP

> +
> +int perf_event__synthesize_auxtrace(struct perf_tool *tool,
> + perf_event__handler_t process,
> + size_t size, u64 offset, u64 ref, int idx,
> + u32 tid, u32 cpu)
> +{
> + union perf_event ev;
> +
> + memset(&ev, 0, sizeof(ev));
> + ev.auxtrace.header.type = PERF_RECORD_AUXTRACE;
> + ev.auxtrace.header.size = sizeof(ev.auxtrace);
> + ev.auxtrace.size = size;
> + ev.auxtrace.offset = offset;
> + ev.auxtrace.reference = ref;
> + ev.auxtrace.idx = idx;
> + ev.auxtrace.tid = tid;
> + ev.auxtrace.cpu = cpu;
> +
> + return process(tool, &ev, NULL, NULL);
> +}

I dont see this one being used/called from any place in your branch,
was it meant to be called from auxtrace_mmap__read?

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