Skip to content

pstore: ramoops: support multiple pmsg instances

Hiraku Toyooka linux-api lkml 1 version New

Get series with b4
b4 am 20151105023644.3367.94795.stgit@arietta

Versions newest first

  1. v1 Latest5 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5ramoops: use persistent_ram_free() instead of kfree() for freeing przfs/pstore/ram.c+3 -30 replies
2/5ramoops: introduce generic init/free functions for przfs/pstore/ram.c+35 -280 replies
3/5pstore: support multiple pmsg instancesfs/pstore/pmsg.c include/linux/pstore.h+19 -20 replies
4/5ramoops: support multiple pmsg instancesDocumentation/ramoops.txt fs/pstore/ram.c include/linux/pstore_ram.h+154 -220 replies
5/5selftests/pstore: add testcases for multiple pmsg instancestools/testing/selftests/pstore/common_tests tools/testing/selftests/pstore/pstore_post_reboot_tests tools/testing/selftests/pstore/pstore_tests+47 -170 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/5] pstore: ramoops: support multiple pmsg instances

The following series implements multiple pmsg. This feature allows userspace program to control individual content aging or priority.

If a pstore backend module(e.g. ramoops) requires the multiple pmsg instances when registering itself to pstore, multiple /dev/pmsg[ID] are created. Writes to each /dev/pmsg[ID] are isolated each other. After reboot, the contents are available in /sys/fs/pstore/pmsg-[backend]-[ID].

In addition, we add multiple pmsg support for ramoops. We can specify multiple pmsg area size by its module parameter as follows.

pmsg_size=0x1000,0x2000,...

---

Hiraku Toyooka (5):
ramoops: use persistent_ram_free() instead of kfree() for freeing prz
ramoops: introduce generic init/free functions for prz
pstore: support multiple pmsg instances
ramoops: support multiple pmsg instances selftests/pstore: add testcases for multiple pmsg instances

 Documentation/ramoops.txt                          |   22 ++
 fs/pstore/pmsg.c                                   |   20 ++
 fs/pstore/ram.c                                    |  213 +++++++++++++++-----
 include/linux/pstore.h                             |    1 
 include/linux/pstore_ram.h                         |    8 +
 tools/testing/selftests/pstore/common_tests        |   21 ++
 .../selftests/pstore/pstore_post_reboot_tests      |   27 +--
 tools/testing/selftests/pstore/pstore_tests        |   16 +-
 8 files changed, 257 insertions(+), 71 deletions(-)

--
Hiraku Toyooka