mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 12:23:53 -06:00
trace: [tracetool] Show list of frontends and backends sorted by name
Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
parent
53158adc23
commit
b160d7f84a
2 changed files with 3 additions and 3 deletions
|
@ -59,7 +59,7 @@ def get_list(only_public = False):
|
||||||
for filename in os.listdir(tracetool.backend.__path__[0]):
|
for filename in os.listdir(tracetool.backend.__path__[0]):
|
||||||
if filename.endswith('.py') and filename != '__init__.py':
|
if filename.endswith('.py') and filename != '__init__.py':
|
||||||
modnames.append(filename.rsplit('.', 1)[0])
|
modnames.append(filename.rsplit('.', 1)[0])
|
||||||
for modname in modnames:
|
for modname in sorted(modnames):
|
||||||
module = tracetool.try_import("tracetool.backend." + modname)
|
module = tracetool.try_import("tracetool.backend." + modname)
|
||||||
|
|
||||||
# just in case; should never fail unless non-module files are put there
|
# just in case; should never fail unless non-module files are put there
|
||||||
|
|
|
@ -34,7 +34,7 @@ nop Called to generate the per-event contents when the event is disabled or
|
||||||
"""
|
"""
|
||||||
|
|
||||||
__author__ = "Lluís Vilanova <vilanova@ac.upc.edu>"
|
__author__ = "Lluís Vilanova <vilanova@ac.upc.edu>"
|
||||||
__copyright__ = "Copyright 2012, Lluís Vilanova <vilanova@ac.upc.edu>"
|
__copyright__ = "Copyright 2012-2014, Lluís Vilanova <vilanova@ac.upc.edu>"
|
||||||
__license__ = "GPL version 2 or (at your option) any later version"
|
__license__ = "GPL version 2 or (at your option) any later version"
|
||||||
|
|
||||||
__maintainer__ = "Stefan Hajnoczi"
|
__maintainer__ = "Stefan Hajnoczi"
|
||||||
|
@ -53,7 +53,7 @@ def get_list():
|
||||||
for filename in os.listdir(tracetool.format.__path__[0]):
|
for filename in os.listdir(tracetool.format.__path__[0]):
|
||||||
if filename.endswith('.py') and filename != '__init__.py':
|
if filename.endswith('.py') and filename != '__init__.py':
|
||||||
modnames.append(filename.rsplit('.', 1)[0])
|
modnames.append(filename.rsplit('.', 1)[0])
|
||||||
for modname in modnames:
|
for modname in sorted(modnames):
|
||||||
module = tracetool.try_import("tracetool.format." + modname)
|
module = tracetool.try_import("tracetool.format." + modname)
|
||||||
|
|
||||||
# just in case; should never fail unless non-module files are put there
|
# just in case; should never fail unless non-module files are put there
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue