History

pstore/zone,blk: Add ftrace frontend support

Support backend for ftrace. To enable ftrace backend, just make ftrace_size be greater than 0 and a multiple of 4096.

WeiXiong Liao committed 6 years ago

Commit 34327e91 parent cc9c4d14 files · +136 −1Browse files

Showing the changes to include/linux (1 of 4 files). Show all

Unified · Split

include/linux/pstore_zone.h+2−0
@@ -19,6 +19,7 @@ typedef ssize_t (*pstore_zone_write_op)(const char *, size_t, loff_t); · 18 unmodified lines
1919 * @max_reason: Maximum kmsg dump reason to store.
2020 * @pmsg_size: The size of pmsg zone which is the same as @kmsg_size.
2121 * @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.
2223 * @read: The general read operation. Both of the function parameters
2324 * @size and @offset are relative value to storage.
2425 * On success, the number of bytes should be returned, others
@@ -37,6 +38,7 @@ struct pstore_zone_info { · 12 unmodified lines
3738 int max_reason;
3839 unsigned long pmsg_size;
3940 unsigned long console_size;
41+ unsigned long ftrace_size;
4042 pstore_zone_read_op read;
4143 pstore_zone_write_op write;
4244 pstore_zone_write_op panic_write;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t