Arnaldo Carvalho de Melo
3b1fff0803
perf core: Add a 'nr' field to perf_event_callchain_context
...
We will use it to count how many addresses are in the entry->ip[] array,
excluding PERF_CONTEXT_{KERNEL,USER,etc} entries, so that we can really
return the number of entries specified by the user via the relevant
sysctl, kernel.perf_event_max_contexts, or via the per event
perf_event_attr.sample_max_stack knob.
This way we keep the perf_sample->ip_callchain->nr meaning, that is the
number of entries, be it real addresses or PERF_CONTEXT_ entries, while
honouring the max_stack knobs, i.e. the end result will be max_stack
entries if we have at least that many entries in a given stack trace.
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/n/tip-s8teto51tdqvlfhefndtat9r@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2016-05-16 23:11:51 -03:00
..
2014-10-20 16:20:15 +02:00
2013-07-10 13:56:10 -07:00
2016-03-20 21:28:58 -07:00
2014-05-18 19:01:27 -07:00
2014-10-20 16:20:15 +02:00
2014-05-18 19:01:30 -07:00
2014-10-20 16:20:15 +02:00
2016-04-27 17:27:37 -04:00
2014-10-20 16:20:15 +02:00
2016-03-20 21:28:58 -07:00
2016-04-21 16:43:47 -04:00
2016-04-21 16:43:47 -04:00
2014-05-18 19:01:29 -07:00
2014-05-18 19:01:29 -07:00
2011-10-31 19:30:54 -04:00
2014-09-16 18:31:31 -07:00
2014-10-18 23:03:09 -04:00
2014-01-28 23:38:23 -08:00
2015-05-31 22:15:01 -07:00
2016-03-20 21:28:58 -07:00
2012-05-27 23:52:49 -07:00
2012-10-14 19:26:52 -04:00
2016-04-27 17:27:37 -04:00
2014-03-07 10:06:14 -05:00
2012-07-26 16:46:15 -07:00
2016-04-27 17:27:37 -04:00
2010-08-08 22:07:36 -07:00
2015-03-19 18:54:49 -07:00
2016-01-31 11:06:24 -08:00
2014-10-24 09:52:49 -07:00
2016-01-06 16:31:56 -05:00
2015-05-05 13:35:39 -06:00
2015-11-04 11:30:57 -08:00
2016-03-20 21:28:58 -07:00
2014-04-29 01:12:25 -04:00
2015-07-31 22:20:05 +02:00
2014-05-18 19:01:29 -07:00
2015-08-03 11:34:12 +02:00
2016-03-20 21:28:58 -07:00
2013-02-06 11:04:10 -08:00
2014-05-18 19:01:34 -07:00
2014-08-26 13:45:55 -04:00
2010-04-14 02:04:29 -07:00
2014-10-05 16:53:40 -07:00
2015-11-04 11:30:57 -08:00
2010-03-30 22:02:32 +09:00
2016-03-20 21:28:58 -07:00
2015-09-16 15:47:51 +02:00
2015-09-16 15:47:51 +02:00
2015-03-19 10:17:22 -05:00
2014-04-29 01:12:27 -04:00
2014-12-11 18:51:56 -08:00
2014-05-18 19:01:29 -07:00
2015-12-23 10:41:31 -05:00
2016-04-27 17:27:37 -04:00
2015-02-13 21:21:42 -08:00
2014-08-26 13:45:55 -04:00
2012-04-15 10:28:49 -07:00
2012-07-06 07:16:34 -05:00
2014-04-29 01:12:27 -04:00
2015-10-29 17:35:46 -05:00
2014-10-20 16:20:15 +02:00
2015-10-29 17:35:46 -05:00
2014-11-23 13:01:45 +01:00
2014-10-20 16:20:15 +02:00
2014-10-20 16:20:15 +02:00
2014-12-14 16:10:09 -08:00
2015-11-04 11:30:57 -08:00
2014-05-18 19:01:29 -07:00
2016-04-21 16:43:45 -04:00
2015-03-12 15:04:01 -05:00
2015-03-19 18:54:49 -07:00
2016-05-16 23:11:51 -03:00
2014-10-20 16:20:15 +02:00
2014-10-20 16:20:15 +02:00
2015-08-04 09:48:12 +02:00
2016-03-20 21:28:58 -07:00
2011-10-31 19:30:54 -04:00
2014-05-18 19:01:31 -07:00
2013-06-13 22:12:14 +01:00
2011-06-07 16:06:34 -07:00
2014-05-18 19:01:29 -07:00
2011-06-07 16:06:34 -07:00
2014-05-18 19:01:29 -07:00
2014-04-29 01:12:26 -04:00
2014-09-23 16:21:26 -04:00
2012-03-28 18:30:03 +01:00
2012-05-27 23:52:49 -07:00
2015-12-24 12:07:16 -05:00
2013-01-21 14:33:00 -08:00
2016-03-20 21:28:58 -07:00
2016-04-21 16:43:47 -04:00
2016-03-20 21:28:58 -07:00
2015-02-12 18:54:12 -08:00
2016-03-01 00:25:32 -05:00
2012-03-28 18:30:03 +01:00
2012-03-28 18:30:03 +01:00
2011-08-20 17:14:54 -07:00
2016-03-01 20:36:57 +01:00
2016-03-01 20:36:57 +01:00
2014-01-28 23:38:23 -08:00
2016-01-31 11:06:24 -08:00
2016-04-27 17:27:37 -04:00
2011-08-02 21:28:52 -07:00
2011-10-31 19:30:53 -04:00
2015-03-01 21:33:58 -08:00
2015-07-31 22:20:05 +02:00
2014-08-26 13:45:55 -04:00
2015-07-31 22:20:05 +02:00
2015-08-10 11:41:05 +02:00
2014-09-16 17:46:44 -07:00
2014-07-21 22:27:56 -07:00
2014-05-18 19:01:31 -07:00
2014-05-18 19:01:28 -07:00
2016-03-20 21:28:58 -07:00
2016-01-21 16:06:00 -08:00
2016-03-20 21:28:58 -07:00
2016-03-29 18:39:26 -07:00
2016-03-29 18:39:26 -07:00
2014-05-18 19:01:31 -07:00
2015-08-10 11:41:05 +02:00
2015-08-10 11:41:05 +02:00
2014-01-28 23:38:23 -08:00
2014-10-24 09:52:49 -07:00
2015-04-12 21:03:21 +02:00
2015-04-12 21:03:21 +02:00
2014-10-18 23:03:09 -04:00
2012-05-19 23:27:25 -07:00
2012-05-19 23:26:41 -07:00
2011-02-01 12:39:59 -08:00
2011-03-16 18:19:15 -07:00
2014-07-21 21:37:06 -07:00
2016-03-20 21:28:58 -07:00
2016-04-27 17:27:37 -04:00
2016-04-21 16:43:46 -04:00
2014-09-30 14:17:08 -07:00
2012-10-26 15:18:37 -07:00
2016-04-27 17:27:37 -04:00
2014-04-29 01:12:25 -04:00
2016-04-27 17:27:37 -04:00
2012-05-27 23:52:49 -07:00
2012-05-27 23:52:49 -07:00