Patchew URL: https://patchew.org/QEMU/20191017131615.19660-1-alex.ben...@linaro.org/
Hi, This series seems to have some coding style problems. See output below for more information: Subject: [PATCH for 4.2 v6 00/54] Support for TCG plugins Type: series Message-id: 20191017131615.19660-1-alex.ben...@linaro.org === TEST SCRIPT BEGIN === #!/bin/bash git rev-parse base > /dev/null || exit 0 git config --local diff.renamelimit 0 git config --local diff.renames True git config --local diff.algorithm histogram ./scripts/checkpatch.pl --mailback base.. === TEST SCRIPT END === Updating 3c8cf5a9c21ff8782164d1def7f44bd888713384 Switched to a new branch 'test' 9847f1b scripts/checkpatch.pl: don't complain about (foo, /* empty */) e3fa8e1 .travis.yml: add --enable-plugins tests b4a5f84 include/exec: wrap cpu_ldst.h in CONFIG_TCG 8462b2e accel/stubs: reduce headers from tcg-stub 66d6663 tests/plugin: add hotpages to analyse memory access patterns cf354fc tests/plugin: add instruction execution breakdown 161670c tests/plugin: add a hotblocks plugin 31bb5d8 tests/tcg: enable plugin testing 32fae30 tests/tcg: drop test-i386-fprem from TESTS when not SLOW 9813370 tests/tcg: move "virtual" tests to EXTRA_TESTS f932394 tests/tcg: set QEMU_OPTS for all cris runs 2d34307 tests/tcg/Makefile.target: fix path to config-host.mak 96c806e tests/plugin: add sample plugins 8d459e7 linux-user: support -plugin option 557e7e9 vl: support -plugin option 3547a90 plugin: add qemu_plugin_outs helper fa5672e plugin: add qemu_plugin_insn_disas helper cc752d2 plugin: expand the plugin_init function to include an info block 13aaf71 plugin: add API symbols to qemu-plugins.symbols c7db739 configure: add --enable-plugins 09d36aa translator: inject instrumentation from plugins 7faedce target/openrisc: fetch code with translator_ld 734b011 target/xtensa: fetch code with translator_ld b95a23d target/sparc: fetch code with translator_ld 83ca1d2 target/riscv: fetch code with translator_ld 97da0dd target/alpha: fetch code with translator_ld 3e3734e target/m68k: fetch code with translator_ld f040316 target/hppa: fetch code with translator_ld 0af56b7 target/i386: fetch code with translator_ld 2227803 target/sh4: fetch code with translator_ld 59646df target/ppc: fetch code with translator_ld 271b6d3 target/arm: fetch code with translator_ld 7f001d1 translator: add translator_ld{ub,sw,uw,l,q} 233c92e plugin-gen: add plugin_insn_append 1b9cb4f cpu: hook plugin vcpu events 55bc125 *-user: plugin syscalls b2b9b3e *-user: notify plugin of exit ede8e39 translate-all: notify plugin code of tb_flush 6730862 plugins: implement helpers for resolving hwaddr d925699 tcg: let plugins instrument virtual memory accesses 602641a atomic_template: add inline trace/plugin helpers 2bcb790 plugin-gen: add module for TCG-related code ef984a5 tcg: add tcg_gen_st_ptr 3ed6ebb cputlb: introduce get_page_addr_code_hostp f845fd4 cputlb: document get_page_addr_code 0994f5f queue: add QTAILQ_REMOVE_SEVERAL c47e85c plugin: add implementation of the api 5591d65 plugin: add core code 8bba1274 plugin: add user-facing API 4197e2a docs/devel: add plugins.rst design document 2266562 translate-all: use cpu_in_exclusive_work_context() in tb_flush 51bbfa6 cpu: introduce cpu_in_exclusive_context() 0512852 trace: add mmu_index to mem_info 2e4704f trace: expand mem_info:size_shift to 4 bits === OUTPUT BEGIN === 1/54 Checking commit 2e4704f0a0e9 (trace: expand mem_info:size_shift to 4 bits) 2/54 Checking commit 0512852c1418 (trace: add mmu_index to mem_info) 3/54 Checking commit 51bbfa6c73b6 (cpu: introduce cpu_in_exclusive_context()) 4/54 Checking commit 22665627c396 (translate-all: use cpu_in_exclusive_work_context() in tb_flush) 5/54 Checking commit 4197e2a049aa (docs/devel: add plugins.rst design document) WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #24: new file mode 100644 total: 0 errors, 1 warnings, 116 lines checked Patch 5/54 has style problems, please review. If any of these errors are false positives report them to the maintainer, see CHECKPATCH in MAINTAINERS. 6/54 Checking commit 8bba1274c903 (plugin: add user-facing API) WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #15: new file mode 100644 WARNING: architecture specific defines should be avoided #41: FILE: include/qemu/qemu-plugin.h:22: +#if defined _WIN32 || defined __CYGWIN__ WARNING: architecture specific defines should be avoided #49: FILE: include/qemu/qemu-plugin.h:30: + #if __GNUC__ >= 4 total: 0 errors, 3 warnings, 351 lines checked Patch 6/54 has style problems, please review. If any of these errors are false positives report them to the maintainer, see CHECKPATCH in MAINTAINERS. 7/54 Checking commit 5591d65608db (plugin: add core code) WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #99: new file mode 100644 ERROR: externs should be avoided in .c files #947: FILE: plugins/loader.c:63: +extern struct qemu_plugin_state plugin; total: 1 errors, 1 warnings, 1284 lines checked Patch 7/54 has style problems, please review. If any of these errors are false positives report them to the maintainer, see CHECKPATCH in MAINTAINERS. 8/54 Checking commit c47e85c5df67 (plugin: add implementation of the api) WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #36: new file mode 100644 ERROR: "foo * bar" should be "foo *bar" #295: FILE: plugins/api.c:255: +static MachineState * get_ms(void) total: 1 errors, 1 warnings, 290 lines checked Patch 8/54 has style problems, please review. If any of these errors are false positives report them to the maintainer, see CHECKPATCH in MAINTAINERS. 9/54 Checking commit 0994f5f73013 (queue: add QTAILQ_REMOVE_SEVERAL) WARNING: Block comments use a leading /* on a separate line #32: FILE: include/qemu/queue.h:431: + } while (/*CONSTCOND*/0) total: 0 errors, 1 warnings, 16 lines checked Patch 9/54 has style problems, please review. If any of these errors are false positives report them to the maintainer, see CHECKPATCH in MAINTAINERS. 10/54 Checking commit f845fd41993a (cputlb: document get_page_addr_code) 11/54 Checking commit 3ed6ebbbaecb (cputlb: introduce get_page_addr_code_hostp) 12/54 Checking commit ef984a5e29b7 (tcg: add tcg_gen_st_ptr) 13/54 Checking commit 2bcb790e7f11 (plugin-gen: add module for TCG-related code) WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #48: new file mode 100644 total: 0 errors, 1 warnings, 1123 lines checked Patch 13/54 has style problems, please review. If any of these errors are false positives report them to the maintainer, see CHECKPATCH in MAINTAINERS. 14/54 Checking commit 602641abf4fb (atomic_template: add inline trace/plugin helpers) WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #15: new file mode 100644 total: 0 errors, 1 warnings, 299 lines checked Patch 14/54 has style problems, please review. If any of these errors are false positives report them to the maintainer, see CHECKPATCH in MAINTAINERS. 15/54 Checking commit d925699870d6 (tcg: let plugins instrument virtual memory accesses) WARNING: line over 80 characters #111: FILE: include/exec/cpu_ldst_template.h:91: + uint16_t meminfo = trace_mem_build_info(SHIFT, false, MO_TE, false, mmu_idx); total: 0 errors, 1 warnings, 325 lines checked Patch 15/54 has style problems, please review. If any of these errors are false positives report them to the maintainer, see CHECKPATCH in MAINTAINERS. 16/54 Checking commit 6730862552c5 (plugins: implement helpers for resolving hwaddr) ERROR: line over 90 characters #61: FILE: accel/tcg/cputlb.c:1279: + data->v.io.section = iotlb_to_section(cpu, iotlbentry->addr, iotlbentry->attrs); WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #78: new file mode 100644 WARNING: line over 80 characters #137: FILE: include/qemu/qemu-plugin.h:294: +uint64_t qemu_plugin_hwaddr_device_offset(const struct qemu_plugin_hwaddr *haddr); WARNING: line over 80 characters #193: FILE: plugins/api.c:279: +uint64_t qemu_plugin_hwaddr_device_offset(const struct qemu_plugin_hwaddr *haddr) WARNING: line over 80 characters #198: FILE: plugins/api.c:284: + ram_addr_t ram_addr = qemu_ram_addr_from_host((void *) haddr->v.ram.hostaddr); WARNING: line over 80 characters #200: FILE: plugins/api.c:286: + error_report("Bad ram pointer %"PRIx64"", haddr->v.ram.hostaddr); total: 1 errors, 5 warnings, 174 lines checked Patch 16/54 has style problems, please review. If any of these errors are false positives report them to the maintainer, see CHECKPATCH in MAINTAINERS. 17/54 Checking commit ede8e39d51a3 (translate-all: notify plugin code of tb_flush) 18/54 Checking commit b2b9b3e4e24c (*-user: notify plugin of exit) 19/54 Checking commit 55bc125e674e (*-user: plugin syscalls) WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #93: new file mode 100644 total: 0 errors, 1 warnings, 127 lines checked Patch 19/54 has style problems, please review. If any of these errors are false positives report them to the maintainer, see CHECKPATCH in MAINTAINERS. 20/54 Checking commit 1b9cb4fb0263 (cpu: hook plugin vcpu events) 21/54 Checking commit 233c92ef07f9 (plugin-gen: add plugin_insn_append) 22/54 Checking commit 7f001d1e4075 (translator: add translator_ld{ub,sw,uw,l,q}) ERROR: space prohibited before that close parenthesis ')' #118: FILE: include/exec/translator.h:198: +GEN_TRANSLATOR_LD(translator_ldub, ldb, ldub, uint8_t, 0, /* no swap */ ) total: 1 errors, 0 warnings, 95 lines checked Patch 22/54 has style problems, please review. If any of these errors are false positives report them to the maintainer, see CHECKPATCH in MAINTAINERS. 23/54 Checking commit 271b6d3a545c (target/arm: fetch code with translator_ld) 24/54 Checking commit 59646dfc5ebe (target/ppc: fetch code with translator_ld) 25/54 Checking commit 2227803dcdf4 (target/sh4: fetch code with translator_ld) 26/54 Checking commit 0af56b74d847 (target/i386: fetch code with translator_ld) 27/54 Checking commit f040316a74fb (target/hppa: fetch code with translator_ld) 28/54 Checking commit 3e3734ecf4c9 (target/m68k: fetch code with translator_ld) 29/54 Checking commit 97da0ddcb54b (target/alpha: fetch code with translator_ld) 30/54 Checking commit 83ca1d283609 (target/riscv: fetch code with translator_ld) 31/54 Checking commit b95a23da9d9e (target/sparc: fetch code with translator_ld) 32/54 Checking commit 734b011c095d (target/xtensa: fetch code with translator_ld) 33/54 Checking commit 7faedce22090 (target/openrisc: fetch code with translator_ld) 34/54 Checking commit 09d36aae7994 (translator: inject instrumentation from plugins) 35/54 Checking commit c7db739152f7 (configure: add --enable-plugins) 36/54 Checking commit 13aaf71d1d48 (plugin: add API symbols to qemu-plugins.symbols) WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #136: new file mode 100644 total: 0 errors, 1 warnings, 166 lines checked Patch 36/54 has style problems, please review. If any of these errors are false positives report them to the maintainer, see CHECKPATCH in MAINTAINERS. 37/54 Checking commit cc752d2a4831 (plugin: expand the plugin_init function to include an info block) ERROR: line over 90 characters #84: FILE: plugins/loader.c:65: +typedef int (*qemu_plugin_install_func_t)(qemu_plugin_id_t, const qemu_info_t *, int, char **); total: 1 errors, 0 warnings, 100 lines checked Patch 37/54 has style problems, please review. If any of these errors are false positives report them to the maintainer, see CHECKPATCH in MAINTAINERS. 38/54 Checking commit fa5672ef3129 (plugin: add qemu_plugin_insn_disas helper) 39/54 Checking commit 3547a9081a3d (plugin: add qemu_plugin_outs helper) 40/54 Checking commit 557e7e9a8eb5 (vl: support -plugin option) 41/54 Checking commit 8d459e73e5ac (linux-user: support -plugin option) 42/54 Checking commit 96c806e269da (tests/plugin: add sample plugins) WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #27: new file mode 100644 total: 0 errors, 1 warnings, 287 lines checked Patch 42/54 has style problems, please review. If any of these errors are false positives report them to the maintainer, see CHECKPATCH in MAINTAINERS. 43/54 Checking commit 2d34307f8535 (tests/tcg/Makefile.target: fix path to config-host.mak) 44/54 Checking commit f932394c2aaf (tests/tcg: set QEMU_OPTS for all cris runs) 45/54 Checking commit 98133707f51e (tests/tcg: move "virtual" tests to EXTRA_TESTS) 46/54 Checking commit 32fae30ee9b2 (tests/tcg: drop test-i386-fprem from TESTS when not SLOW) 47/54 Checking commit 31bb5d82b265 (tests/tcg: enable plugin testing) 48/54 Checking commit 161670c31d4e (tests/plugin: add a hotblocks plugin) WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #33: new file mode 100644 WARNING: line over 80 characters #101: FILE: tests/plugin/hotblocks.c:64: + g_string_append_printf(report, "%#016"PRIx64", %d, %ld, %"PRId64"\n", total: 0 errors, 2 warnings, 150 lines checked Patch 48/54 has style problems, please review. If any of these errors are false positives report them to the maintainer, see CHECKPATCH in MAINTAINERS. 49/54 Checking commit cf354fc713ef (tests/plugin: add instruction execution breakdown) WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #27: new file mode 100644 ERROR: space required after that ',' (ctx:VxV) #100: FILE: tests/plugin/howvec.c:69: + { " Add/Sub (imm,tags)","asit", 0x1f800000, 0x11800000, COUNT_CLASS}, ^ ERROR: space required after that ',' (ctx:VxV) #123: FILE: tests/plugin/howvec.c:92: + { " AdvSimd ldstmult++","advlsmp",0xbfb00000, 0x0c800000, COUNT_CLASS}, ^ ERROR: space required after that ',' (ctx:VxV) #123: FILE: tests/plugin/howvec.c:92: + { " AdvSimd ldstmult++","advlsmp",0xbfb00000, 0x0c800000, COUNT_CLASS}, ^ ERROR: space required after that ',' (ctx:VxV) #125: FILE: tests/plugin/howvec.c:94: + { " AdvSimd ldst++", "advlssp",0xbf800000, 0x0d800000, COUNT_CLASS}, ^ ERROR: space required after that ',' (ctx:VxV) #129: FILE: tests/plugin/howvec.c:98: + { " ldst noalloc pair", "ldstnap",0x3b800000, 0x28000000, COUNT_CLASS}, ^ ERROR: space required after that ',' (ctx:VxV) #133: FILE: tests/plugin/howvec.c:102: + { " ldst reg (reg off)","ldstro", 0x3b200b00, 0x38200800, COUNT_CLASS}, ^ WARNING: line over 80 characters #154: FILE: tests/plugin/howvec.c:123: + { "Unclassified", "unclas", 0x00000000, 0x00000000, COUNT_INDIVIDUAL}, WARNING: line over 80 characters #163: FILE: tests/plugin/howvec.c:132: + { "Unclassified", "unclas", 0x00000000, 0x00000000, COUNT_INDIVIDUAL}, WARNING: line over 80 characters #168: FILE: tests/plugin/howvec.c:137: + { "Unclassified", "unclas", 0x00000000, 0x00000000, COUNT_INDIVIDUAL}, ERROR: that open brace { should be on the previous line #178: FILE: tests/plugin/howvec.c:147: +static ClassSelector class_tables[] = +{ WARNING: line over 80 characters #213: FILE: tests/plugin/howvec.c:182: + g_string_append_printf(report, "Class: %-24s\tcounted individually\n", ERROR: space required after that ',' (ctx:VxV) #229: FILE: tests/plugin/howvec.c:198: + g_string_append_printf(report,"Individual Instructions:\n"); ^ WARNING: line over 80 characters #235: FILE: tests/plugin/howvec.c:204: + g_string_append_printf(report, "Instr: %-24s\t(%ld hits)\t(op=%#08x/%s)\n", ERROR: "foo * bar" should be "foo *bar" #259: FILE: tests/plugin/howvec.c:228: +static uint64_t * find_counter(struct qemu_plugin_insn *insn) WARNING: line over 80 characters #295: FILE: tests/plugin/howvec.c:264: + GUINT_TO_POINTER(opcode)); total: 9 errors, 7 warnings, 359 lines checked Patch 49/54 has style problems, please review. If any of these errors are false positives report them to the maintainer, see CHECKPATCH in MAINTAINERS. 50/54 Checking commit 66d6663792b9 (tests/plugin: add hotpages to analyse memory access patterns) WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #27: new file mode 100644 WARNING: line over 80 characters #107: FILE: tests/plugin/hotpages.c:76: + g_autoptr(GString) report = g_string_new("Addr, RCPUs, Reads, WCPUs, Writes\n"); total: 0 errors, 2 warnings, 198 lines checked Patch 50/54 has style problems, please review. If any of these errors are false positives report them to the maintainer, see CHECKPATCH in MAINTAINERS. 51/54 Checking commit 8462b2eb9a43 (accel/stubs: reduce headers from tcg-stub) 52/54 Checking commit b4a5f84e57f8 (include/exec: wrap cpu_ldst.h in CONFIG_TCG) 53/54 Checking commit e3fa8e1cc1d2 (.travis.yml: add --enable-plugins tests) 54/54 Checking commit 9847f1b9e9f0 (scripts/checkpatch.pl: don't complain about (foo, /* empty */)) === OUTPUT END === Test command exited with code: 1 The full log is available at http://patchew.org/logs/20191017131615.19660-1-alex.ben...@linaro.org/testing.checkpatch/?type=message. --- Email generated automatically by Patchew [https://patchew.org/]. Please send your feedback to patchew-de...@redhat.com