#!/bin/sh

echo "/* Automatically generated by $0 */
struct cmdname_help
{
    char name[16];
    char help[80];
};

static struct cmdname_help common_cmds[] = {"

sed -n -e 's/^perf-\([^ 	]*\)[ 	].* common.*/\1/p' command-list.txt |
sort |
while read cmd
do
     sed -n '
     /^NAME/,/perf-'"$cmd"'/H
     ${
            x
            s/.*perf-'"$cmd"' - \(.*\)/  {"'"$cmd"'", "\1"},/
	    p
     }' "Documentation/perf-$cmd.txt"
done

echo "#ifdef HAVE_LIBELF_SUPPORT"
sed -n -e 's/^perf-\([^ 	]*\)[ 	].* full.*/\1/p' command-list.txt |
sort |
while read cmd
do
     sed -n '
     /^NAME/,/perf-'"$cmd"'/H
     ${
            x
            s/.*perf-'"$cmd"' - \(.*\)/  {"'"$cmd"'", "\1"},/
	    p
     }' "Documentation/perf-$cmd.txt"
done
echo "#endif /* HAVE_LIBELF_SUPPORT */"

echo "#ifdef HAVE_LIBAUDIT_SUPPORT"
sed -n -e 's/^perf-\([^ 	]*\)[ 	].* audit*/\1/p' command-list.txt |
sort |
while read cmd
do
     sed -n '
     /^NAME/,/perf-'"$cmd"'/H
     ${
            x
            s/.*perf-'"$cmd"' - \(.*\)/  {"'"$cmd"'", "\1"},/
	    p
     }' "Documentation/perf-$cmd.txt"
done
echo "#endif /* HAVE_LIBELF_SUPPORT */"
echo "};"
e='master'>master</option>
<option value='nds-private-remove' selected='selected'>nds-private-remove</option>
<option value='packet-loop-back'>packet-loop-back</option>
<option value='packet-rx-pump-back'>packet-rx-pump-back</option>
</select> <input type='submit' value='switch'/></form></td></tr>
<tr><td class='sub'>net-next plumbings</td><td class='sub right'>Tobias Klauser</td></tr></table>
<table class='tabs'><tr><td>
<a href='/cgit.cgi/linux/net-next.git/?h=nds-private-remove'>summary</a><a href='/cgit.cgi/linux/net-next.git/refs/?h=nds-private-remove&amp;id=e98d5fef8556f1da7f903fd1908feed84bb0f90d'>refs</a><a href='/cgit.cgi/linux/net-next.git/log/sound/usb/usx2y?h=nds-private-remove'>log</a><a href='/cgit.cgi/linux/net-next.git/tree/sound/usb/usx2y?h=nds-private-remove&amp;id=e98d5fef8556f1da7f903fd1908feed84bb0f90d'>tree</a><a class='active' href='/cgit.cgi/linux/net-next.git/commit/sound/usb/usx2y?h=nds-private-remove&amp;id=e98d5fef8556f1da7f903fd1908feed84bb0f90d'>commit</a><a href='/cgit.cgi/linux/net-next.git/diff/sound/usb/usx2y?h=nds-private-remove&amp;id=e98d5fef8556f1da7f903fd1908feed84bb0f90d'>diff</a></td><td class='form'><form class='right' method='get' action='/cgit.cgi/linux/net-next.git/log/sound/usb/usx2y'>
<input type='hidden' name='h' value='nds-private-remove'/><input type='hidden' name='id' value='e98d5fef8556f1da7f903fd1908feed84bb0f90d'/><select name='qt'>
<option value='grep'>log msg</option>
<option value='author'>author</option>
<option value='committer'>committer</option>
<option value='range'>range</option>
</select>
<input class='txt' type='search' size='10' name='q' value=''/>
<input type='submit' value='search'/>
</form>
</td></tr></table>
<div class='path'>path: <a href='/cgit.cgi/linux/net-next.git/commit/?h=nds-private-remove&amp;id=e98d5fef8556f1da7f903fd1908feed84bb0f90d'>root</a>/<a href='/cgit.cgi/linux/net-next.git/commit/sound?h=nds-private-remove&amp;id=e98d5fef8556f1da7f903fd1908feed84bb0f90d'>sound</a>/<a href='/cgit.cgi/linux/net-next.git/commit/sound/usb?h=nds-private-remove&amp;id=e98d5fef8556f1da7f903fd1908feed84bb0f90d'>usb</a>/<a href='/cgit.cgi/linux/net-next.git/commit/sound/usb/usx2y?h=nds-private-remove&amp;id=e98d5fef8556f1da7f903fd1908feed84bb0f90d'>usx2y</a></div><div class='content'><div class='cgit-panel'><b>diff options</b><form method='get'><input type='hidden' name='h' value='nds-private-remove'/><input type='hidden' name='id' value='e98d5fef8556f1da7f903fd1908feed84bb0f90d'/><table><tr><td colspan='2'/></tr><tr><td class='label'>context:</td><td class='ctrl'><select name='context' onchange='this.form.submit();'><option value='1'>1</option><option value='2'>2</option><option value='3' selected='selected'>3</option><option value='4'>4</option><option value='5'>5</option><option value='6'>6</option><option value='7'>7</option><option value='8'>8</option><option value='9'>9</option><option value='10'>10</option><option value='15'>15</option><option value='20'>20</option><option value='25'>25</option><option value='30'>30</option><option value='35'>35</option><option value='40'>40</option></select></td></tr><tr><td class='label'>space:</td><td class='ctrl'><select name='ignorews' onchange='this.form.submit();'><option value='0' selected='selected'>include</option><option value='1'>ignore</option></select></td></tr><tr><td class='label'>mode:</td><td class='ctrl'><select name='dt' onchange='this.form.submit();'><option value='0' selected='selected'>unified</option><option value='1'>ssdiff</option><option value='2'>stat only</option></select></td></tr><tr><td/><td class='ctrl'><noscript><input type='submit' value='reload'/></noscript></td></tr></table></form></div><table summary='commit info' class='commit-info'>
<tr><th>author</th><td>Axel Lin &lt;axel.lin@ingics.com&gt;</td><td class='right'>2016-10-21 16:40:05 +0800</td></tr>
<tr><th>committer</th><td>Mark Brown &lt;broonie@kernel.org&gt;</td><td class='right'>2016-10-24 17:49:14 +0100</td></tr>
<tr><th>commit</th><td colspan='2' class='oid'><a href='/cgit.cgi/linux/net-next.git/commit/sound/usb/usx2y?h=nds-private-remove&amp;id=e98d5fef8556f1da7f903fd1908feed84bb0f90d'>e98d5fef8556f1da7f903fd1908feed84bb0f90d</a> (<a href='/cgit.cgi/linux/net-next.git/patch/sound/usb/usx2y?id=e98d5fef8556f1da7f903fd1908feed84bb0f90d'>patch</a>)</td></tr>
<tr><th>tree</th><td colspan='2' class='oid'><a href='/cgit.cgi/linux/net-next.git/tree/?h=nds-private-remove&amp;id=e98d5fef8556f1da7f903fd1908feed84bb0f90d'>95a1268df894d6150ee31f5e97cbcb0c0ab32cc4</a> /<a href='/cgit.cgi/linux/net-next.git/tree/sound/usb/usx2y?h=nds-private-remove&amp;id=e98d5fef8556f1da7f903fd1908feed84bb0f90d'>sound/usb/usx2y</a></td></tr>
<tr><th>parent</th><td colspan='2' class='oid'><a href='/cgit.cgi/linux/net-next.git/commit/sound/usb/usx2y?h=nds-private-remove&amp;id=1001354ca34179f3db924eb66672442a173147dc'>1001354ca34179f3db924eb66672442a173147dc</a> (<a href='/cgit.cgi/linux/net-next.git/diff/sound/usb/usx2y?h=nds-private-remove&amp;id=e98d5fef8556f1da7f903fd1908feed84bb0f90d&amp;id2=1001354ca34179f3db924eb66672442a173147dc'>diff</a>)</td></tr></table>
<div class='commit-subject'>regulator: tps6507x: Drop pointless static qualifier for *reg_data variable</div><div class='commit-msg'>There is no need to use static for this local variable.

Signed-off-by: Axel Lin &lt;axel.lin@ingics.com&gt;
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</div><div class='diffstat-header'><a href='/cgit.cgi/linux/net-next.git/diff/?h=nds-private-remove&amp;id=e98d5fef8556f1da7f903fd1908feed84bb0f90d'>Diffstat</a> (limited to 'sound/usb/usx2y')</div><table summary='diffstat' class='diffstat'>