aboutsummaryrefslogtreecommitdiff
path: root/net/trace-events
diff options
context:
space:
mode:
authorDerek Su <dereksu@qnap.com>2020-05-22 15:53:57 +0800
committerJason Wang <jasowang@redhat.com>2020-06-18 21:05:52 +0800
commitbdadbb0f74305d1509805936bf9b1ac14eab30e4 (patch)
tree7b155cb52c38dcb58d8d834b1403c6aa6df2f084 /net/trace-events
parent5bd57eba041fb62c373f89c311936000c115fdd6 (diff)
downloadqemu-bdadbb0f74305d1509805936bf9b1ac14eab30e4.zip
qemu-bdadbb0f74305d1509805936bf9b1ac14eab30e4.tar.gz
qemu-bdadbb0f74305d1509805936bf9b1ac14eab30e4.tar.bz2
colo-compare: Fix memory leak in packet_enqueue()
The patch is to fix the "pkt" memory leak in packet_enqueue(). The allocated "pkt" needs to be freed if the colo compare primary or secondary queue is too big. Replace the error_report of full queue with a trace event. Signed-off-by: Derek Su <dereksu@qnap.com> Reviewed-by: Zhang Chen <chen.zhang@intel.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Signed-off-by: Zhang Chen <chen.zhang@intel.com> Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'net/trace-events')
-rw-r--r--net/trace-events1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/trace-events b/net/trace-events
index 02c13fd..fa49c71 100644
--- a/net/trace-events
+++ b/net/trace-events
@@ -12,6 +12,7 @@ colo_proxy_main(const char *chr) ": %s"
# colo-compare.c
colo_compare_main(const char *chr) ": %s"
+colo_compare_drop_packet(const char *queue, const char *chr) ": %s: %s"
colo_compare_udp_miscompare(const char *sta, int size) ": %s = %d"
colo_compare_icmp_miscompare(const char *sta, int size) ": %s = %d"
colo_compare_ip_info(int psize, const char *sta, const char *stb, int ssize, const char *stc, const char *std) "ppkt size = %d, ip_src = %s, ip_dst = %s, spkt size = %d, ip_src = %s, ip_dst = %s"