Re: [PATCH 2/4] devcoredump: allow to create several coredump files in one device

2019-05-02 Thread Akinobu Mita
2019年5月2日(木) 21:47 Johannes Berg : > > On Thu, 2019-05-02 at 17:59 +0900, Akinobu Mita wrote: > > > > static void devcd_del(struct work_struct *wk) > > { > > struct devcd_entry *devcd; > > + int i; > > > > devcd = container_of(wk, struct devcd_entry, del_wk.work); > > > > +

Re: [PATCH 2/4] devcoredump: allow to create several coredump files in one device

2019-05-02 Thread Johannes Berg
On Thu, 2019-05-02 at 17:59 +0900, Akinobu Mita wrote: > > static void devcd_del(struct work_struct *wk) > { > struct devcd_entry *devcd; > + int i; > > devcd = container_of(wk, struct devcd_entry, del_wk.work); > > + for (i = 0; i < devcd->num_files; i++) { > +

[PATCH 2/4] devcoredump: allow to create several coredump files in one device

2019-05-02 Thread Akinobu Mita
The device coredump mechanism currently allows drivers to create only a single coredump file. If there are several binary blobs to dump, we need to define a binary format or conver to text format in order to put them into a single coredump file. This provides a new function that allows drivers