From: Greg Kurz <groug@kaod.org>
To: Zhang Chen <zhangchen.fnst@cn.fujitsu.com>
Cc: Jason Wang <jasowang@redhat.com>,
qemu-devel@nongnu.org, peter.maydell@linaro.org,
Stefan Hajnoczi <stefanha@redhat.com>
Subject: Re: [Qemu-devel] [PULL 9/9] colo-proxy: fix memory leak
Date: Mon, 31 Oct 2016 10:30:33 +0100 [thread overview]
Message-ID: <20161031103033.71cac9cc@bahia> (raw)
In-Reply-To: <8df5227c-0475-59cc-a5fe-a9dbc1a90c4e@cn.fujitsu.com>
On Mon, 31 Oct 2016 16:05:00 +0800
Zhang Chen <zhangchen.fnst@cn.fujitsu.com> wrote:
> On 10/31/2016 03:40 PM, Jason Wang wrote:
> >
> >
> > On 2016年10月31日 14:37, Zhang Chen wrote:
> >>
> >>
> >> On 10/30/2016 08:13 PM, Greg Kurz wrote:
> >>> On Wed, 26 Oct 2016 10:24:11 +0800
> >>> Jason Wang <jasowang@redhat.com> wrote:
> >>>
> >>>> From: Zhang Chen <zhangchen.fnst@cn.fujitsu.com>
> >>>>
> >>>> Fix memory leak in colo-compare.c and filter-rewriter.c
> >>>> Report by Coverity and add some comments.
> >>>>
> >>>> Signed-off-by: Zhang Chen <zhangchen.fnst@cn.fujitsu.com>
> >>>> Reviewed-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
> >>>> Signed-off-by: Jason Wang <jasowang@redhat.com>
> >>>> ---
> >>> Hi,
> >>>
> >>> This commit breaks --enable-trace-backends=ust builds in travis (#17):
> >>>
> >>> In file included from ./trace/generated-tracers.h:5966:0,
> >>> from /home/travis/build/gkurz/qemu/include/trace.h:4,
> >>> from qapi/qapi-visit-core.c:22:
> >>> ./trace/generated-ust-provider.h:18625:3: error: unknown type name
> >>> ‘_TP_EXPROTOint’
> >>> In file included from
> >>> /home/travis/build/gkurz/qemu/include/trace.h:4:0,
> >>> from qapi/qapi-visit-core.c:22:
> >>> ./trace/generated-tracers.h: In function ‘trace_colo_compare_pkt_info’:
> >>> ./trace/generated-tracers.h:19249:432: error: expected string
> >>> literal before ‘_SDT_ASM_OPERANDS_ssize’
> >>> ./trace/generated-tracers.h:19249:432: error: implicit declaration
> >>> of function ‘__tracepoint_cb_qemu___colo_compare_pkt_info’
> >>> [-Werror=implicit-function-declaration]
> >>> ./trace/generated-tracers.h:19249:432: error: nested extern
> >>> declaration of ‘__tracepoint_cb_qemu___colo_compare_pkt_info’
> >>> [-Werror=nested-externs]
> >>> cc1: all warnings being treated as errors
> >>> make: *** [qapi/qapi-visit-core.o] Error 1
> >>> make: *** Waiting for unfinished jobs....
> >>>
> >>> https://travis-ci.org/gkurz/qemu/jobs/171641119
> >>
> >> I got your point and test it, same problem in here.
> >> I found that when trace args >10 it not work(this trace have 11 args),
> >> else it works well like that:
> >>
> >> colo_compare_pkt_info(const char *src, const char *dst, uint32_t
> >> pseq, uint32_t pack, uint32_t sseq, uint32_t sack, int res, uint32_t
> >> pflag, uint32_t sflag, const char *src1) "src/dst: %s/%s p:
> >> seq/ack=%u/%u s: seq/ack=%u/%u res=%d flags=%x/%x %s\n"
> >>
> >> So I think this bug could be related to trace system, but I review
> >> trace codes nothing be found about this.
> >> CC: stefan
> >>
> >> Thanks
> >
> > We met similar issue in the past which looks like a limitation of the
> > backend.
> >
> > Btw, Alex Bennee has posted a workaround for this, could you please
> > review or ack on that patch?
>
> Can you give me a patch name ? and about this patch, should I send a
> patch split this trace_event
> to two trace_event first ?
>
This is what Alex's patch does :)
net: split colo_compare_pkt_info into two trace events
<20161028132559.8324-1-alex.bennee@linaro.org>
> Thanks
> Zhang Chen
>
Cheers.
--
Greg
next prev parent reply other threads:[~2016-10-31 9:30 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-26 2:24 [Qemu-devel] [PULL 0/9] Net patches Jason Wang
2016-10-26 2:24 ` [Qemu-devel] [PULL 1/9] net: pcnet: check rx/tx descriptor ring length Jason Wang
2016-10-26 2:24 ` [Qemu-devel] [PULL 2/9] net: pcnet: fix source formatting and indentation Jason Wang
2016-10-26 2:24 ` [Qemu-devel] [PULL 3/9] tap-bsd: OpenBSD uses tap(4) now Jason Wang
2016-10-26 2:24 ` [Qemu-devel] [PULL 4/9] net: eepro100: fix memory leak in device uninit Jason Wang
2016-10-26 2:24 ` [Qemu-devel] [PULL 5/9] net: rocker: set limit to DMA buffer size Jason Wang
2016-10-26 2:24 ` [Qemu-devel] [PULL 6/9] e1000e: Don't zero out buffer address in rx descriptor Jason Wang
2016-10-26 2:24 ` [Qemu-devel] [PULL 7/9] net: vmxnet: initialise local tx descriptor Jason Wang
2016-10-26 2:24 ` [Qemu-devel] [PULL 8/9] net: rtl8139: limit processing of ring descriptors Jason Wang
2016-10-26 2:24 ` [Qemu-devel] [PULL 9/9] colo-proxy: fix memory leak Jason Wang
2016-10-30 12:13 ` Greg Kurz
2016-10-31 6:37 ` Zhang Chen
2016-10-31 7:40 ` Jason Wang
2016-10-31 8:05 ` Zhang Chen
2016-10-31 9:30 ` Greg Kurz [this message]
2016-10-27 12:31 ` [Qemu-devel] [PULL 0/9] Net patches Peter Maydell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20161031103033.71cac9cc@bahia \
--to=groug@kaod.org \
--cc=jasowang@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.com \
--cc=zhangchen.fnst@cn.fujitsu.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).