This patch set is to support multiple arguments per option of ndctl. Currently, ndctl supports only one argument per option, and only one dimm can be filtered by dimm's name. As a result, when users want to moniotr multiple dimms, they have to run multiple monitor processes. This feature can let monitor support filter multiple dimms by dimms' name in one process. Also applied in ndctl list:
# ndclt list --dimm="nmem0 nmem1 nmem2" [ { "dev":"nmem1", "id":"cdab-0a-07e0-feffffff", "handle":1, "phys_id":1 }, { "dev":"nmem0", "id":"cdab-0a-07e0-ffffffff", "handle":0, "phys_id":0 }, { "dev":"nmem2", "id":"cdab-0a-07e0-fffeffff", "handle":256, "phys_id":2 } ] QI Fuli (2): ndctl, util: add OPT_STRING_LIST to parse_option ndctl, list: change -b -d -r -n options to support multiple arguments ccan/list/list.h | 6 ++++ ndctl/list.c | 35 ++++++++++++++----- util/filter.c | 81 +++++++++++++++++++++++++++++++------------- util/filter.h | 9 ++--- util/parse-options.c | 25 ++++++++++++++ util/parse-options.h | 3 ++ 6 files changed, 122 insertions(+), 37 deletions(-) -- 2.17.0.140.g0b0cc9f86 _______________________________________________ Linux-nvdimm mailing list Linux-nvdimm@lists.01.org https://lists.01.org/mailman/listinfo/linux-nvdimm