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
19 * @max_reason: Maximum kmsg dump reason to store.19 * @max_reason: Maximum kmsg dump reason to store.
20 * @pmsg_size: The size of pmsg zone which is the same as @kmsg_size.20 * @pmsg_size: The size of pmsg zone which is the same as @kmsg_size.
21 * @console_size:The size of console zone which is the same as @kmsg_size.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 * @read: The general read operation. Both of the function parameters23 * @read: The general read operation. Both of the function parameters
23 * @size and @offset are relative value to storage.24 * @size and @offset are relative value to storage.
24 * On success, the number of bytes should be returned, others25 * On success, the number of bytes should be returned, others
@@ -37,6 +38,7 @@ struct pstore_zone_info { · 12 unmodified lines
37 int max_reason;38 int max_reason;
38 unsigned long pmsg_size;39 unsigned long pmsg_size;
39 unsigned long console_size;40 unsigned long console_size;
41 unsigned long ftrace_size;
40 pstore_zone_read_op read;42 pstore_zone_read_op read;
41 pstore_zone_write_op write;43 pstore_zone_write_op write;
42 pstore_zone_write_op panic_write;44 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