intel_l3_parity: Use getopt for the l3 parity tool
authorBen Widawsky <benjamin.widawsky@intel.com>
Sat, 7 Sep 2013 04:10:50 +0000 (21:10 -0700)
committerBen Widawsky <benjamin.widawsky@intel.com>
Fri, 20 Sep 2013 16:42:07 +0000 (09:42 -0700)
commita9cd76b36e112389c61ccc315df185a2eaf17c01
treed8a67fa32bbee59bf98f35ee2b7a1367a2086a55
parente740bdf5bd1339b58912eb359902ca68529b438d
intel_l3_parity: Use getopt for the l3 parity tool

Add new command line arguments in addition to supporting the old
features. This patch only introduces one feature, the -e argument to
enable a specific row/bank/subbank. Previously you could only enable
all. Otherwise, it has what you expect (we prefer -r -b -s for
specifying the row/bank/subbank).

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
tests/sysfs_l3_parity
tools/intel_l3_parity.c