Skip to content

pstore: add multi-backend suuport

Yuanhe Shu linux-doc linux-hardening linux-kselftest lkml 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest4 patches 0 repliesNew
  2. v33 patches 5 repliesSuperseded
  3. v23 patches 0 repliesSuperseded

Changes in v4 from the cover letter

- Replace all rcu_read_lock with mutex
- Move bif_oops_buf, max_compressed_size and pstore_dumper into pstore_info_list
- add a helper to do "is this name in the list" and a helper to do
"is this backend loaded"
- make comments in pstore_(un)register clearer
- return the max_seen ret or the first negative err in write_pmsg()
- add a /sys/module entry for the list of backends, comma separated
- Link to v3: https://lore.kernel.org/all/[email protected]/

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4pstore: add multi-backend supportfs/pstore/ftrace.c fs/pstore/inode.c fs/pstore/internal.h +3 more+271 -1080 replies
2/4pstore: add a /sys/module entry for loaded backendsfs/pstore/inode.c fs/pstore/internal.h fs/pstore/platform.c+47 -10 replies
3/4Documentation: adjust pstore backend related documentDocumentation/ABI/testing/pstore Documentation/admin-guide/kernel-parameters.txt+7 -50 replies
4/4tools/testing: adjust pstore backend related selftesttools/testing/selftests/pstore/common_tests tools/testing/selftests/pstore/pstore_post_reboot_tests tools/testing/selftests/pstore/pstore_tests+40 -370 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

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

This is the 4th version of the patch set. In this patchset we aim to add pstore multi-backend support then user can register more than one pstore backend.

Changes in v4:
- Replace all rcu_read_lock with mutex
- Move bif_oops_buf, max_compressed_size and pstore_dumper into pstore_info_list
- add a helper to do "is this name in the list" and a helper to do
"is this backend loaded"
- make comments in pstore_(un)register clearer
- return the max_seen ret or the first negative err in write_pmsg()
- add a /sys/module entry for the list of backends, comma separated
- Link to v3: https://lore.kernel.org/all/[email protected]/

Changes in v3:
- Fix ftrace.c build error
- Link to v2: https://lore.kernel.org/all/[email protected]/

Changes in v2:
- pstore.backend no longer acts as "registered backend", 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/[email protected]/

Yuanhe Shu (4):
pstore: add multi-backend support
pstore: add a /sys/module entry for loaded backends
Documentation: adjust pstore backend related document tools/testing: adjust pstore backend related selftest

 Documentation/ABI/testing/pstore              |   8 +-
 .../admin-guide/kernel-parameters.txt         |   4 +-
 fs/pstore/ftrace.c                            |  27 +-
 fs/pstore/inode.c                             |  57 +++-
 fs/pstore/internal.h                          |   5 +-
 fs/pstore/platform.c                          | 274 ++++++++++++------
 fs/pstore/pmsg.c                              |  27 +-
 include/linux/pstore.h                        |  23 ++
 tools/testing/selftests/pstore/common_tests   |   8 +-
 .../selftests/pstore/pstore_post_reboot_tests |  67 +++--
 tools/testing/selftests/pstore/pstore_tests   |   2 +-
 11 files changed, 358 insertions(+), 144 deletions(-)
Signature · 1 line
2.39.3