* using dev_coredumpv
@ 2015-09-07 9:47 Arend van Spriel
2015-09-07 9:54 ` Johannes Berg
0 siblings, 1 reply; 3+ messages in thread
From: Arend van Spriel @ 2015-09-07 9:47 UTC (permalink / raw)
To: Johannes Berg; +Cc: linux-wireless@vger.kernel.org
Hi Johannes,
I am looking at devcoredump subsystem and I was wondering about the
lifetime of the devcd folder. With dev_coredumpm() the description says:
"If a previous one hasn't been read yet, the new coredump is
discarded.". I am wondering what "read" means here. For testing I call
dev_coredumpv() every second, but when I hexdump the data file it does
not create a new devcd folder. That only occurs after 5 minutes. Is that
expected?
Regards,
Arend
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: using dev_coredumpv
2015-09-07 9:47 using dev_coredumpv Arend van Spriel
@ 2015-09-07 9:54 ` Johannes Berg
2015-09-07 16:35 ` Arend van Spriel
0 siblings, 1 reply; 3+ messages in thread
From: Johannes Berg @ 2015-09-07 9:54 UTC (permalink / raw)
To: Arend van Spriel; +Cc: linux-wireless@vger.kernel.org
On Mon, 2015-09-07 at 11:47 +0200, Arend van Spriel wrote:
> Hi Johannes,
>
> I am looking at devcoredump subsystem and I was wondering about the
> lifetime of the devcd folder. With dev_coredumpm() the description says:
> "If a previous one hasn't been read yet, the new coredump is
> discarded.". I am wondering what "read" means here. For testing I call
> dev_coredumpv() every second, but when I hexdump the data file it does
> not create a new devcd folder. That only occurs after 5 minutes. Is that
> expected?
I suppose "read" should say "discarded by userspace", but I always
assumed userspace would read the file and then discard the coredump by
writing (anything iirc) to the file.
IOW - yes, this is expected, you should write to the data file which
makes it (and the folder) disappear and allows creating a new one.
johannes
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: using dev_coredumpv
2015-09-07 9:54 ` Johannes Berg
@ 2015-09-07 16:35 ` Arend van Spriel
0 siblings, 0 replies; 3+ messages in thread
From: Arend van Spriel @ 2015-09-07 16:35 UTC (permalink / raw)
To: Johannes Berg; +Cc: linux-wireless@vger.kernel.org
On 09/07/2015 11:54 AM, Johannes Berg wrote:
> On Mon, 2015-09-07 at 11:47 +0200, Arend van Spriel wrote:
>> Hi Johannes,
>>
>> I am looking at devcoredump subsystem and I was wondering about the
>> lifetime of the devcd folder. With dev_coredumpm() the description says:
>> "If a previous one hasn't been read yet, the new coredump is
>> discarded.". I am wondering what "read" means here. For testing I call
>> dev_coredumpv() every second, but when I hexdump the data file it does
>> not create a new devcd folder. That only occurs after 5 minutes. Is that
>> expected?
>
> I suppose "read" should say "discarded by userspace", but I always
> assumed userspace would read the file and then discard the coredump by
> writing (anything iirc) to the file.
Thanks. Went back to devcoredump.c and reading the code found that
devcd_data_write schedules devcd_del work without any condition. Sorry
for being lazy.
Gr. AvS
> IOW - yes, this is expected, you should write to the data file which
> makes it (and the folder) disappear and allows creating a new one.
>
> johannes
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-09-07 16:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-07 9:47 using dev_coredumpv Arend van Spriel
2015-09-07 9:54 ` Johannes Berg
2015-09-07 16:35 ` Arend van Spriel
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).