CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2020/04/23 08:54:12
Modified files:
usr.sbin/btrace: TODO bt_parse.y btrace.c
Log message:
Extend map to support keys composed of multiple arguments.
Keys are still strings representing the output value.
The following example is now possible to count the number of "on CPU"
events ordered by thread ID and executable name:
# btrace -e 'tracepoint:sched:on__cpu { @[tid, comm] = count() }'
^C
@[138836, idle0]: 830941
@[161307, sshd]: 716476
@[482901, softnet]: 582008
@[104443, systqmp]: 405749
@[269230, update]: 396133
@[326533, softclock]: 316926
@[61040, sshd]: 177201
@[453567, reaper]: 119676
@[446052, ksh]: 85675
@[26270, syslogd]: 66625
@[504699, sshd]: 52958
@[446052, sshd]: 32207
@[44046, tset]: 13333
@[162960, zerothread]: 101
@[313046, ntpd]: 1