lkml.org 
[lkml]   [2019]   [Jul]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: get_maintainers.pl subsystem output
From
Date
On Tue, 2019-07-23 at 09:29 +0200, Duda, Sebastian wrote:
> Hi Joe,
>
> when analyzing the patch
> `<20150128012747.824898918@linuxfoundation.org>` [1] with

https://lore.kernel.org/lkml/220150128012747.824898918@linuxfoundation.org

> `get_maintainers.pl --subsystem --status --separator , /tmp/patch`,
> there is the following output:

[]

> > Run the script with multiple invocations. once for each file
> > modified by the patch.

For example: perhaps use something like:

$ grep -h '^\+\+\+ b/' <patch> | \
sed 's@^\+\+\+ b/@@' | sort | uniq | \
while read file ; do \
./scripts/get_maintainer.pl --nogit --nogit-fallback --subsystem --status --separator , $file ; \
done

or use parallel like:

$ grep -h '^\+\+\+ b/' <patch> | \
sed 's@^\+\+\+ b/@@' | sort | uniq | \
parallel -k ./scripts/get_maintainer.pl --nogit --nogit-fallback --subsystem --status --separator ,

runtime on my system for this is

Using while read loop:

real 0m2.509s
user 0m2.236s
sys 0m0.296s

Using parallel:

real 0m1.340s
user 0m4.159s
sys 0m0.429s


\
 
 \ /
  Last update: 2019-07-23 13:55    [W:0.157 / U:1.448 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site