cmdline: Use tuna.cpustring_to_list in --cpus

[root@mica ~]# tuna -t 3876 -c +0x0-1,3 -m
[root@mica ~]# tuna -t nscd -CP
                      thread       ctxt_switches
    pid SCHED_ rtpri affinity voluntary nonvoluntary             cmd
 3862    OTHER     0  0,1,2,3     12997          409            nscd
  3875   OTHER     0  0,1,2,3      1905          126            nscd
  3876   OTHER     0    0,1,3      1940          106            nscd
  3877   OTHER     0  0,1,2,3      2049          130            nscd
  3878   OTHER     0  0,1,2,3      1271           88            nscd
  3879   OTHER     0  0,1,2,3      1243           81            nscd
  3880   OTHER     0  0,1,2,3      1250           94            nscd
[root@mica ~]# tuna -t 3876 -c +0x0-2 -m
[root@mica ~]# tuna -t nscd -CP
                      thread       ctxt_switches
    pid SCHED_ rtpri affinity voluntary nonvoluntary             cmd
 3862    OTHER     0  0,1,2,3     13000          409            nscd
  3875   OTHER     0  0,1,2,3      1909          126            nscd
  3876   OTHER     0    0,1,2      1944          106            nscd
  3877   OTHER     0  0,1,2,3      2054          130            nscd
  3878   OTHER     0  0,1,2,3      1272           88            nscd
  3879   OTHER     0  0,1,2,3      1244           81            nscd
  3880   OTHER     0  0,1,2,3      1250           94            nscd
[root@mica ~]#

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 file changed