Hi Maciej, Maciej Browarski wrote: > Hello, > I'm using iotime.d from dtrace guide: > io:::start > { > start[args[0]->b_edev, args[0]->b_blkno] = timestamp; > } > > but with 48 disks systems i'd like monitor only 2-3 disks. > I like using in predicate: > /(args[0]->b_edev == "sd6")/ > but dtrace write me type mismatch, > Also trying: > ((string)args[0]->b_edev == "sd6")/ > make me also errors, > How this predicate should be to monitor for only sd6 and sd7 ? > The b_edev value is a device number, not a string. You either need to get the device number for sd6, or use the devinfo_t argument,
/args[1]->dev_statname == "sd6"/ for the predicate. max _______________________________________________ dtrace-discuss mailing list dtrace-discuss@opensolaris.org