Dave Martin
27e64b4be4
regset: Add support for dynamically sized regsets
...
Currently the regset API doesn't allow for the possibility that
regsets (or at least, the amount of meaningful data in a regset)
may change in size.
In particular, this results in useless padding being added to
coredumps if a regset's current size is smaller than its
theoretical maximum size.
This patch adds a get_size() function to struct user_regset.
Individual regset implementations can implement this function to
return the current size of the regset data. A regset_size()
function is added to provide callers with an abstract interface for
determining the size of a regset without needing to know whether
the regset is dynamically sized or not.
The only affected user of this interface is the ELF coredump code:
This patch ports ELF coredump to dump regsets with their actual
size in the coredump. This has no effect except for new regsets
that are dynamically sized and provide a get_size() implementation.
Signed-off-by: Dave Martin <Dave.Martin@arm.com >
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com >
Cc: Oleg Nesterov <oleg@redhat.com >
Cc: Alexander Viro <viro@zeniv.linux.org.uk >
Cc: Thomas Gleixner <tglx@linutronix.de >
Cc: Ingo Molnar <mingo@redhat.com >
Cc: "H. Peter Anvin" <hpa@zytor.com >
Cc: Dmitry Safonov <dsafonov@virtuozzo.com >
Cc: H. J. Lu <hjl.tools@gmail.com >
Signed-off-by: Will Deacon <will.deacon@arm.com >
2017-11-03 15:24:11 +00:00
..
2017-09-08 18:26:48 -07:00
2017-09-06 19:56:49 +02:00
2017-09-13 11:04:14 -07:00
2017-09-09 14:18:40 -07:00
2017-09-07 13:51:13 -07:00
2017-09-15 20:43:33 -07:00
2017-09-09 14:48:21 -07:00
2017-09-06 14:45:08 -07:00
2017-09-06 14:45:08 -07:00
2017-09-07 12:24:50 -07:00
2017-09-04 12:54:42 +02:00
2017-07-27 13:43:22 +01:00
2017-09-10 20:35:46 -07:00
2017-08-30 17:31:51 +02:00
2017-09-06 20:49:49 -07:00
2017-09-10 20:40:00 -07:00
2017-09-11 22:01:44 -07:00
2017-10-16 14:26:03 +01:00
2017-09-05 12:50:00 -07:00
2017-09-01 16:35:50 -05:00
2013-03-12 13:59:14 -07:00
2017-09-22 16:16:41 -10:00
2017-03-02 08:32:46 +01:00
2017-07-12 16:26:05 -07:00
2017-09-07 11:59:42 -07:00
2017-09-08 18:26:49 -07:00
2017-09-08 18:26:48 -07:00
2017-09-25 08:56:05 -06:00
2017-09-08 21:11:00 -07:00
2017-09-07 21:11:05 -07:00
2017-07-10 16:32:34 -07:00
2016-02-22 08:51:38 +01:00
2017-09-01 14:57:15 -05:00
2017-06-30 12:00:51 -07:00
2017-09-07 11:59:42 -07:00
2016-04-19 16:54:26 -07:00
2017-06-12 10:54:47 +02:00
2014-01-21 20:18:26 -08:00
2017-09-14 17:37:26 -07:00
2017-09-04 12:21:28 -07:00
2017-09-04 12:21:28 -07:00
2017-08-29 15:14:38 +02:00
2015-12-07 00:02:05 +00:00
2016-06-25 09:04:48 -07:00
2016-08-02 16:11:27 -04:00
2017-05-26 10:10:46 +02:00
2017-09-04 00:05:22 +02:00
2017-10-19 17:06:35 +01:00
2017-09-04 00:06:02 +02:00
2017-09-08 18:26:51 -07:00
2017-09-07 11:45:21 +02:00
2017-09-14 13:43:16 -07:00
2017-09-05 12:53:11 +02:00
2017-07-17 16:25:11 +02:00
2016-07-26 16:19:19 -07:00
2016-04-15 11:20:32 -07:00
2017-08-28 10:22:27 +09:00
2017-09-11 11:00:55 -04:00
2017-09-18 13:22:30 +02:00
2017-09-12 13:30:06 -07:00
2017-09-06 21:55:10 +05:30
2014-09-29 00:04:55 -04:00
2017-09-12 13:27:21 -07:00
2008-01-28 23:21:18 +01:00
2016-05-27 16:03:22 -07:00
2016-05-17 15:48:12 -04:00
2017-03-21 18:44:17 -07:00
2017-07-29 09:01:02 -04:00
2017-03-12 23:54:07 -07:00
2017-08-18 16:30:17 -07:00
2017-02-03 08:28:25 -08:00
2016-10-15 10:03:15 -07:00
2017-09-14 20:18:45 -07:00
2017-09-06 17:27:26 -07:00
2017-08-31 09:47:22 -06:00
2017-09-13 18:53:16 -07:00
2017-09-05 11:54:41 -07:00
2017-09-08 18:26:46 -07:00
2017-06-30 04:14:14 -04:00
2017-09-08 18:26:45 -07:00
2017-09-07 09:25:15 -07:00
2016-09-05 13:52:38 +02:00
2012-10-13 10:46:48 +01:00
2017-09-01 18:38:09 -07:00
2017-07-01 07:39:08 -07:00
2017-09-08 18:26:49 -07:00
2017-03-24 20:51:49 -04:00
2017-09-21 16:31:22 -07:00
2017-08-10 16:28:53 +02:00
2017-09-08 18:26:49 -07:00
2017-09-08 18:26:49 -07:00
2017-09-27 17:02:45 +02:00
2017-09-08 18:26:46 -07:00
2017-09-08 18:26:51 -07:00
2017-09-08 18:26:51 -07:00
2017-09-21 11:54:44 +02:00
2017-10-24 16:03:28 +01:00
2017-09-05 12:50:00 -07:00
2017-09-08 18:26:47 -07:00
2017-09-25 15:19:57 +01:00
2017-09-08 18:26:51 -07:00
2012-07-21 10:34:00 -07:00
2010-03-15 15:29:39 +01:00
2017-08-02 16:34:47 -07:00
2013-01-06 01:11:25 -08:00
2009-06-16 19:47:57 -07:00
2015-11-25 09:22:02 -07:00
2017-09-12 13:21:00 -07:00
2017-01-04 13:22:38 -07:00
2017-09-05 14:42:52 -07:00
2017-09-07 11:53:11 +02:00
2017-09-06 17:27:27 -07:00
2017-09-08 18:26:46 -07:00
2017-02-24 17:46:56 -08:00
2017-09-08 18:26:46 -07:00
2017-09-08 18:26:46 -07:00
2017-09-08 18:26:46 -07:00
2017-05-18 16:59:06 +02:00
2017-09-08 18:26:45 -07:00
2017-09-08 18:26:49 -07:00
2016-07-26 16:19:19 -07:00
2017-09-08 18:26:47 -07:00
2017-07-29 23:39:23 +02:00
2015-03-12 18:46:08 -07:00
2017-07-02 15:37:23 -07:00
2009-04-01 07:38:54 -04:00
2017-09-14 17:37:26 -07:00
2017-07-24 13:52:59 -07:00
2017-09-06 14:45:08 -07:00
2017-09-06 12:32:37 -04:00
2017-07-06 16:24:32 -07:00
2017-09-25 12:42:11 -06:00
2017-09-25 08:56:05 -06:00
2017-09-19 12:20:44 -05:00
2017-09-06 17:27:28 -07:00
2017-09-06 17:27:26 -07:00
2017-09-06 17:27:27 -07:00
2016-12-06 10:17:03 +02:00
2017-06-30 12:00:51 -07:00
2017-09-07 13:24:11 -05:00
2017-09-25 11:08:20 -05:00
2017-09-07 13:24:20 -05:00
2017-09-04 13:56:37 -07:00
2017-08-21 12:47:31 -07:00
2017-06-28 01:52:52 +02:00
2017-09-08 18:26:51 -07:00
2017-09-08 18:26:51 -07:00
2017-09-08 18:26:47 -07:00
2017-06-28 22:49:11 +10:00
2017-08-01 15:22:55 -07:00
2016-03-17 15:09:34 -07:00
2010-02-10 17:47:17 -08:00
2017-09-08 18:26:48 -07:00
2017-09-08 18:26:48 -07:00
2017-09-07 21:11:05 -07:00
2017-08-17 10:40:26 +02:00
2017-07-03 16:20:28 +01:00
2017-11-03 15:24:11 +00:00
2017-09-01 15:49:13 -07:00
2017-09-08 18:26:49 -07:00
2017-05-01 10:26:40 -04:00
2017-09-08 18:26:49 -07:00
2017-08-24 16:34:51 +02:00
2017-09-08 18:26:49 -07:00
2017-09-29 11:02:57 +02:00
2017-09-12 13:21:00 -07:00
2016-04-30 09:26:55 -07:00
2017-09-14 17:37:26 -07:00
2015-02-13 21:21:39 -08:00
2016-06-03 08:37:25 +02:00
2017-05-18 17:38:24 +02:00
2017-09-14 17:37:26 -07:00
2017-09-06 17:27:28 -07:00
2017-09-06 17:27:24 -07:00
2017-09-07 20:02:39 -07:00
2017-09-06 17:27:24 -07:00
2017-08-03 21:37:29 -07:00
2017-09-04 11:52:29 -07:00
2017-06-08 18:52:42 -07:00
2017-08-17 08:10:04 -07:00
2016-03-25 16:37:42 -07:00
2017-03-08 09:18:02 +01:00
2016-04-21 10:47:26 +10:00
2017-09-11 12:29:41 -04:00
2016-06-11 14:57:56 -07:00
2017-09-15 16:57:10 +02:00
2017-09-08 18:26:46 -07:00
2017-09-08 18:26:46 -07:00
2017-07-31 10:55:24 -03:00
2017-09-17 19:45:32 +02:00
2017-05-25 18:30:51 +02:00
2017-09-14 17:37:26 -07:00
2017-09-28 16:30:36 +02:00
2015-04-22 17:06:49 +02:00
2017-09-20 14:10:29 -07:00
2014-11-19 22:01:15 -05:00
2017-09-08 18:26:51 -07:00
2017-09-11 18:34:47 -07:00
2017-09-06 17:27:29 -07:00
2017-09-08 18:26:47 -07:00
2017-09-08 18:26:48 -07:00
2017-06-20 12:19:14 +02:00
2017-09-14 09:56:18 -07:00
2017-09-05 06:34:17 -07:00
2017-03-22 20:11:33 -06:00