Robert Richter
fd0d000b2c
perf: Pass last sampling period to perf_sample_data_init()
...
We always need to pass the last sample period to
perf_sample_data_init(), otherwise the event distribution will be
wrong. Thus, modifiyng the function interface with the required period
as argument. So basically a pattern like this:
perf_sample_data_init(&data, ~0ULL);
data.period = event->hw.last_period;
will now be like that:
perf_sample_data_init(&data, ~0ULL, event->hw.last_period);
Avoids unininitialized data.period and simplifies code.
Signed-off-by: Robert Richter <robert.richter@amd.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1333390758-10893-3-git-send-email-robert.richter@amd.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
2012-05-09 15:23:12 +02:00
..
2012-03-28 18:30:01 +01:00
2011-10-17 09:11:51 +01:00
2012-03-30 21:03:54 +01:00
2011-11-17 16:58:00 +00:00
2010-07-07 16:38:36 +02:00
2010-07-07 16:38:36 +02:00
2012-03-21 01:59:40 -04:00
2011-03-23 19:47:19 -07:00
2012-03-29 18:02:10 -07:00
2011-10-31 19:30:49 -04:00
2009-12-24 18:34:08 +00:00
2011-09-13 11:12:14 +02:00
2009-12-09 10:02:18 +00:00
2012-03-28 18:30:01 +01:00
2012-03-29 18:02:10 -07:00
2012-02-21 17:04:10 -06:00
2011-07-22 23:09:07 +01:00
2011-10-31 19:30:50 -04:00
2012-03-28 18:30:01 +01:00
2011-05-26 10:31:06 +01:00
2012-03-24 09:38:55 +00:00
2011-05-11 15:12:32 +02:00
2012-03-28 18:30:01 +01:00
2012-03-28 18:30:01 +01:00
2012-03-28 18:30:01 +01:00
2012-03-30 11:51:46 +01:00
2012-03-24 09:38:56 +00:00
2011-10-31 19:30:49 -04:00
2012-03-29 16:53:48 -07:00
2009-11-18 08:37:40 -08:00
2011-08-11 10:10:26 +08:00
2012-03-24 09:38:56 +00:00
2010-10-29 13:14:40 -05:00
2011-11-30 23:54:54 +00:00
2012-03-28 18:30:01 +01:00
2011-11-30 23:54:54 +00:00
2011-11-26 21:58:53 +00:00
2011-12-13 08:52:03 +00:00
2011-11-26 21:58:53 +00:00
2011-09-20 18:17:43 +00:00
2012-04-02 08:53:24 -07:00
2011-09-20 18:17:43 +00:00
2011-12-21 15:52:57 -08:00
2012-03-29 16:53:48 -07:00
2012-03-30 16:45:39 -07:00
2011-08-23 15:30:33 +01:00
2011-12-13 08:52:02 +00:00
2012-03-24 09:38:55 +00:00
2012-03-24 09:38:55 +00:00
2012-05-09 15:23:12 +02:00
2012-05-09 15:23:12 +02:00
2012-05-09 15:23:12 +02:00
2012-03-29 16:53:48 -07:00
2011-10-31 19:30:48 -04:00
2011-11-16 10:06:42 +00:00
2012-03-29 16:53:48 -07:00
2012-03-30 12:17:33 +01:00
2011-08-28 10:39:41 +01:00
2011-10-31 19:30:49 -04:00
2012-03-24 09:38:53 +00:00
2012-04-15 22:00:30 +01:00
2012-03-29 16:53:48 -07:00
2009-10-25 15:39:37 +00:00
2012-03-28 18:30:01 +01:00
2011-10-25 08:19:29 +01:00
2012-03-28 17:14:35 -07:00
2012-04-15 22:00:29 +01:00
2012-04-02 08:53:24 -07:00
2011-10-31 19:30:49 -04:00
2011-12-06 14:04:14 +00:00
2011-12-13 08:52:03 +00:00
2011-10-31 19:30:49 -04:00
2011-04-29 15:53:14 +01:00
2012-03-28 18:30:01 +01:00
2012-03-28 18:30:01 +01:00
2012-02-04 10:32:18 +00:00
2011-11-30 23:55:21 +00:00
2012-03-29 16:53:48 -07:00
2011-12-15 14:02:19 -08:00
2012-02-09 16:25:37 +00:00
2011-10-31 19:30:48 -04:00