repo
stringlengths
2
99
file
stringlengths
13
225
code
stringlengths
0
18.3M
file_length
int64
0
18.3M
avg_line_length
float64
0
1.36M
max_line_length
int64
0
4.26M
extension_type
stringclasses
1 value
qemu
qemu-master/target/hexagon/gen_tcg_func_table.py
#!/usr/bin/env python3 ## ## Copyright(c) 2019-2021 Qualcomm Innovation Center, Inc. All Rights Reserved. ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 2 of the Licen...
1,971
32.423729
80
py
qemu
qemu-master/target/hexagon/gen_op_regs.py
#!/usr/bin/env python3 ## ## Copyright(c) 2019-2021 Qualcomm Innovation Center, Inc. All Rights Reserved. ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 2 of the Licen...
3,844
33.63964
80
py
qemu
qemu-master/target/hexagon/hex_common.py
#!/usr/bin/env python3 ## ## Copyright(c) 2019-2023 Qualcomm Innovation Center, Inc. All Rights Reserved. ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 2 of the Licen...
10,019
32.737374
80
py
qemu
qemu-master/target/hexagon/gen_op_attribs.py
#!/usr/bin/env python3 ## ## Copyright(c) 2019-2021 Qualcomm Innovation Center, Inc. All Rights Reserved. ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 2 of the Licen...
1,288
31.225
80
py
qemu
qemu-master/target/hexagon/gen_idef_parser_funcs.py
#!/usr/bin/env python3 ## ## Copyright(c) 2019-2022 rev.ng Labs Srl. All Rights Reserved. ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 2 of the License, or ## (at y...
4,795
35.610687
80
py
qemu
qemu-master/target/hexagon/gen_shortcode.py
#!/usr/bin/env python3 ## ## Copyright(c) 2019-2021 Qualcomm Innovation Center, Inc. All Rights Reserved. ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 2 of the Licen...
1,971
31.327869
80
py
qemu
qemu-master/target/hexagon/gen_helper_protos.py
#!/usr/bin/env python3 ## ## Copyright(c) 2019-2023 Qualcomm Innovation Center, Inc. All Rights Reserved. ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 2 of the Licen...
7,358
35.61194
80
py
qemu
qemu-master/target/hexagon/gen_tcg_funcs.py
#!/usr/bin/env python3 ## ## Copyright(c) 2019-2023 Qualcomm Innovation Center, Inc. All Rights Reserved. ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 2 of the Licen...
27,179
41.66876
81
py
qemu
qemu-master/target/hexagon/gen_printinsn.py
#!/usr/bin/env python3 ## ## Copyright(c) 2019-2021 Qualcomm Innovation Center, Inc. All Rights Reserved. ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 2 of the Licen...
6,348
35.488506
80
py
qemu
qemu-master/target/hexagon/gen_opcodes_def.py
#!/usr/bin/env python3 ## ## Copyright(c) 2019-2021 Qualcomm Innovation Center, Inc. All Rights Reserved. ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 2 of the Licen...
1,106
28.918919
80
py
qemu
qemu-master/target/hexagon/dectree.py
#!/usr/bin/env python3 ## ## Copyright(c) 2019-2021 Qualcomm Innovation Center, Inc. All Rights Reserved. ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 2 of the Licen...
13,570
37.553977
80
py
qemu
qemu-master/scripts/shaderinclude.py
#!/usr/bin/env python3 # # Copyright (C) 2023 Red Hat, Inc. # # SPDX-License-Identifier: GPL-2.0-or-later import sys import os def main(args): file_path = args[1] basename = os.path.basename(file_path) varname = basename.replace('-', '_').replace('.', '_') with os.fdopen(sys.stdout.fileno(), "wt", c...
712
25.407407
85
py
qemu
qemu-master/scripts/test-driver.py
#! /usr/bin/env python3 # Wrapper for tests that hides the output if they succeed. # Used by "make check" # # Copyright (C) 2020 Red Hat, Inc. # # Author: Paolo Bonzini <pbonzini@redhat.com> import subprocess import sys import os import argparse parser = argparse.ArgumentParser(description='Test driver for QEMU') pa...
1,041
27.944444
88
py
qemu
qemu-master/scripts/meson-buildoptions.py
#! /usr/bin/env python3 # Generate configure command line options handling code, based on Meson's # user build options introspection data # # Copyright (C) 2021 Red Hat, Inc. # # Author: Paolo Bonzini <pbonzini@redhat.com> # # This program is free software; you can redistribute it and/or modify # it under the terms of...
6,787
28.77193
94
py
qemu
qemu-master/scripts/cpu-x86-uarch-abi.py
#!/usr/bin/python3 # # SPDX-License-Identifier: GPL-2.0-or-later # # A script to generate a CSV file showing the x86_64 ABI # compatibility levels for each CPU model. # from qemu.qmp.legacy import QEMUMonitorProtocol import sys if len(sys.argv) != 2: print("syntax: %s QMP-SOCK\n\n" % __file__ + "Where Q...
4,878
24.149485
80
py
qemu
qemu-master/scripts/qemu-stamp.py
#! /usr/bin/env python3 # Usage: scripts/qemu-stamp.py STRING1 STRING2... -- FILE1 FILE2... import hashlib import os import sys sha = hashlib.sha1() is_file = False for arg in sys.argv[1:]: if arg == '--': is_file = True continue if is_file: with open(arg, 'rb') as f: for c...
614
23.6
67
py
qemu
qemu-master/scripts/modinfo-collect.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import os import sys import json import shlex import subprocess def find_command(src, target, compile_commands): for command in compile_commands: if command['file'] != src: continue if target != '' and command['command'].find(target) == -1...
1,898
27.772727
66
py
qemu
qemu-master/scripts/symlink-install-tree.py
#!/usr/bin/env python3 from pathlib import PurePath import errno import json import os import subprocess import sys def destdir_join(d1: str, d2: str) -> str: if not d1: return d2 # c:\destdir + c:\prefix must produce c:\destdir\prefix return str(PurePath(d1, *PurePath(d2).parts[1:])) introspect ...
1,020
29.939394
72
py
qemu
qemu-master/scripts/simpletrace.py
#!/usr/bin/env python3 # # Pretty-printer for simple trace backend binary trace files # # Copyright IBM, Corp. 2010 # # This work is licensed under the terms of the GNU GPL, version 2. See # the COPYING file in the top-level directory. # # For help see docs/devel/tracing.rst import struct import inspect from tracetoo...
8,707
31.984848
114
py
qemu
qemu-master/scripts/analyze-migration.py
#!/usr/bin/env python3 # # Migration Stream Analyzer # # Copyright (c) 2015 Alexander Graf <agraf@suse.de> # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the ...
20,727
32.758958
122
py
qemu
qemu-master/scripts/analyse-locks-simpletrace.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Analyse lock events and compute statistics # # Author: Alex Bennée <alex.bennee@linaro.org> # import simpletrace import argparse import numpy as np class MutexAnalyser(simpletrace.Analyzer): "A simpletrace Analyser for checking locks." def __init__(self): ...
3,543
34.79798
79
py
qemu
qemu-master/scripts/qapi-gen.py
#!/usr/bin/env python3 # This work is licensed under the terms of the GNU GPL, version 2 or later. # See the COPYING file in the top-level directory. """ QAPI code generation execution shim. This standalone script exists primarily to facilitate the running of the QAPI code generator without needing to install the py...
463
22.2
77
py
qemu
qemu-master/scripts/mtest2make.py
#! /usr/bin/env python3 # Create Makefile targets to run tests, from Meson's test introspection data. # # Author: Paolo Bonzini <pbonzini@redhat.com> from collections import defaultdict import itertools import json import os import shlex import sys class Suite(object): def __init__(self): self.deps = set...
4,116
35.114035
118
py
qemu
qemu-master/scripts/signrom.py
#!/usr/bin/env python3 # # Option ROM signing utility # # Authors: # Jan Kiszka <jan.kiszka@siemens.com> # # This work is licensed under the terms of the GNU GPL, version 2 or later. # See the COPYING file in the top-level directory. import sys import struct if len(sys.argv) < 3: print('usage: signrom.py input ...
1,272
22.574074
79
py
qemu
qemu-master/scripts/block-coroutine-wrapper.py
#! /usr/bin/env python3 """Generate coroutine wrappers for block subsystem. The program parses one or several concatenated c files from stdin, searches for functions with the 'co_wrapper' specifier and generates corresponding wrappers on stdout. Usage: block-coroutine-wrapper.py generated-file.c FILE.[ch]... Copyrig...
8,992
28.198052
80
py
qemu
qemu-master/scripts/tracetool.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Command-line wrapper for the tracetool machinery. """ __author__ = "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" __mainta...
4,594
28.645161
97
py
qemu
qemu-master/scripts/dump-guest-memory.py
""" This python script adds a new gdb command, "dump-guest-memory". It should be loaded with "source dump-guest-memory.py" at the (gdb) prompt. Copyright (C) 2013, Red Hat, Inc. Authors: Laszlo Ersek <lersek@redhat.com> Janosch Frank <frankja@linux.vnet.ibm.com> This work is licensed under the terms of the GNU...
20,723
33.597663
86
py
qemu
qemu-master/scripts/render_block_graph.py
#!/usr/bin/env python3 # # Render Qemu Block Graph # # Copyright (c) 2018 Virtuozzo International GmbH. All rights reserved. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of...
3,767
29.634146
72
py
qemu
qemu-master/scripts/analyse-9p-simpletrace.py
#!/usr/bin/env python3 # Pretty print 9p simpletrace log # Usage: ./analyse-9p-simpletrace <trace-events> <trace-pid> # # Author: Harsh Prateek Bora import os import simpletrace symbol_9p = { 6 : 'TLERROR', 7 : 'RLERROR', 8 : 'TSTATFS', 9 : 'RSTATFS', 12 : 'TLOPEN', 13 : 'RLOPEN', ...
9,103
41.542056
142
py
qemu
qemu-master/scripts/u2f-setup-gen.py
#!/usr/bin/env python3 # # Libu2f-emu setup directory generator for USB U2F key emulation. # # Copyright (c) 2020 César Belley <cesar.belley@lse.epita.fr> # Written by César Belley <cesar.belley@lse.epita.fr> # # This work is licensed under the terms of the GNU GPL, version 2 # or, at your option, any later version. S...
4,481
25.210526
80
py
qemu
qemu-master/scripts/replay-dump.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Dump the contents of a recorded execution stream # # Copyright (c) 2017 Alex Bennée <alex.bennee@linaro.org> # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Fr...
12,119
38.223301
80
py
qemu
qemu-master/scripts/decodetree.py
#!/usr/bin/env python3 # Copyright (c) 2018 Linaro Limited # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. # ...
41,623
28.209825
91
py
qemu
qemu-master/scripts/qemu-gdb.py
#!/usr/bin/env python3 # # GDB debugging support # # Copyright 2012 Red Hat, Inc. and/or its affiliates # # Authors: # Avi Kivity <avi@redhat.com> # # This work is licensed under the terms of the GNU GPL, version 2 or # later. See the COPYING file in the top-level directory. # Usage: # At the (gdb) prompt, type "sou...
1,237
24.791667
73
py
qemu
qemu-master/scripts/undefsym.py
#!/usr/bin/env python3 # Before a shared module's DSO is produced, a static library is built for it # and passed to this script. The script generates -Wl,-u options to force # the inclusion of symbol from libqemuutil.a if the shared modules need them, # This is necessary because the modules may use functions not need...
1,637
32.428571
82
py
qemu
qemu-master/scripts/nsis.py
#!/usr/bin/env python3 # # Copyright (C) 2020 Red Hat, Inc. # # SPDX-License-Identifier: GPL-2.0-or-later import argparse import glob import os import shutil import subprocess import tempfile def signcode(path): cmd = os.environ.get("SIGNCODE") if not cmd: return subprocess.run([cmd, path]) def ...
3,880
28.853846
78
py
qemu
qemu-master/scripts/minikconf.py
#!/usr/bin/env python3 # # Mini-Kconfig parser # # Copyright (c) 2015 Red Hat Inc. # # Authors: # Paolo Bonzini <pbonzini@redhat.com> # # This work is licensed under the terms of the GNU GPL, version 2 # or, at your option, any later version. See the COPYING file in # the top-level directory. import os import sys im...
23,656
32.226124
94
py
qemu
qemu-master/scripts/check_sparse.py
#! /usr/bin/env python3 # Invoke sparse based on the contents of compile_commands.json, # also working around several deficiencies in cgcc's command line # parsing import json import subprocess import os import sys import shlex def cmdline_for_sparse(sparse, cmdline): # Do not include the C compiler executable ...
1,679
27
65
py
qemu
qemu-master/scripts/probe-gdb-support.py
#!/usr/bin/env python3 # coding: utf-8 # # Probe gdb for supported architectures. # # This is required to support testing of the gdbstub as its hard to # handle errors gracefully during the test. Instead this script when # passed a GDB binary will probe its architecture support and return a # string of supported arches...
2,472
26.786517
75
py
qemu
qemu-master/scripts/userfaultfd-wrlat.py
#!/usr/bin/python3 # # userfaultfd-wrlat Summarize userfaultfd write fault latencies. # Events are continuously accumulated for the # run, while latency distribution histogram is # dumped each 'interval' seconds. # # For Linux, uses BCC, eBPF. # # ...
2,938
22.894309
81
py
qemu
qemu-master/scripts/vmstate-static-checker.py
#!/usr/bin/env python3 # # Compares vmstate information stored in JSON format, obtained from # the -dump-vmstate QEMU command. # # Copyright 2014 Amit Shah <amit.shah@redhat.com> # Copyright 2014 Red Hat, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU Gener...
16,102
36.275463
418
py
qemu
qemu-master/scripts/modinfo-generate.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import os import sys def print_array(name, values): if len(values) == 0: return list = ", ".join(values) print(" .%s = ((const char*[]){ %s, NULL })," % (name, list)) def parse_line(line): kind = "" data = "" get_kind = False get_d...
3,382
26.958678
73
py
qemu
qemu-master/scripts/qemugdb/mtree.py
# # GDB debugging support # # Copyright 2012 Red Hat, Inc. and/or its affiliates # # Authors: # Avi Kivity <avi@redhat.com> # # This work is licensed under the terms of the GNU GPL, version 2 or # later. See the COPYING file in the top-level directory. # 'qemu mtree' -- display the memory hierarchy import gdb def ...
2,741
30.883721
69
py
qemu
qemu-master/scripts/qemugdb/tcg.py
# -*- coding: utf-8 -*- # # GDB debugging support, TCG status # # Copyright 2016 Linaro Ltd # # Authors: # Alex Bennée <alex.bennee@linaro.org> # # This work is licensed under the terms of the GNU GPL, version 2 or # later. See the COPYING file in the top-level directory. # 'qemu tcg-lock-status' -- display the TCG ...
1,468
33.162791
76
py
qemu
qemu-master/scripts/qemugdb/timers.py
# -*- coding: utf-8 -*- # GDB debugging support # # Copyright 2017 Linaro Ltd # # Author: Alex Bennée <alex.bennee@linaro.org> # # This work is licensed under the terms of the GNU GPL, version 2 or later. # See the COPYING file in the top-level directory. # # SPDX-License-Identifier: GPL-2.0-or-later # 'qemu timers' -...
1,849
31.45614
75
py
qemu
qemu-master/scripts/qemugdb/__init__.py
# # GDB debugging support # # Copyright (c) 2015 Linaro Ltd # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This p...
897
31.071429
70
py
qemu
qemu-master/scripts/qemugdb/coroutine.py
# # GDB debugging support # # Copyright 2012 Red Hat, Inc. and/or its affiliates # # Authors: # Avi Kivity <avi@redhat.com> # # This work is licensed under the terms of the GNU GPL, version 2 # or later. See the COPYING file in the top-level directory. import gdb VOID_PTR = gdb.lookup_type('void').pointer() def ge...
4,464
28.966443
132
py
qemu
qemu-master/scripts/qemugdb/aio.py
# # GDB debugging support: aio/iohandler debug # # Copyright (c) 2015 Red Hat, Inc. # # Author: Dr. David Alan Gilbert <dgilbert@redhat.com> # # This work is licensed under the terms of the GNU GPL, version 2 or # later. See the COPYING file in the top-level directory. # import gdb from qemugdb import coroutine def ...
1,843
30.793103
93
py
qemu
qemu-master/scripts/modules/module_block.py
#!/usr/bin/env python3 # # Module information generator # # Copyright Red Hat, Inc. 2015 - 2016 # # Authors: # Marc Mari <markmb@redhat.com> # # This work is licensed under the terms of the GNU GPL, version 2. # See the COPYING file in the top-level directory. import sys import os def get_string_struct(line): da...
2,751
26.52
79
py
qemu
qemu-master/scripts/codeconverter/converter.py
#!/usr/bin/env python3 # QEMU library # # Copyright (C) 2020 Red Hat Inc. # # Authors: # Eduardo Habkost <ehabkost@redhat.com> # # This work is licensed under the terms of the GNU GPL, version 2. See # the COPYING file in the top-level directory. # import sys import argparse import os import os.path import re from ty...
4,378
34.601626
89
py
qemu
qemu-master/scripts/codeconverter/codeconverter/patching.py
# Copyright (C) 2020 Red Hat Inc. # # Authors: # Eduardo Habkost <ehabkost@redhat.com> # # This work is licensed under the terms of the GNU GPL, version 2. See # the COPYING file in the top-level directory. from typing import IO, Match, NamedTuple, Optional, Literal, Iterable, Type, Dict, List, Any, TypeVar, NewType,...
16,604
34.556745
124
py
qemu
qemu-master/scripts/codeconverter/codeconverter/test_patching.py
# Copyright (C) 2020 Red Hat Inc. # # Authors: # Eduardo Habkost <ehabkost@redhat.com> # # This work is licensed under the terms of the GNU GPL, version 2. See # the COPYING file in the top-level directory. from tempfile import NamedTemporaryFile from .patching import FileInfo, FileMatch, Patch, FileList from .regexp...
3,268
30.133333
71
py
qemu
qemu-master/scripts/codeconverter/codeconverter/test_regexps.py
# Copyright (C) 2020 Red Hat Inc. # # Authors: # Eduardo Habkost <ehabkost@redhat.com> # # This work is licensed under the terms of the GNU GPL, version 2. See # the COPYING file in the top-level directory. from .regexps import * from .qom_macros import * from .qom_type_info import * def test_res() -> None: def ...
8,344
28.487633
79
py
qemu
qemu-master/scripts/codeconverter/codeconverter/utils.py
# Copyright (C) 2020 Red Hat Inc. # # Authors: # Eduardo Habkost <ehabkost@redhat.com> # # This work is licensed under the terms of the GNU GPL, version 2. See # the COPYING file in the top-level directory. from typing import * import logging logger = logging.getLogger(__name__) DBG = logger.debug INFO = logger.info...
2,020
27.069444
79
py
qemu
qemu-master/scripts/codeconverter/codeconverter/qom_macros.py
# Copyright (C) 2020 Red Hat Inc. # # Authors: # Eduardo Habkost <ehabkost@redhat.com> # # This work is licensed under the terms of the GNU GPL, version 2. See # the COPYING file in the top-level directory. import re from itertools import chain from typing import * from .regexps import * from .patching import * from...
36,970
41.889791
126
py
qemu
qemu-master/scripts/codeconverter/codeconverter/qom_type_info.py
# Copyright (C) 2020 Red Hat Inc. # # Authors: # Eduardo Habkost <ehabkost@redhat.com> # # This work is licensed under the terms of the GNU GPL, version 2. See # the COPYING file in the top-level directory. import re from .regexps import * from .patching import * from .utils import * from .qom_macros import * TI_FIE...
39,283
39.498969
129
py
qemu
qemu-master/scripts/codeconverter/codeconverter/__init__.py
0
0
0
py
qemu
qemu-master/scripts/codeconverter/codeconverter/regexps.py
# Copyright (C) 2020 Red Hat Inc. # # Authors: # Eduardo Habkost <ehabkost@redhat.com> # # This work is licensed under the terms of the GNU GPL, version 2. See # the COPYING file in the top-level directory. """Helpers for creation of regular expressions""" import re import logging logger = logging.getLogger(__name__...
3,419
27.739496
97
py
qemu
qemu-master/scripts/coverage/compare_gcov_json.py
#!/usr/bin/env python3 # # Compare output of two gcovr JSON reports and report differences. To # generate the required output first: # - create two build dirs with --enable-gcov # - run set of tests in each # - run make coverage-html in each # - run gcovr --json --exclude-unreachable-branches \ # --pr...
3,540
28.508333
77
py
qemu
qemu-master/scripts/simplebench/bench_prealloc.py
#!/usr/bin/env python3 # # Benchmark preallocate filter # # Copyright (c) 2020 Virtuozzo International GmbH. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or...
3,755
27.240602
78
py
qemu
qemu-master/scripts/simplebench/bench-backup.py
#!/usr/bin/env python3 # # Bench backup block-job # # Copyright (c) 2020 Virtuozzo International GmbH. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at...
8,046
34.139738
78
py
qemu
qemu-master/scripts/simplebench/simplebench.py
#!/usr/bin/env python # # Simple benchmarking framework # # Copyright (c) 2019 Virtuozzo International GmbH. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or...
5,159
35.595745
78
py
qemu
qemu-master/scripts/simplebench/bench-example.py
#!/usr/bin/env python3 # # Benchmark example # # Copyright (c) 2019 Virtuozzo International GmbH. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your...
2,493
29.414634
76
py
qemu
qemu-master/scripts/simplebench/results_to_text.py
#!/usr/bin/env python3 # # Simple benchmarking framework # # Copyright (c) 2019 Virtuozzo International GmbH. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, o...
3,807
28.984252
78
py
qemu
qemu-master/scripts/simplebench/img_bench_templater.py
#!/usr/bin/env python3 # # Process img-bench test templates # # Copyright (c) 2021 Virtuozzo International GmbH. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License...
3,386
34.28125
78
py
qemu
qemu-master/scripts/simplebench/bench_write_req.py
#!/usr/bin/env python3 # # Test to compare performance of write requests for two qemu-img binary files. # # The idea of the test comes from intention to check the benefit of c8bb23cbdbe # "qcow2: skip writing zero buffers to empty COW areas". # # Copyright (c) 2020 Virtuozzo International GmbH. # # This program is free...
5,664
31.936047
79
py
qemu
qemu-master/scripts/simplebench/table_templater.py
# Parser for test templates # # Copyright (c) 2021 Virtuozzo International GmbH. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any late...
1,931
29.666667
78
py
qemu
qemu-master/scripts/simplebench/bench_block_job.py
#!/usr/bin/env python3 # # Benchmark block jobs # # Copyright (c) 2019 Virtuozzo International GmbH. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at y...
5,089
31.012579
79
py
qemu
qemu-master/scripts/tracetool/vcpu.py
# -*- coding: utf-8 -*- """ Generic management for the 'vcpu' property. """ __author__ = "Lluís Vilanova <vilanova@ac.upc.edu>" __copyright__ = "Copyright 2016, Lluís Vilanova <vilanova@ac.upc.edu>" __license__ = "GPL version 2 or (at your option) any later version" __maintainer__ = "Stefan Hajnoczi" __emai...
1,663
26.733333
77
py
qemu
qemu-master/scripts/tracetool/__init__.py
# -*- coding: utf-8 -*- """ Machinery for generating tracing-related intermediate files. """ __author__ = "Lluís Vilanova <vilanova@ac.upc.edu>" __copyright__ = "Copyright 2012-2017, Lluís Vilanova <vilanova@ac.upc.edu>" __license__ = "GPL version 2 or (at your option) any later version" __maintainer__ = "St...
13,361
28.431718
82
py
qemu
qemu-master/scripts/tracetool/backend/dtrace.py
# -*- coding: utf-8 -*- """ DTrace/SystemTAP backend. """ __author__ = "Lluís Vilanova <vilanova@ac.upc.edu>" __copyright__ = "Copyright 2012-2017, Lluís Vilanova <vilanova@ac.upc.edu>" __license__ = "GPL version 2 or (at your option) any later version" __maintainer__ = "Stefan Hajnoczi" __email__ = "st...
1,840
24.219178
76
py
qemu
qemu-master/scripts/tracetool/backend/simple.py
# -*- coding: utf-8 -*- """ Simple built-in backend. """ __author__ = "Lluís Vilanova <vilanova@ac.upc.edu>" __copyright__ = "Copyright 2012-2017, Lluís Vilanova <vilanova@ac.upc.edu>" __license__ = "GPL version 2 or (at your option) any later version" __maintainer__ = "Stefan Hajnoczi" __email__ = "ste...
3,106
26.741071
103
py
qemu
qemu-master/scripts/tracetool/backend/log.py
# -*- coding: utf-8 -*- """ Stderr built-in backend. """ __author__ = "Lluís Vilanova <vilanova@ac.upc.edu>" __copyright__ = "Copyright 2012-2017, Lluís Vilanova <vilanova@ac.upc.edu>" __license__ = "GPL version 2 or (at your option) any later version" __maintainer__ = "Stefan Hajnoczi" __email__ = "ste...
2,021
30.107692
76
py
qemu
qemu-master/scripts/tracetool/backend/ftrace.py
# -*- coding: utf-8 -*- """ Ftrace built-in backend. """ __author__ = "Eiichi Tsukata <eiichi.tsukata.xh@hitachi.com>" __copyright__ = "Copyright (C) 2013 Hitachi, Ltd." __license__ = "GPL version 2 or (at your option) any later version" __maintainer__ = "Stefan Hajnoczi" __email__ = "stefanha@redhat.co...
1,656
28.589286
80
py
qemu
qemu-master/scripts/tracetool/backend/ust.py
# -*- coding: utf-8 -*- """ LTTng User Space Tracing backend. """ __author__ = "Lluís Vilanova <vilanova@ac.upc.edu>" __copyright__ = "Copyright 2012-2017, Lluís Vilanova <vilanova@ac.upc.edu>" __license__ = "GPL version 2 or (at your option) any later version" __maintainer__ = "Stefan Hajnoczi" __email__ ...
1,119
23.347826
76
py
qemu
qemu-master/scripts/tracetool/backend/__init__.py
# -*- coding: utf-8 -*- """ Backend management. Creating new backends --------------------- A new backend named 'foo-bar' corresponds to Python module 'tracetool/backend/foo_bar.py'. A backend module should provide a docstring, whose first non-empty line will be considered its short description. All backends must...
4,088
31.452381
79
py
qemu
qemu-master/scripts/tracetool/backend/syslog.py
# -*- coding: utf-8 -*- """ Syslog built-in backend. """ __author__ = "Paul Durrant <paul.durrant@citrix.com>" __copyright__ = "Copyright 2016, Citrix Systems Inc." __license__ = "GPL version 2 or (at your option) any later version" __maintainer__ = "Stefan Hajnoczi" __email__ = "stefanha@redhat.com" ...
1,360
24.679245
76
py
qemu
qemu-master/scripts/tracetool/format/d.py
# -*- coding: utf-8 -*- """ trace/generated-tracers.dtrace (DTrace only). """ __author__ = "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" __maintainer__ = "Stefan Hajnoczi" ...
2,647
32.948718
78
py
qemu
qemu-master/scripts/tracetool/format/simpletrace_stap.py
# -*- coding: utf-8 -*- """ Generate .stp file that outputs simpletrace binary traces (DTrace with SystemTAP only). """ __author__ = "Stefan Hajnoczi <redhat.com>" __copyright__ = "Copyright (C) 2014, Red Hat, Inc." __license__ = "GPL version 2 or (at your option) any later version" __maintainer__ = "Stefan ...
2,467
32.808219
99
py
qemu
qemu-master/scripts/tracetool/format/ust_events_h.py
# -*- coding: utf-8 -*- """ trace/generated-ust-provider.h """ __author__ = "Mohamad Gebai <mohamad.gebai@polymtl.ca>" __copyright__ = "Copyright 2012, Mohamad Gebai <mohamad.gebai@polymtl.ca>" __license__ = "GPL version 2 or (at your option) any later version" __maintainer__ = "Stefan Hajnoczi" __email__ ...
3,670
33.632075
86
py
qemu
qemu-master/scripts/tracetool/format/stap.py
# -*- coding: utf-8 -*- """ Generate .stp file (DTrace with SystemTAP only). """ __author__ = "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" __maintainer__ = "Stefan Hajnocz...
1,643
25.95082
86
py
qemu
qemu-master/scripts/tracetool/format/log_stap.py
# -*- coding: utf-8 -*- """ Generate .stp file that printfs log messages (DTrace with SystemTAP only). """ __author__ = "Daniel P. Berrange <berrange@redhat.com>" __copyright__ = "Copyright (C) 2014-2019, Red Hat, Inc." __license__ = "GPL version 2 or (at your option) any later version" __maintainer__ = "Dan...
4,025
29.969231
78
py
qemu
qemu-master/scripts/tracetool/format/__init__.py
# -*- coding: utf-8 -*- """ Format management. Creating new formats -------------------- A new format named 'foo-bar' corresponds to Python module 'tracetool/format/foo_bar.py'. A format module should provide a docstring, whose first non-empty line will be considered its short description. All formats must genera...
2,392
27.152941
79
py
qemu
qemu-master/scripts/tracetool/format/c.py
# -*- coding: utf-8 -*- """ trace/generated-tracers.c """ __author__ = "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" __maintainer__ = "Stefan Hajnoczi" __email__ = "st...
2,028
26.794521
76
py
qemu
qemu-master/scripts/tracetool/format/h.py
# -*- coding: utf-8 -*- """ trace/generated-tracers.h """ __author__ = "Lluís Vilanova <vilanova@ac.upc.edu>" __copyright__ = "Copyright 2012-2017, Lluís Vilanova <vilanova@ac.upc.edu>" __license__ = "GPL version 2 or (at your option) any later version" __maintainer__ = "Stefan Hajnoczi" __email__ = "st...
2,902
26.913462
76
py
qemu
qemu-master/scripts/tracetool/format/ust_events_c.py
# -*- coding: utf-8 -*- """ trace/generated-ust.c """ __author__ = "Mohamad Gebai <mohamad.gebai@polymtl.ca>" __copyright__ = "Copyright 2012, Mohamad Gebai <mohamad.gebai@polymtl.ca>" __license__ = "GPL version 2 or (at your option) any later version" __maintainer__ = "Stefan Hajnoczi" __email__ = "ste...
968
26.685714
96
py
qemu
qemu-master/scripts/performance/topN_callgrind.py
#!/usr/bin/env python3 # Print the top N most executed functions in QEMU using callgrind. # Syntax: # topN_callgrind.py [-h] [-n] <number of displayed top functions> -- \ # <qemu executable> [<qemu executable options>] \ # <target executable> [<target execurable options>] # # [-h] - Print the ...
5,761
39.865248
80
py
qemu
qemu-master/scripts/performance/topN_perf.py
#!/usr/bin/env python3 # Print the top N most executed functions in QEMU using perf. # Syntax: # topN_perf.py [-h] [-n] <number of displayed top functions> -- \ # <qemu executable> [<qemu executable options>] \ # <target executable> [<target execurable options>] # # [-h] - Print the script arg...
5,888
38.26
77
py
qemu
qemu-master/scripts/performance/dissect.py
#!/usr/bin/env python3 # Print the percentage of instructions spent in each phase of QEMU # execution. # # Syntax: # dissect.py [-h] -- <qemu executable> [<qemu executable options>] \ # <target executable> [<target executable options>] # # [-h] - Print the script arguments help message. # # Exa...
6,718
39.233533
80
py
qemu
qemu-master/scripts/qapi/main.py
# This work is licensed under the terms of the GNU GPL, version 2 or later. # See the COPYING file in the top-level directory. """ QAPI Generator This is the main entry point for generating C code from the QAPI schema. """ import argparse import sys from typing import Optional from .commands import gen_commands fro...
3,575
33.384615
76
py
qemu
qemu-master/scripts/qapi/error.py
# -*- coding: utf-8 -*- # # Copyright (c) 2017-2019 Red Hat Inc. # # Authors: # Markus Armbruster <armbru@redhat.com> # Marc-André Lureau <marcandre.lureau@redhat.com> # # This work is licensed under the terms of the GNU GPL, version 2. # See the COPYING file in the top-level directory. """ QAPI error classes Commo...
1,320
24.901961
72
py
qemu
qemu-master/scripts/qapi/parser.py
# -*- coding: utf-8 -*- # # QAPI schema parser # # Copyright IBM, Corp. 2011 # Copyright (c) 2013-2019 Red Hat Inc. # # Authors: # Anthony Liguori <aliguori@us.ibm.com> # Markus Armbruster <armbru@redhat.com> # Marc-André Lureau <marcandre.lureau@redhat.com> # Kevin Wolf <kwolf@redhat.com> # # This work is licensed...
31,095
37.107843
79
py
qemu
qemu-master/scripts/qapi/events.py
""" QAPI event generator Copyright (c) 2014 Wenchao Xia Copyright (c) 2015-2018 Red Hat Inc. Authors: Wenchao Xia <wenchaoqemu@gmail.com> Markus Armbruster <armbru@redhat.com> This work is licensed under the terms of the GNU GPL, version 2. See the COPYING file in the top-level directory. """ from typing import L...
7,573
29.055556
75
py
qemu
qemu-master/scripts/qapi/visit.py
""" QAPI visitor generator Copyright IBM, Corp. 2011 Copyright (C) 2014-2018 Red Hat, Inc. Authors: Anthony Liguori <aliguori@us.ibm.com> Michael Roth <mdroth@linux.vnet.ibm.com> Markus Armbruster <armbru@redhat.com> This work is licensed under the terms of the GNU GPL, version 2. See the COPYING file in the t...
12,442
28.07243
79
py
qemu
qemu-master/scripts/qapi/commands.py
""" QAPI command marshaller generator Copyright IBM, Corp. 2011 Copyright (C) 2014-2018 Red Hat, Inc. Authors: Anthony Liguori <aliguori@us.ibm.com> Michael Roth <mdroth@linux.vnet.ibm.com> Markus Armbruster <armbru@redhat.com> This work is licensed under the terms of the GNU GPL, version 2. See the COPYING file ...
11,314
26.597561
77
py
qemu
qemu-master/scripts/qapi/gen.py
# -*- coding: utf-8 -*- # # QAPI code generation # # Copyright (c) 2015-2019 Red Hat Inc. # # Authors: # Markus Armbruster <armbru@redhat.com> # Marc-André Lureau <marcandre.lureau@redhat.com> # # This work is licensed under the terms of the GNU GPL, version 2. # See the COPYING file in the top-level directory. from...
11,131
29.666667
79
py
qemu
qemu-master/scripts/qapi/types.py
""" QAPI types generator Copyright IBM, Corp. 2011 Copyright (c) 2013-2018 Red Hat Inc. Authors: Anthony Liguori <aliguori@us.ibm.com> Michael Roth <mdroth@linux.vnet.ibm.com> Markus Armbruster <armbru@redhat.com> This work is licensed under the terms of the GNU GPL, version 2. # See the COPYING file in the top-l...
11,257
28.015464
75
py
qemu
qemu-master/scripts/qapi/source.py
# # QAPI frontend source file info # # Copyright (c) 2019 Red Hat Inc. # # Authors: # Markus Armbruster <armbru@redhat.com> # # This work is licensed under the terms of the GNU GPL, version 2. # See the COPYING file in the top-level directory. import copy from typing import List, Optional, TypeVar class QAPISchemaP...
2,095
28.111111
73
py
qemu
qemu-master/scripts/qapi/common.py
# # QAPI helper library # # Copyright IBM, Corp. 2011 # Copyright (c) 2013-2018 Red Hat Inc. # # Authors: # Anthony Liguori <aliguori@us.ibm.com> # Markus Armbruster <armbru@redhat.com> # # This work is licensed under the terms of the GNU GPL, version 2. # See the COPYING file in the top-level directory. import re f...
7,683
29.492063
78
py
qemu
qemu-master/scripts/qapi/introspect.py
""" QAPI introspection generator Copyright (C) 2015-2021 Red Hat, Inc. Authors: Markus Armbruster <armbru@redhat.com> John Snow <jsnow@redhat.com> This work is licensed under the terms of the GNU GPL, version 2. See the COPYING file in the top-level directory. """ from typing import ( Any, Dict, Gener...
14,377
35.772379
79
py
qemu
qemu-master/scripts/qapi/expr.py
# -*- coding: utf-8 -*- # # Copyright IBM, Corp. 2011 # Copyright (c) 2013-2021 Red Hat Inc. # # Authors: # Anthony Liguori <aliguori@us.ibm.com> # Markus Armbruster <armbru@redhat.com> # Eric Blake <eblake@redhat.com> # Marc-André Lureau <marcandre.lureau@redhat.com> # John Snow <jsnow@redhat.com> # # This work i...
23,359
33.813711
79
py