Support backend for ftrace. To enable ftrace backend, just make ftrace_size be greater than 0 and a multiple of 4096.
Showing the changes to include/linux (1 of 4 files). Show all
Unified · Split
| @@ -19,6 +19,7 @@ typedef ssize_t (*pstore_zone_write_op)(const char *, size_t, loff_t); · 18 unmodified lines | ||
| 19 | 19 | * @max_reason: Maximum kmsg dump reason to store. |
| 20 | 20 | * @pmsg_size: The size of pmsg zone which is the same as @kmsg_size. |
| 21 | 21 | * @console_size:The size of console zone which is the same as @kmsg_size. |
| 22 | + * @ftrace_size:The size of ftrace zone which is the same as @kmsg_size. | |
| 22 | 23 | * @read: The general read operation. Both of the function parameters |
| 23 | 24 | * @size and @offset are relative value to storage. |
| 24 | 25 | * On success, the number of bytes should be returned, others |
| @@ -37,6 +38,7 @@ struct pstore_zone_info { · 12 unmodified lines | ||
| 37 | 38 | int max_reason; |
| 38 | 39 | unsigned long pmsg_size; |
| 39 | 40 | unsigned long console_size; |
| 41 | + unsigned long ftrace_size; | |
| 40 | 42 | pstore_zone_read_op read; |
| 41 | 43 | pstore_zone_write_op write; |
| 42 | 44 | pstore_zone_write_op panic_write; |