1. 10 5月, 2017 2 次提交
  2. 09 5月, 2017 7 次提交
  3. 08 5月, 2017 1 次提交
    • D
      trace: disallow more than 10 arguments per trace event · f3fddaf6
      Daniel P. Berrange 提交于
      The UST trace backend can only cope with upto 10 arguments. To ensure we
      don't exceed the limit when UST is not compiled in, disallow more than
      10 arguments upfront.
      
      This prevents the case where:
      
        commit 0fc8aec7
        Author: Zhang Chen <zhangchen.fnst@cn.fujitsu.com>
        Date:   Tue Apr 18 10:20:20 2017 +0800
      
          COLO-compare: Optimize tcp compare trace event
      
          Optimize two trace events as one, adjust print format make
          it easy to read. rename trace_colo_compare_pkt_info_src/dst
          to trace_colo_compare_tcp_info.
      
      regressed the fix done in
      
        commit 2dfe5113
        Author: Alex Bennée <alex.bennee@linaro.org>
        Date:   Fri Oct 28 14:25:59 2016 +0100
      
          net: split colo_compare_pkt_info into two trace events
      
          It seems there is a limit to the number of arguments a UST trace event
          can take and at 11 the previous trace command broke the build. Split the
          trace into a src pkt and dst pkt trace to fix this.
      Signed-off-by: NAlex Bennée <alex.bennee@linaro.org>
          Message-id: 20161028132559.8324-1-alex.bennee@linaro.org
      Reviewed-by: NPeter Maydell <peter.maydell@linaro.org>
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      
      Now we get an immediate fail even when UST is disabled:
      
        GEN     net/trace.h
      Traceback (most recent call last):
        File "/home/berrange/src/virt/qemu/scripts/tracetool.py", line 154, in <module>
          main(sys.argv)
        File "/home/berrange/src/virt/qemu/scripts/tracetool.py", line 145, in main
          events.extend(tracetool.read_events(fh))
        File "/home/berrange/src/virt/qemu/scripts/tracetool/__init__.py", line 307, in read_events
          event = Event.build(line)
        File "/home/berrange/src/virt/qemu/scripts/tracetool/__init__.py", line 244, in build
          event = Event(name, props, fmt, args)
        File "/home/berrange/src/virt/qemu/scripts/tracetool/__init__.py", line 196, in __init__
          "argument count" % name)
      ValueError: Event 'colo_compare_tcp_info' has more than maximum permitted argument count
      Makefile:96: recipe for target 'net/trace.h-timestamp' failed
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      Message-id: 20170426153900.21066-1-berrange@redhat.com
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      f3fddaf6
  4. 05 5月, 2017 5 次提交
  5. 21 4月, 2017 1 次提交
  6. 07 4月, 2017 1 次提交
  7. 28 3月, 2017 1 次提交
  8. 21 3月, 2017 3 次提交
  9. 16 3月, 2017 19 次提交