current_syscall.io_rq.cloexec = cloexec
def _track_close(self, event, name, proc):
- # name unused because there's only one close syscall. Remove?
proc.current_syscall.io_rq = sv.CloseIORequest(
event.timestamp, proc.tid, event['fd'])
import statistics
-class IoAnalysis(Command):
+class IoAnalysisCommand(Command):
_VERSION = '0.1.0'
_DESC = """The I/O command."""
# entry point
def runstats():
# create command
- iocmd = IoAnalysis()
+ iocmd = IoAnalysisCommand()
# execute command
iocmd.run_stats()
def runlatencytop():
# create command
- iocmd = IoAnalysis()
+ iocmd = IoAnalysisCommand()
# execute command
iocmd.run_latencytop()
def runlog():
# create command
- iocmd = IoAnalysis()
+ iocmd = IoAnalysisCommand()
# execute command
iocmd.run_log()
def runfreq():
# create command
- iocmd = IoAnalysis()
+ iocmd = IoAnalysisCommand()
# execute command
iocmd.run_freq()
def runusage():
# create command
- iocmd = IoAnalysis()
+ iocmd = IoAnalysisCommand()
# execute command
iocmd.run_usage()