Merge pull request #720 from syohex/syohex/update-subcommand
Update perf subcommand
This commit is contained in:
commit
a36eb3b7cb
34
src/_perf
34
src/_perf
|
@ -101,6 +101,15 @@ _perf() {
|
||||||
'(-v --verbose)'{-v,--verbose}'[be more verbose]' \
|
'(-v --verbose)'{-v,--verbose}'[be more verbose]' \
|
||||||
&& ret=0
|
&& ret=0
|
||||||
;;
|
;;
|
||||||
|
(c2c)
|
||||||
|
# TODO not implemented
|
||||||
|
;;
|
||||||
|
(config)
|
||||||
|
# TODO not implemented
|
||||||
|
;;
|
||||||
|
(data)
|
||||||
|
# TODO not implemented
|
||||||
|
;;
|
||||||
(diff)
|
(diff)
|
||||||
_arguments \
|
_arguments \
|
||||||
'(-M --displacement)'{-M,--displacement}'[show position displacement relative to baseline]' \
|
'(-M --displacement)'{-M,--displacement}'[show position displacement relative to baseline]' \
|
||||||
|
@ -123,12 +132,18 @@ _perf() {
|
||||||
'(-i --input)'{-i,--input=}'[input file name]: :_files' \
|
'(-i --input)'{-i,--input=}'[input file name]: :_files' \
|
||||||
&& ret=0
|
&& ret=0
|
||||||
;;
|
;;
|
||||||
|
(ftrace)
|
||||||
|
# TODO not implemented
|
||||||
|
;;
|
||||||
(inject)
|
(inject)
|
||||||
_arguments \
|
_arguments \
|
||||||
'(-b --build-ids)'{-b,--build-ids=}'[inject build-ids into the output stream]:build-id list' \
|
'(-b --build-ids)'{-b,--build-ids=}'[inject build-ids into the output stream]:build-id list' \
|
||||||
'(-v --verbose)'{-v,--verbose}'[be more verbose]' \
|
'(-v --verbose)'{-v,--verbose}'[be more verbose]' \
|
||||||
&& ret=0
|
&& ret=0
|
||||||
;;
|
;;
|
||||||
|
(kallsymb)
|
||||||
|
# TODO not implemented
|
||||||
|
;;
|
||||||
(kmem)
|
(kmem)
|
||||||
# TODO Complete 'record' command
|
# TODO Complete 'record' command
|
||||||
_arguments \
|
_arguments \
|
||||||
|
@ -168,6 +183,9 @@ _perf() {
|
||||||
'1:command:((record\:record\ lock\ events trace\:show\ raw\ lock\ events report\:report\ statistical\ data))' \
|
'1:command:((record\:record\ lock\ events trace\:show\ raw\ lock\ events report\:report\ statistical\ data))' \
|
||||||
&& ret=0
|
&& ret=0
|
||||||
;;
|
;;
|
||||||
|
(mem)
|
||||||
|
# TODO not implemented
|
||||||
|
;;
|
||||||
(probe)
|
(probe)
|
||||||
_arguments \
|
_arguments \
|
||||||
'(-k --vmlinux)'{-k,--vmlinux=}'[specify vmlinux path which has debuginfo]:path:_files' \
|
'(-k --vmlinux)'{-k,--vmlinux=}'[specify vmlinux path which has debuginfo]:path:_files' \
|
||||||
|
@ -327,6 +345,14 @@ _perf() {
|
||||||
'--show-on-off-events[show the --switch-on/off events too]' \
|
'--show-on-off-events[show the --switch-on/off events too]' \
|
||||||
&& ret=0
|
&& ret=0
|
||||||
;;
|
;;
|
||||||
|
(trace)
|
||||||
|
# TODO not implemented
|
||||||
|
;;
|
||||||
|
(version)
|
||||||
|
_arguments \
|
||||||
|
'--build-options[the status of compiled-in libraries are printed]' \
|
||||||
|
&& ret=0
|
||||||
|
;;
|
||||||
(help)
|
(help)
|
||||||
_arguments \
|
_arguments \
|
||||||
'(- : *)'{-a,--all}'[prints all the available commands on the standard output]' \
|
'(- : *)'{-a,--all}'[prints all the available commands on the standard output]' \
|
||||||
|
@ -351,13 +377,19 @@ _perf_cmds() {
|
||||||
'bench:general framework for benchmark suites'
|
'bench:general framework for benchmark suites'
|
||||||
'buildid-cache:manage build-id cache'
|
'buildid-cache:manage build-id cache'
|
||||||
'buildid-list:list the buildids in a perf.data file'
|
'buildid-list:list the buildids in a perf.data file'
|
||||||
|
'c2c:shared data C2C/HITM analyzer'
|
||||||
|
'config:get and set variables in a configuration file'
|
||||||
|
'data:data file related processing'
|
||||||
'diff:read two perf.data files and display the differential profile'
|
'diff:read two perf.data files and display the differential profile'
|
||||||
'evlist:list the event names in a perf.data file'
|
'evlist:list the event names in a perf.data file'
|
||||||
|
'ftrace:simple wrapper for kernel ftrace functionality'
|
||||||
'inject:filter to augment the events stream with additional information'
|
'inject:filter to augment the events stream with additional information'
|
||||||
|
'kallsyms:searches running kernel for symbols'
|
||||||
'kmem:tool to trace/measure kernel memory(slab) properties'
|
'kmem:tool to trace/measure kernel memory(slab) properties'
|
||||||
'kvm:tool to trace/measure kvm guest os'
|
'kvm:tool to trace/measure kvm guest os'
|
||||||
'list:list all symbolic event types'
|
'list:list all symbolic event types'
|
||||||
'lock:analyze lock events'
|
'lock:analyze lock events'
|
||||||
|
'mem:profile memory access'
|
||||||
'probe:define new dynamic tracepoints'
|
'probe:define new dynamic tracepoints'
|
||||||
'record:run a command and record its profile into perf.data'
|
'record:run a command and record its profile into perf.data'
|
||||||
'report:read perf.data (created by perf record) and display the profile'
|
'report:read perf.data (created by perf record) and display the profile'
|
||||||
|
@ -367,6 +399,8 @@ _perf_cmds() {
|
||||||
'test:runs sanity tests'
|
'test:runs sanity tests'
|
||||||
'timechart:tool to visualize total system behavior during a workload'
|
'timechart:tool to visualize total system behavior during a workload'
|
||||||
'top:system profiling tool'
|
'top:system profiling tool'
|
||||||
|
'trace:strace inspired tool'
|
||||||
|
'version:display the version of perf binary'
|
||||||
'help:show command usage information'
|
'help:show command usage information'
|
||||||
)
|
)
|
||||||
_describe -t commands 'command' commands "$@"
|
_describe -t commands 'command' commands "$@"
|
||||||
|
|
Loading…
Reference in New Issue