Linux Kernel Selftest development
 help / color / mirror / Atom feed
From: Yuanhe Shu <xiangzao@linux.alibaba.com>
To: keescook@chromium.org, tony.luck@intel.com, gpiccoli@igalia.com,
	shuah@kernel.org, corbet@lwn.net
Cc: xlpang@linux.alibaba.com, linux-kernel@vger.kernel.org,
	xiangzao@linux.alibaba.com, yixingrui@linux.alibaba.com,
	linux-doc@vger.kernel.org, linux-hardening@vger.kernel.org,
	linux-kselftest@vger.kernel.org
Subject: [PATCH v4 0/4] pstore: add multi-backend suuport
Date: Fri,  8 Mar 2024 11:16:52 +0800	[thread overview]
Message-ID: <20240308031656.9672-1-xiangzao@linux.alibaba.com> (raw)

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/20230928024244.257687-1-xiangzao@linux.alibaba.com/

Changes in v3:
- Fix ftrace.c build error
- Link to v2: https://lore.kernel.org/all/20240205122852.7069-1-xiangzao@linux.alibaba.com/

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/20230928024244.257687-1-xiangzao@linux.alibaba.com/

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(-)

-- 
2.39.3


             reply	other threads:[~2024-03-08  3:17 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-08  3:16 Yuanhe Shu [this message]
2024-03-08  3:16 ` [PATCH v4 1/4] pstore: add multi-backend support Yuanhe Shu
2024-03-08  3:16 ` [PATCH v4 2/4] pstore: add a /sys/module entry for loaded backends Yuanhe Shu
2024-03-08  3:16 ` [PATCH v4 3/4] Documentation: adjust pstore backend related document Yuanhe Shu
2024-03-08  3:16 ` [PATCH v4 4/4] tools/testing: adjust pstore backend related selftest Yuanhe Shu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240308031656.9672-1-xiangzao@linux.alibaba.com \
    --to=xiangzao@linux.alibaba.com \
    --cc=corbet@lwn.net \
    --cc=gpiccoli@igalia.com \
    --cc=keescook@chromium.org \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-hardening@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=shuah@kernel.org \
    --cc=tony.luck@intel.com \
    --cc=xlpang@linux.alibaba.com \
    --cc=yixingrui@linux.alibaba.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox