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:	Tue, 01 Mar 2011 16:35:14 +0100
From:	Peter Zijlstra <peterz@...radead.org>
To:	David Ahern <daahern@...co.com>
Cc:	linux-perf-users@...r.kernel.org, linux-kernel@...r.kernel.org,
	acme@...stprotocols.net, mingo@...e.hu, fweisbec@...il.com,
	paulus@...ba.org, tglx@...utronix.de
Subject: Re: [PATCH 3/6] perf record: add time-of-day option

On Tue, 2011-03-01 at 07:35 -0700, David Ahern wrote:
> 
> On 03/01/2011 07:29 AM, Peter Zijlstra wrote:
> 
> >> +/* add a sample to the event stream based on user request */
> >> +static int perf_event_generate_sample(struct perf_event *event)
> >> +{
> >> +       struct perf_sample_data data;
> >> +       struct pt_regs regs;
> >> +
> >> +       perf_fetch_caller_regs(&regs);
> >> +       event->pmu->read(event);
> >> +       perf_sample_data_init(&data, 0);
> >> +       data.period = event->hw.last_period;
> >> +       perf_event_output(event, 0, &data, &regs);
> >> +
> >> +       return 0;
> >> +}
> > 
> > I'm not quite sure why you need this.. 
> > 
> 
> periodic samples are generated after the specified period. I want the
> first sample immediately and the remainder based on the set period.
> 
> So generically, how do you get the first sample into the event stream
> and let the others happen based on the timer? I need not only the
> counter value but also the perf_clock timestamp that comes from the
> SAMPLE_TIME attribute.

Again, why?

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