lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Fri, 03 Dec 2010 16:45:10 +1100
From:	Ian Munsie <imunsie@....ibm.com>
To:	Arnaldo Carvalho de Melo <acme@...radead.org>
Cc:	Ingo Molnar <mingo@...e.hu>,
	linux-kernel <linux-kernel@...r.kernel.org>,
	Arnaldo Carvalho de Melo <acme@...hat.com>,
	Frederic Weisbecker <fweisbec@...il.com>,
	Mike Galbraith <efault@....de>,
	Peter Zijlstra <a.p.zijlstra@...llo.nl>,
	Paul Mackerras <paulus@...ba.org>,
	Stephane Eranian <eranian@...gle.com>
Subject: Re: [PATCH 2/4] perf events: Make sample_type identity fields available in all PERF_RECORD_ events

>      /*
> +     * If perf_event_attr.sample_id_all is set then all event types will
> +     * have the sample_type selected fields related to where/when
> +     * (identity) an event took place (TID, TIME, ID, CPU, STREAM_ID)
> +     * described in PERF_RECORD_SAMPLE below, it will be stashed just after
> +     * the perf_event_header and the fields already present for the existing
> +     * fields, i.e. at the end of the payload. That way a newer perf.data
> +     * file will be supported by older perf tools, with these new optional
> +     * fields being ignored.

I'd put a comment in each event to be clear, but this is fine too.

> @@ -3944,8 +3988,15 @@ static void perf_event_comm_output(struct perf_event *event,
>                       struct perf_comm_event *comm_event)
>  {
>      struct perf_output_handle handle;
> +    struct perf_sample_data sample;
>      int size = comm_event->event_id.header.size;
> -    int ret = perf_output_begin(&handle, event, size, 0, 0);
> +    int ret;

How about:

-    int size = comm_event->event_id.header.size;
-    int ret = perf_output_begin(&handle, event, size, 0, 0);
+    int size, ret;

Like you did for perf_event_mmap_output?


Other than that:

Acked-by: Ian Munsie <imunsie@....ibm.com>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ