From patchwork Wed Jul 19 20:29:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnaldo Carvalho de Melo X-Patchwork-Id: 12299 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c923:0:b0:3e4:2afc:c1 with SMTP id j3csp2693040vqt; Wed, 19 Jul 2023 13:34:21 -0700 (PDT) X-Google-Smtp-Source: APBJJlG/kI9cYiwtfTXV/vOV2o29DcqJsAwr2BMriSS8N3yLAvbvWK2B/fyle6v5oQdTFy2knCkR X-Received: by 2002:aa7:c944:0:b0:51d:f3b2:87b8 with SMTP id h4-20020aa7c944000000b0051df3b287b8mr3280527edt.0.1689798861578; Wed, 19 Jul 2023 13:34:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689798861; cv=none; d=google.com; s=arc-20160816; b=IYUu/ZBgjBo+X/S3seX015RRr8x8EOc+JT0bFLFmuLOno7S8uatPxEj4mPXxtHeFdx mE1xFjvyzhSPwvsiJ1qsoW0DcIicoyvFczOZFn3uh4l6SKCnJ7Tt0A1BOWjTrRUCPPd9 WOOeGMBqoet4d2xwNYZxCmSEN3l5L/GHdOekoVs6GFG8al9OMq4bV2kwjznsM2btE4eQ qTsl304UkiYfsTRFB3T8qjDmo/guMcjj6GgJfvleKHM5kOaIDbs+uMjtWj1E9edtxFN1 X08lZKGRZcAi3uVcdXeCK43jmFq4k69atbLC60lEwBXaILGt+madhsHp5esUhJlF8Jjf VeOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=W3bgNWZ7ulQLXajPyWpA7Fwfcdj52HGjAouMiQi0HBs=; fh=t4lP5LWSBRJPUQmWzEHI/7Mk1iOg3KKhUzqCo+a/hmc=; b=iuGasnJHOt1fCzVp6vWzVzaHdiLZyodeVktJ7AQGIf5OavwsHPmUKqbUkDKPWHnmTE 4jr/kmBJhY1zOU3XZrj5zDpwYMRBEF+CxYq09wilLZjoTe9IQlsEochY4NxZyyEzTANW 3PS+AtCKj/oiIJZu4Dsz3uZ72FScyO9ypnvmtJOAHdjhXO/cWJIiZv/Hk+JEk3w3tnfm LtVbFt9E3mRAQFxJwdiVx31r94OrWkWJwNbHV13U4oIu/86lNiwZgjK3WtBTErqBGUvl ggOv0ZsmZwdam5HKal+tNPnnQyxQBouHKeBWVSfxrhWD0hVfSDm8QT/p6lewDdvYHf60 pbFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=T8PTeatT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t20-20020aa7d4d4000000b0051e162ffa28si3460541edr.691.2023.07.19.13.33.57; Wed, 19 Jul 2023 13:34:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=T8PTeatT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S229788AbjGSUbk (ORCPT + 99 others); Wed, 19 Jul 2023 16:31:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229926AbjGSUbg (ORCPT ); Wed, 19 Jul 2023 16:31:36 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D366269E; Wed, 19 Jul 2023 13:31:08 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 24E2F6182E; Wed, 19 Jul 2023 20:30:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C9B1EC433C8; Wed, 19 Jul 2023 20:29:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689798599; bh=uZcDOpOUdyDuQ6U9ajuc/8Rc/FrXXXJ9LEX+YPZLWe8=; h=From:To:Cc:Subject:Date:From; b=T8PTeatTMnXI1ik7q5KxDNO7PK2m6GQnk+dA2RSt4zOyqj2dKTirSlNJbCPQqJDfi vdIs3pUHChOukxR8bOrDLEwjBgfCcvbGD8ziLJeaWm7PJ8t/1zW1n6/qk7qgKDu/tg OswoP47l2ElA92Wp+H2C3ni1sbUu2K6mdcWHieCYuZ493GL7WhyTzkQFWt9D/28WPz ba6wjE99jQ6AXMg7DIeH9h5cParinKHfoWJKkr6Cn+SX6GX956vrkx/L90cPJHG1K0 wFtflZT1ULYizXOLQz8WWO5cXYt9DO/wZF70Nh94U3O1YpJaRpD+dMWVD0mv9GYoWL s0Dseud/r85ig== From: Arnaldo Carvalho de Melo To: Namhyung Kim , Ian Rogers Cc: Ingo Molnar , Thomas Gleixner , Jiri Olsa , Adrian Hunter , Clark Williams , Kate Carcia , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Arnaldo Carvalho de Melo , John Garry Subject: [PATCHES 0/6] Fix some 'perf trace' leaks found with -fsanitize=address. Date: Wed, 19 Jul 2023 17:29:45 -0300 Message-ID: <20230719202951.534582-1-acme@kernel.org> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771882531277383589 X-GMAIL-MSGID: 1771882531277383589 Hi, Please review/ack, I put it as well on the tmp.perf-tools-next in the perf-tools-next tree: https://git.kernel.org/pub/scm/linux/kernel/git/perf/perf-tools-next.git/commit/?h=tmp.perf-tools-next Best regards, - Arnaldo Arnaldo Carvalho de Melo (6): perf evsel: Free evsel->filter on the destructor perf thread: Allow tools to register a thread->priv destructor perf trace: Register a thread priv destructor perf trace: Really free the evsel->priv area perf trace: Free thread_trace->files table MAINTAINERS: Add git information for perf-tools and perf-tools-next trees/branches MAINTAINERS | 2 ++ tools/perf/builtin-trace.c | 38 +++++++++++++++++++++++++++++++------- tools/perf/util/evsel.c | 1 + tools/perf/util/thread.c | 11 +++++++++++ tools/perf/util/thread.h | 2 ++ 5 files changed, 47 insertions(+), 7 deletions(-) Acked-by: Ian Rogers