Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp429566lqo; Fri, 10 May 2024 04:31:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV9jH6SwzfA3HevtBZ5in5b/UzsytbwWwEqArYr2fI4NY0zDHnAQgpCGI4w/twv9N1gOJd23hJbuESMdm/xeCBlmw72HCLW71Z8n3nAYg== X-Google-Smtp-Source: AGHT+IGHBFDSQEcRkcUpgdd7zpImjc21SfupQFNDzcwuHX0wqFzJiLTay2UWt9wHdJRjo2YCXBr7 X-Received: by 2002:a05:6e02:1c23:b0:36b:3bca:a9a3 with SMTP id e9e14a558f8ab-36cc144fd01mr25994995ab.19.1715340716879; Fri, 10 May 2024 04:31:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715340716; cv=pass; d=google.com; s=arc-20160816; b=pQRwNPDcAJyexZ0zWs5GTEevkZq8IqVCsWvRF9FsS860jQceEcrMV6zG8saUT8Y8Ev D3Jec7XcjSjntAueYPXDbleAaCiCPvMBCng+3gZqz/uBdNgV1kal1Kv3wae9FAuOGdre g9dnuByYYWpt2DwBHfMwH6moZp9JYlYD+j+kNMP7NXIk9veL9CMXpg318iryINbURaBc hRQOyrCP/adQNCZQTcz0NT9/HU6oVzIV+Wh2vYtS9r5lEzO0wPM8hUuffuNWQIRyZO0/ T0ecEvRZ70+ziiiqrJrRs/19aSFhQu9/CFKeINgz8SiMgcNvsKwLmbtI4ShO2UW4w9fY 24Dw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:from:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=UuFeQ0gW/I3kH7lbuQ5lIj58AnK/iVc3LFfOXWwrsOM=; fh=udcX5VP1Y1mjpV7UzQDLWPHRLMPD4AkuqKM+EJYKa2o=; b=FEFYPdobcC5q6rX2vjfIQvOEgqVdbDpxzXll6nPv8Yiiq8jv8bagfCYxE4unYZYTH2 KMDE89ydnYkgKhDShmS3yvx2R6fTUkv/uCEqYTiv/mHAQQX90IB/UpCewzBWngyZgknz RV283K3yFfiJoBu2Aww7fzOJ8Rp1vzx4wcbjy8Evb3QUaCgZqdWLTpxJZqGM6u90iOB/ wPUgXaWxtTEj4uld3gXW4XwS4Tcs4NhBryXwAQHYVx2WoR6kXCRF2a3cKXNb0QK1ZGOy CpTHjoJJXkc4UpxEGqlVlwcIjWBVzBKsGfvuI3rHwzRNcDChgq5Vdo5tpLgL5uQUngJ/ gh5A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=i-love.sakura.ne.jp); spf=pass (google.com: domain of linux-kernel+bounces-175664-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175664-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-634115305d8si146351a12.473.2024.05.10.04.31.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 04:31:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-175664-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=i-love.sakura.ne.jp); spf=pass (google.com: domain of linux-kernel+bounces-175664-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175664-linux.lists.archive=gmail.com@vger.kernel.org" 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id CB9B528546E for ; Fri, 10 May 2024 11:29:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F3904170832; Fri, 10 May 2024 11:26:25 +0000 (UTC) Received: from www262.sakura.ne.jp (www262.sakura.ne.jp [202.181.97.72]) (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 E5BC016F0C6 for ; Fri, 10 May 2024 11:26:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=202.181.97.72 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715340385; cv=none; b=cnXndC3M67MWRPZ+V6vyxE9+Js7JJeGzjZskz1Ne7fdN3zT5EM+eplpoCIJdHh9ArwlaSaJUMMotnEAnKwYRNSeyauttBgPO7SVksDfH9dPEY3dXCLVDMvD31BvaAFMjXvyzzg0sWTEaQHmkF08xc+V7c7GXKWpt2w4arWTL5w4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715340385; c=relaxed/simple; bh=1STldVQ9ytbzdRMlFlbM0PQFwnF8z17mKW67CjrCmj4=; h=Message-ID:Date:MIME-Version:Subject:From:To:Cc:References: In-Reply-To:Content-Type; b=K6Vl8n9yWV8mOYbxwwodhHVcPSUtyJluQYCBfPiUmbe10iwjXEKHN6VCLrYZNBP53PgCeVvoYIx1xLjXp5dSJ+WNhUCeUCOKgTMPUgaM2D2ReYbwLG2jamwAUzT+NtmzQcSLjx86COCtMls2RbgDHKXTS/fwzvQaIKe5OnUVE1g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=I-love.SAKURA.ne.jp; spf=pass smtp.mailfrom=I-love.SAKURA.ne.jp; arc=none smtp.client-ip=202.181.97.72 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=I-love.SAKURA.ne.jp Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=I-love.SAKURA.ne.jp Received: from fsav412.sakura.ne.jp (fsav412.sakura.ne.jp [133.242.250.111]) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTP id 44ABPMFb077870; Fri, 10 May 2024 20:25:22 +0900 (JST) (envelope-from penguin-kernel@I-love.SAKURA.ne.jp) Received: from www262.sakura.ne.jp (202.181.97.72) by fsav412.sakura.ne.jp (F-Secure/fsigk_smtp/550/fsav412.sakura.ne.jp); Fri, 10 May 2024 20:25:22 +0900 (JST) X-Virus-Status: clean(F-Secure/fsigk_smtp/550/fsav412.sakura.ne.jp) Received: from [192.168.1.6] (M106072142033.v4.enabler.ne.jp [106.72.142.33]) (authenticated bits=0) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTPSA id 44ABPMLm077864 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NO); Fri, 10 May 2024 20:25:22 +0900 (JST) (envelope-from penguin-kernel@I-love.SAKURA.ne.jp) Message-ID: Date: Fri, 10 May 2024 20:25:22 +0900 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH (REPOST)] profiling: initialize prof_cpu_mask from profile_online_cpu() From: Tetsuo Handa To: Hugh Dickins , Ingo Molnar , akpm@linux-foundation.org Cc: tglx@linutronix.de, paskripkin@gmail.com, rostedt@goodmis.org, glider@google.com, ebiederm@xmission.com, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com, syzbot , Linus Torvalds References: <000000000000d6b55e060d6bc390@google.com> <7227c8d1-08f6-4f95-ad0f-d5c3e47d874d@I-love.SAKURA.ne.jp> <85edf211-aa30-4671-93e0-5173b3f7adf2@I-love.SAKURA.ne.jp> <239eadaf-d694-4dff-89b9-b476be35f4e9@I-love.SAKURA.ne.jp> <60011cc3-b9fc-49c8-b0c0-35aafe46f313@I-love.SAKURA.ne.jp> Content-Language: en-US In-Reply-To: <60011cc3-b9fc-49c8-b0c0-35aafe46f313@I-love.SAKURA.ne.jp> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 2024/05/05 15:18, Tetsuo Handa wrote: > On 2024/04/27 15:51, Tetsuo Handa wrote: >> Can somebody test this patch? I don't know how not using >> cpu_possible_mask affects expected profile data collection >> (especially when written to /sys/kernel/profiling interface >> when some of CPUs are offline). > > I confirmed that writing to /sys/kernel/profiling while some of > /sys/devices/system/cpu/cpu$num/online are 0 will not affect profile data > collection, for profile_online_cpu() is called (and corresponding bit is set) > when /sys/devices/system/cpu/cpu$num/online becomes 1. Thus, I consider that > this patch itself is correct and safe. Can someone take this patch and https://lkml.kernel.org/r/20230423012744.24320-1-chenzhongjin@huawei.com ? These bugs remain unfixed due to lack of someone who can take patches...