[PATCH 0/5] pstore: add tty frontend and multi-backend

2023-09-27 Thread Yuanhe Shu
. kexec-tools modification can be seen at https://github.com/shuyuanmen/kexec-tools/blob/main/Add-pstore-segment.patch Yuanhe Shu (5): pstore: add tty frontend pstore: add multi-backends support pstore: add subdirs for multi-backends pstore: remove the module parameter "backend&quo

[PATCH 1/5] pstore: add tty frontend

2023-09-27 Thread Yuanhe Shu
x27;t have serial access. Furthermore, by enabling tty frontend and console/dmesg frontend in dump capture kernel, one can collect kernel and user messages to discover why kdump service works abnormal. Signed-off-by: Yuanhe Shu Signed-off-by: Xingrui Yi --- drivers/tty/n_tty.c | 1 +

[PATCH 2/5] pstore: add multi-backends support

2023-09-27 Thread Yuanhe Shu
e existing backend in order to use the new ones. To enable pstore to support multiple backends, "psinfo" is replaced by "psinfo_list", a list that holds multiple "psinfo". If multiple backends are registered with the same frontend, the frontend is reused. Signed-off-b

[PATCH 3/5] pstore: add subdirs for multi-backends

2023-09-27 Thread Yuanhe Shu
-by: Xingrui Yi Signed-off-by: Yuanhe Shu --- fs/pstore/inode.c | 80 -- fs/pstore/internal.h | 1 + fs/pstore/platform.c | 5 ++- include/linux/pstore.h | 2 ++ 4 files changed, 77 insertions(+), 11 deletions(-) diff --git a/fs/pstore/inode.c b

[PATCH 4/5] pstore: remove the module parameter "backend"

2023-09-27 Thread Yuanhe Shu
ned-off-by: Xingrui Yi Signed-off-by: Yuanhe Shu --- fs/pstore/platform.c | 10 -- 1 file changed, 10 deletions(-) diff --git a/fs/pstore/platform.c b/fs/pstore/platform.c index d576ee48527c..90c33c1ca39f 100644 --- a/fs/pstore/platform.c +++ b/fs/pstore/platform.c @@ -77,10 +77,6 @@ static DE

[PATCH 5/5] tools/pstore: update pstore selftests

2023-09-27 Thread Yuanhe Shu
Update pstore selftests as pstore now supports multi backends Signed-off-by: Yuanhe Shu --- tools/testing/selftests/pstore/common_tests | 4 1 file changed, 4 deletions(-) diff --git a/tools/testing/selftests/pstore/common_tests b/tools/testing/selftests/pstore/common_tests index

[PATCH v2 0/3] pstore: add multi-backend support

2024-02-05 Thread Yuanhe Shu
es and Guilherme for your suggestions. I firmly believe that a tty frontend is crucial for kdump debugging, and I am still dedicating effort to develop one. Hope in the future I can accomplish it with deeper comprehension with tty driver :) Yuanhe Shu (3): pstore: add multi-backend support Doc

[PATCH 1/3] pstore: add multi-backend support

2024-02-05 Thread Yuanhe Shu
multiple backends that are allowed to be registered by module parameter "pstore.backend=" separated by commas or "all" to enable all available backends. If no pstore.backend was specified, pstore would accept the first registered backend which is the same as before. Signed-o

[PATCH 3/3] tools/testing: adjust pstore backend related selftest

2024-02-05 Thread Yuanhe Shu
Pstore now supports multiple backends, the module parameter pstore.backend varies from 'registered backend' to 'backends that are allowed to register'. Adjust selftests to match the change. Signed-off-by: Yuanhe Shu --- tools/testing/selftests/pstore/common_tests |

[PATCH 2/3] Documentation: adjust pstore backend related document

2024-02-05 Thread Yuanhe Shu
Pstore now supports multiple backends, adjust related document. Signed-off-by: Yuanhe Shu --- Documentation/ABI/testing/pstore| 8 Documentation/admin-guide/kernel-parameters.txt | 4 +++- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Documentation/ABI

[PATCH 1/3] pstore: add multi-backend support

2024-02-06 Thread Yuanhe Shu
multiple backends that are allowed to be registered by module parameter "pstore.backend=" separated by commas or "all" to enable all available backends. If no pstore.backend was specified, pstore would accept the first registered backend which is the same as before. Signed-o

[PATCH v3 0/3] pstore: add multi-backend support

2024-02-06 Thread Yuanhe Shu
rehension with tty driver :) Yuanhe Shu (3): pstore: add multi-backend support Documentation: adjust pstore backend related document tools/testing: adjust pstore backend related selftest Documentation/ABI/testing/pstore | 8 +- .../admin-guide/kernel-parameters.txt

[PATCH 1/3] pstore: add multi-backend support

2024-02-06 Thread Yuanhe Shu
multiple backends that are allowed to be registered by module parameter "pstore.backend=" separated by commas or "all" to enable all available backends. If no pstore.backend was specified, pstore would accept the first registered backend which is the same as before. Signed-o

[PATCH 3/3] tools/testing: adjust pstore backend related selftest

2024-02-06 Thread Yuanhe Shu
Pstore now supports multiple backends, the module parameter pstore.backend varies from 'registered backend' to 'backends that are allowed to register'. Adjust selftests to match the change. Signed-off-by: Yuanhe Shu --- tools/testing/selftests/pstore/common_tests |

[PATCH 2/3] Documentation: adjust pstore backend related document

2024-02-06 Thread Yuanhe Shu
Pstore now supports multiple backends, adjust related document. Signed-off-by: Yuanhe Shu --- Documentation/ABI/testing/pstore| 8 Documentation/admin-guide/kernel-parameters.txt | 4 +++- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Documentation/ABI

Re: [PATCH 1/3] pstore: add multi-backend support

2024-02-20 Thread Yuanhe Shu
On 2024/2/7 20:48, Kees Cook wrote: On Wed, Feb 07, 2024 at 10:19:19AM +0800, Yuanhe Shu wrote: Currently, pstore supports only one backend open at a time. Specifically, due to the global variable "psinfo", pstore only accepts the first registered backend. If a new backend wants t

Re: [PATCH 3/3] tools/testing: adjust pstore backend related selftest

2024-02-20 Thread Yuanhe Shu
On 2024/2/7 20:53, Kees Cook wrote: On Wed, Feb 07, 2024 at 10:19:21AM +0800, Yuanhe Shu wrote: Pstore now supports multiple backends, the module parameter pstore.backend varies from 'registered backend' to 'backends that are allowed to register'. Adjust selftests

Re: [PATCH] selftests/ftrace: Limit length in subsystem-enable tests

2024-02-22 Thread Yuanhe Shu
On 2024/2/5 21:21, Steven Rostedt wrote: On Mon, 5 Feb 2024 21:12:33 +0800 Yuanhe Shu wrote: While sched* events being traced and sched* events continuously happen, "[xx] event tracing - enable/disable with subsystem level files" would never stop as it cat an endless output.

[PATCH v2] selftests/ftrace: Limit length in subsystem-enable tests

2024-02-25 Thread Yuanhe Shu
ore than 3 types of sched events. Fixes: 815b18ea66d6 ("ftracetest: Add basic event tracing test cases") Cc: sta...@vger.kernel.org Signed-off-by: Yuanhe Shu --- .../selftests/ftrace/test.d/event/subsystem-enable.tc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff -

[PATCH v4 0/4] pstore: add multi-backend suuport

2024-03-07 Thread Yuanhe Shu
uot;, but "backends eligible for registration". - drop subdir since it will break user space - drop tty frontend since I haven't yet devised a satisfactory implementation strategy - Link to v1: https://lore.kernel.org/all/20230928024244.257687-1-xiang...@linux.alibaba.com/

[PATCH v4 1/4] pstore: add multi-backend support

2024-03-07 Thread Yuanhe Shu
multiple backends that are allowed to be registered by module parameter "pstore.backend=" separated by commas or "all" to enable all available backends. If no pstore.backend was specified, pstore would accept the first registered backend which is the same as before. Signed-o

[PATCH v4 2/4] pstore: add a /sys/module entry for loaded backends

2024-03-07 Thread Yuanhe Shu
Introduce a /sys/module entry for loaded pstore backends which provide users and testcases with a standarized interface to retrieve information on which pstore backends are currently registered. Signed-off-by: Yuanhe Shu --- fs/pstore/inode.c| 38 ++ fs

[PATCH v4 4/4] tools/testing: adjust pstore backend related selftest

2024-03-07 Thread Yuanhe Shu
lftests to match the change. Signed-off-by: Yuanhe Shu --- tools/testing/selftests/pstore/common_tests | 8 +-- .../selftests/pstore/pstore_post_reboot_tests | 67 ++- tools/testing/selftests/pstore/pstore_tests | 2 +- 3 files changed, 40 insertions(+), 37 deletions(-) diff -

[PATCH v4 3/4] Documentation: adjust pstore backend related document

2024-03-07 Thread Yuanhe Shu
Pstore now supports multiple backends, adjust related document. Signed-off-by: Yuanhe Shu --- Documentation/ABI/testing/pstore| 8 Documentation/admin-guide/kernel-parameters.txt | 4 +++- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Documentation/ABI