Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp683182pxv; Thu, 15 Jul 2021 13:23:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz8evxilKEaXIGK7v8TIJYp0nUyMWT8HbxW7CavntoNlw/WOIYEgC4tPCgCOpSJ1hW1hcOx X-Received: by 2002:a17:907:f98:: with SMTP id kb24mr7388948ejc.554.1626380593793; Thu, 15 Jul 2021 13:23:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626380593; cv=none; d=google.com; s=arc-20160816; b=xSt46kEfsN6UkoBN/fmHxg/Z9symjp0l/KLS4NWVfemgzVgChW7zKO7Uewm0z9Nwu0 bbvqRScmRuffCcFbSF6ocDkM6VTCqXPtbyDcsWvuGnbW8SbZ/6I64PWRyDIqh/+dd4rL NOy5uUL1cp4/aBDBaeEI+EUaNfgNgbaNL+MHX2snxs+JJFEa5US7e5aJ3jukEJhTsqRM /YebdNxfB5owsQUiKeNsP2bzV/QTj0Lffjg/bjSUxlsDFfINYbFEgRM+XnEnd3XOje6m gy4gU22Uc0M5bsNTzSxpZzUQffbilBUrGgI/VvdeEgdbcpPwLLvRD9q3puSfbmOwDUEW +UcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=44GHZdPn1/ImS0BQXlcke5+k9teOl5vGICDCEweu15A=; b=T1HEgyAcDMtibF/bL9KCQdSi4udvvpovtVIhK4z59JpDVHVgow46j2L0O5+mfdoBiw XQCt+G8DN+taMnqSexEFq7KGa6ZPyLZLEk9U+1GtePbUdFRBQJ0BmeB49AdN5Bzc4NV3 93tZMSbwnqgEa+zBclqoPMjQ+pfZAn6nS4NR52u3pksA+3yYmrauaIgMQohcSIWIK0QH xw9l2IqWkx4JRwWwI9pzsNKwEkUenAIA7Pq2uAuZw0dKCa6SWkgfITV0HadcCISVad0q KzFs3MxRiVc+S98AzRifCuZ1fm0xnV8WhgR+9dCU4G98PpVQR+PRVE8RThn+cbQe6yry 4xVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ibnLHtpb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o3si9176732edc.246.2021.07.15.13.22.50; Thu, 15 Jul 2021 13:23:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ibnLHtpb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236822AbhGOUYi (ORCPT + 99 others); Thu, 15 Jul 2021 16:24:38 -0400 Received: from mail.kernel.org ([198.145.29.99]:56198 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235437AbhGOUYg (ORCPT ); Thu, 15 Jul 2021 16:24:36 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id F1E67613D3; Thu, 15 Jul 2021 20:21:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1626380503; bh=SYaLs1ohm9nYnP1HBgtNYafbqW6mrbrRwfra8T6TbfI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ibnLHtpbPDis+sYzL9JoCTBT3yU1Rdg7/gNT4rGTDwOW0p3vyxjfRMnXtJ+1xU9qp MIOYtQnNgYc34pAH6C3n96kc3kKfP5ZBWGbP3JVUzZeJ19LKZsovxRtdRTCUYl4oTp 2T12IksbcNQ34MMr5yz8UqUxIOpJCeimh0Lmgx+KVoNuf8ROjhOb6SKTROcX3ykl1/ WwpT0WuIN+iCQ+b71ROfcxiMWklh1HT8Fqq1b/NsEfYSfmLQuyJu6lKibQgnU+UmWL 3p/Mo6pZpjLiWriba2UEnrltPJuhOcKsda7IIgSGnizWEFFGoKQQUwDrRjO7kOyeY3 rfX3xa6+boFMg== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 9D3FB403F2; Thu, 15 Jul 2021 17:21:40 -0300 (-03) Date: Thu, 15 Jul 2021 17:21:40 -0300 From: Arnaldo Carvalho de Melo To: Riccardo Mancini Cc: Ian Rogers , Namhyung Kim , Peter Zijlstra , Ingo Molnar , Mark Rutland , Jiri Olsa , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org Subject: Re: [PATCH 11/20] perf session: cleanup trace_event Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Url: http://acmel.wordpress.com Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Thu, Jul 15, 2021 at 06:07:16PM +0200, Riccardo Mancini escreveu: > ASan reports several memory leaks when running the perf test > "82: Use vfs_getname probe to get syscall args filenames", many of which > are related to session->tevent. > This patch will solve this problem, then next patch will fix the remaining > memory leaks in perf-script. > This bug is due to a missing deallocation of the trace_event data > strutures. > > This patch adds the missing trace_event__cleanup in > perf_session__delete. Thanks, applied. - Arnaldo > Signed-off-by: Riccardo Mancini > --- > tools/perf/util/session.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/tools/perf/util/session.c b/tools/perf/util/session.c > index e9c929a39973ace9..51f72740291267c5 100644 > --- a/tools/perf/util/session.c > +++ b/tools/perf/util/session.c > @@ -306,6 +306,7 @@ void perf_session__delete(struct perf_session *session) > evlist__delete(session->evlist); > perf_data__close(session->data); > } > + trace_event__cleanup(&session->tevent); > free(session); > } > > -- > 2.31.1 > -- - Arnaldo