From: "Zhang, Yanmin" <yanmin_zhang@linux.intel.com>
To: Liu hua <sdu.liu@huawei.com>, "Luck, Tony" <tony.luck@intel.com>,
"anton@enomsg.org" <anton@enomsg.org>,
"ccross@android.com" <ccross@android.com>,
"keescook@chromium.org" <keescook@chromium.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>,
"peifeiyue@huawei.com" <peifeiyue@huawei.com>,
Liu ShuoX <shuox.liu@intel.com>
Subject: Re: Should Pstore(ramoops) records customized information?
Date: Wed, 25 Jun 2014 08:41:03 +0800 [thread overview]
Message-ID: <53AA1A9F.8030108@linux.intel.com> (raw)
In-Reply-To: <53A41125.4080802@huawei.com>
On 2014/6/20 18:47, Liu hua wrote:
> On 2014/6/20 7:42, Luck, Tony wrote:
>
>>> BTW, I note that "extern struct pstore_info *psinfo" locates in
>>> fs/pstore/internal.h. So users out of directory "fs/pstore/" can not use pstore to
>>> record messages. We do not want other kernel users to use pstore, right? And can we
>>> break this?
>> Yes we can make some interface visible to the rest of the kernel ... probably
>> not the raw "*psinfo" though. Perhaps the pstore_alloc_ring_buffer() and
>> pstore_write_ring_buffer() functions should be the ones exported to the
>> rest of the kernel.
>>
>>> ditoo.. Since other backends like efi and erst may can not privide such ring buffer.
>>> So pstore_alloc_ring_buffer should be a funciton pointer of pstore_info struct.
>> Yes - that allows less capable backend like ERST and efivars to not provide the
>> service. Since it becomes internal, you can drop the "pstore_" prefix. E.g.
>> something like:
>>
>> int pstore_alloc_ring_buffer(char *name, int size)
>> {
>> return psinfo->alloc_ring_buffer(name, size);
>> }
>> EXPORT_SYMBOL_GPL(pstore_alloc_ring_buffer);
>>
>> ... and you have to find/make some global header for the "extern" declaration.
> I will make these RFC patch series according to our discussion. Thanks you very to
> valuable advice.
Sorry for seeing your email late.We already worked out some patches to restructure
pstore. Would you like to try patchset http://article.gmane.org/gmane.linux.kernel/1697680/?
We have more patches available to add some flags to disable/enable specific zones.
Yanmin
next prev parent reply other threads:[~2014-06-25 0:41 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <539E6D4D.5000802@huawei.com>
2014-06-18 10:07 ` Should Pstore(ramoops) records customized information? Liu hua
2014-06-18 17:50 ` Luck, Tony
2014-06-19 12:21 ` Liu hua
2014-06-19 23:42 ` Luck, Tony
2014-06-20 10:47 ` Liu hua
2014-06-25 0:41 ` Zhang, Yanmin [this message]
2014-06-25 13:08 ` Liu hua
2014-06-26 0:57 ` Zhang, Yanmin
2014-06-27 12:06 ` Liu hua
2014-06-30 9:05 ` Zhang, Yanmin
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=53AA1A9F.8030108@linux.intel.com \
--to=yanmin_zhang@linux.intel.com \
--cc=anton@enomsg.org \
--cc=ccross@android.com \
--cc=keescook@chromium.org \
--cc=linux-kernel@vger.kernel.org \
--cc=peifeiyue@huawei.com \
--cc=sdu.liu@huawei.com \
--cc=shuox.liu@intel.com \
--cc=tony.luck@intel.com \
--cc=wangnan0@huawei.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;
as well as URLs for NNTP newsgroup(s).