Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2865129rdb; Mon, 5 Feb 2024 23:10:22 -0800 (PST) X-Google-Smtp-Source: AGHT+IFF/CBJKX01YqY1TqZIM4vJFZJ3L314Le+ESW0w8yComWajxOebpsIidW0RkGRGQ003Le/w X-Received: by 2002:a05:6214:5006:b0:68c:5d10:3ac8 with SMTP id jo6-20020a056214500600b0068c5d103ac8mr2468325qvb.12.1707203422501; Mon, 05 Feb 2024 23:10:22 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707203422; cv=pass; d=google.com; s=arc-20160816; b=NAmUumLjkNNMeGqpLaO92itxheQwlPiWJBu1y6UtnPvac9c1EYYIyNTCw4naXNtLiA RaGJ4bKy/cx7oEgzw0AHUC/uZ5S+JJw6FKCC5ZQcC9skdzmUsym/cniIdyNfe8V/s4R9 wg7KoyNaNcrsE/Y3JBeRHEselw515sMXH9WycXhXpJWXjLmlWv46PsnOKT075ET83kmP kTUtcq2hZVDfbruf8IMU53E2ub3uoYfGoap/PkoosJzdhsQwTBM11OIk/MCkV0Qowo48 9gq91/2zQVe26+CCcu8uBAitd4CPwEq0khCM2r26r04z4zysCQx/xGuN4zU67CFXY+jP g1xg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:user-agent:date :message-id:from:references:cc:to:subject; bh=Ih4XaoDGiRe5pGMRQSGaKKLRUaW5Lup7vHH/XhItba0=; fh=5biUi6+SjMPEJNjvyUWS6Ff02LcXLEZQM+6rpr8EaaA=; b=Qj/HWcsOrcIgBgygWv0AHmTUowtpUWnsSK9CjzYRqE1j4/Ocb4XgHGplDjvk7AzTFc gc2qzAgX2d/4dfVPBX+/ZAA2tNHrFgrr/Psx1eqmQ+16K386UogCvfIIr5HPr+MOK1T/ Nb9KHL4smTPyhDMHRH8f+41k2S0kxc/bVNS1zMbWk70vjG8NoCczvo8R2dapTF5dDINn kd/shaCcNMqaK0ham/RUVMG+j3nVDOiipkdC82mHoyD/Pg3cDRLK9u8WvDeSpaBbnAAX 3zKb67UgMb9xXf4hyjNd6/+yjZSvMmEXRl1FOOE5Ikw5c+j2O8CaGzcqPpFBbxXqfk+n U+xw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-54388-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54388-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com X-Forwarded-Encrypted: i=1; AJvYcCWyA12s0WE7AKf1f6EuCnh9VWzqPsOqVMgVOVVmnoa53q7Qj/I0pnqACNWptmpensTU8o2ZLxiRO2Vx72g/59WkHilCF2R+TmYZPmy7lA== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id e2-20020a0cf742000000b006894f48199asi1718614qvo.359.2024.02.05.23.10.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 23:10:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-54388-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-54388-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54388-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id B48AE1C22EED for ; Tue, 6 Feb 2024 07:10:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 09EF4128804; Tue, 6 Feb 2024 07:10:08 +0000 (UTC) Received: from szxga07-in.huawei.com (szxga07-in.huawei.com [45.249.212.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2DFB5128802; Tue, 6 Feb 2024 07:10:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.35 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707203407; cv=none; b=RFlsW4bcpTFjXfKPBjvESeKfn8ENoNvbvVI1H4elHUbqegHWGJ7LH6H7ox3R84+lp3HubVItxJyFu2L3bLdrdaleB6l2JcPUPZtkjHof4mYHaWeo0UG5IVO4ez4Hij4gU+laqcIu+UBSTQ+WOlgkku51l0X4ptmFEQOv8n/qLlA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707203407; c=relaxed/simple; bh=sP0+3IoatM5rxJCdyOt8aV9I1XKx8tCRXkDH41UfBmI=; h=Subject:To:CC:References:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type; b=W4LUJRcgxkj7qcfIaAl+dMXTbt/9BhURuxQRK+k978tbblLAA+IfzpO0cUCmtw0foeAe/uDqInVSYu/vmo5mTO4leT/qrwKFeDFUpyMpEVJ5EbbNparawta2leyk977ek8U6A54QoVfujzYfw7n2zQg/UD8JNThuK6lPg3RPc2U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.35 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.162.112]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4TTZ8Q1MNjz1Q8l9; Tue, 6 Feb 2024 15:08:06 +0800 (CST) Received: from kwepemm600003.china.huawei.com (unknown [7.193.23.202]) by mail.maildlp.com (Postfix) with ESMTPS id 1C795140390; Tue, 6 Feb 2024 15:10:02 +0800 (CST) Received: from [10.67.111.205] (10.67.111.205) by kwepemm600003.china.huawei.com (7.193.23.202) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Tue, 6 Feb 2024 15:10:01 +0800 Subject: Re: [PATCH 5/5] perf thread_map: Free strlist on normal path in thread_map__new_by_tid_str() To: Arnaldo Carvalho de Melo CC: , , , , , , , , , References: <20240205104616.132417-1-yangjihong1@huawei.com> <20240205104616.132417-6-yangjihong1@huawei.com> From: Yang Jihong Message-ID: <7081618d-eb64-3eda-dc1a-2719b6ac5194@huawei.com> Date: Tue, 6 Feb 2024 15:10:01 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To kwepemm600003.china.huawei.com (7.193.23.202) Hello, On 2024/2/6 3:09, Arnaldo Carvalho de Melo wrote: > On Mon, Feb 05, 2024 at 10:46:16AM +0000, Yang Jihong wrote: >> slist needs to be freed in both error path and normal path in >> thread_map__new_by_tid_str(). > > Please add: > > Fixes: b52956c961be3a04 ("perf tools: Allow multiple threads or processes in record, stat, top") > OK, will add fixes tag in v2. > Reviewed-by: Arnaldo Carvalho de Melo > Thanks for the reviewed-by tag > - Arnaldo Thanks, Yang