From patchwork Wed Jan 31 14:12:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tetsuo Handa X-Patchwork-Id: 194786 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2087:b0:106:209c:c626 with SMTP id gs7csp1933275dyb; Wed, 31 Jan 2024 06:41:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IHeReDFt2S3KLQ5+EWd2YCqzX6uTrYZXkHq8hmP0d1UVm9EFSB9pFWtcpknBNkv7VNl2pRH X-Received: by 2002:a05:6870:f14f:b0:210:dc4f:b867 with SMTP id l15-20020a056870f14f00b00210dc4fb867mr1985989oac.18.1706712073611; Wed, 31 Jan 2024 06:41:13 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706712073; cv=pass; d=google.com; s=arc-20160816; b=lHTH7uJXrdWEjRYYySo9F1pz5L5cLl/Im7f7xkl9rHeQ58g8OqI6YCRWt/26cuMwii 3J7GN6Erq4tg4hmXqfbiVB617ba2aNAGI3mqQ3HxIADrOS3ZIYhTDlHM4bRqNRyjSYMT bZZZSvFltGnG+1j9gehReS+n9MP3p1wDTpTX2yC6zndv9uPJqjY1aSIX9UaYTlfHuW3W 45sSd2Psu2Wb5u1myQfT0ztONDCulJLDRyyQjK6QjP+0dDO7J6ktfpQ4raLJxvBdgTFs 4Wnt71U/oyoyPc86pNbLxTmkgSOf/5eNPO5hvgloodWPOyuYrOEjggFWtH6tFOhgyyV/ aS1A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:subject:from:cc:to:content-language :user-agent:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:date:message-id; bh=zZu6ces3uIatriEjVqq+PpejhX8m0a/yC7dmlWpFeW4=; fh=RMh0AtpQs4XHATLWSQQANNS9Pp1GjK2xqCpLdewtLm8=; b=a3GMfDWRZvDELYvM5FtDWcNL3OJG03RT8TpB2f5ijyRtKnodc8RNxMF0KIBjOuKKCy HQ0tp0IqNf+duidayGjSInDhzE1wFTk21oGfstHUTlHVfRaV+d872e7B6eZrll51jotS QuFVrIUKMU09CVWFB1cRUUgDuNZAJcZ8c4Yv1Vh3JjbSPXkeGqk/hTp6PQ519v6m3mRG zxWVpD+t3XHeZdXhFkYw12BUa2180TUkkZdFMOg4uX0hbP+MNqahyJc+L5i+Q68fucmx j6Vr8Mf+SzRUcqn4difF0UTVQYpHc36LEmhUmCmqbsImShN9Hje+axUmtfIZcTqJEdRW V2ng==; 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-46577-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46577-ouuuleilei=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=1; AJvYcCV6TUDGA8t8ehElcwbbhXEFAHWii3fI3QhPelP7RbLe3aG/DiZQcR2itb5ebDnnXB+0MoDO3mXxXFDG/Xaj2XFPIMwuZg== Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id bw3-20020a056a02048300b005cef24b3015si9768308pgb.219.2024.01.31.06.41.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 06:41:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-46577-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; 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-46577-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46577-ouuuleilei=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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 8CF58B259C8 for ; Wed, 31 Jan 2024 14:14:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B86878287A; Wed, 31 Jan 2024 14:12:23 +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 10E0C86AE7 for ; Wed, 31 Jan 2024 14:12:19 +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=1706710342; cv=none; b=d6ulGvCTykfzOc6b4GLJmJ6mf1iTE3/UgfmAHKim5leewqlbdImqAYJ3Vc28VjHpQ6biHkVsfN10sWV091i1M+DKHgjpmW7qGa9lut3OK8RxG1Njj+8KN+gLyATLylsxefRZiaCxTQ3G7Ax7wGAcpaArpsLoJ8TkvjILIb83R8U= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706710342; c=relaxed/simple; bh=16KAkXy3O8anr0U/IgZO6dgl7BzzPB7GSUzHpQoIHfE=; h=Message-ID:Date:MIME-Version:To:Cc:From:Subject:Content-Type; b=VfsU73/qGsNxVYhaR6wgdgqq8c5Y1QDexWUoBCeLBSsXI7xy0jwFcWdazVbk+uBdvU7XkSwe1gadMKsj0PRn7TuGY7pdr1xSn5Ic/Jd8VwS4dz5W74l33qd2btZQ5xyKIv9rc7yTarCHD1T4j+Gx/qVY3jCJLc+N9vuQKmlbnuI= 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 fsav411.sakura.ne.jp (fsav411.sakura.ne.jp [133.242.250.110]) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTP id 40VECFRa029772; Wed, 31 Jan 2024 23:12:15 +0900 (JST) (envelope-from penguin-kernel@I-love.SAKURA.ne.jp) Received: from www262.sakura.ne.jp (202.181.97.72) by fsav411.sakura.ne.jp (F-Secure/fsigk_smtp/550/fsav411.sakura.ne.jp); Wed, 31 Jan 2024 23:12:15 +0900 (JST) X-Virus-Status: clean(F-Secure/fsigk_smtp/550/fsav411.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 40VECFl2029767 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NO); Wed, 31 Jan 2024 23:12:15 +0900 (JST) (envelope-from penguin-kernel@I-love.SAKURA.ne.jp) Message-ID: <79d5d6ae-3ee2-49db-86db-c2c493c55b01@I-love.SAKURA.ne.jp> Date: Wed, 31 Jan 2024 23:12:16 +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 Content-Language: en-US To: Andrew Morton Cc: LKML From: Tetsuo Handa Subject: [PATCH] profiling: Remove create_prof_cpu_mask(). X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789617318911758593 X-GMAIL-MSGID: 1789617318911758593 create_prof_cpu_mask() is no longer used after commit 1f44a225777e ("s390: convert interrupt handling to use generic hardirq"). Signed-off-by: Tetsuo Handa --- include/linux/profile.h | 5 ----- kernel/profile.c | 43 ----------------------------------------- 2 files changed, 48 deletions(-) diff --git a/include/linux/profile.h b/include/linux/profile.h index 11db1ec516e2..04ae5ebcb637 100644 --- a/include/linux/profile.h +++ b/include/linux/profile.h @@ -18,13 +18,8 @@ struct proc_dir_entry; struct notifier_block; #if defined(CONFIG_PROFILING) && defined(CONFIG_PROC_FS) -void create_prof_cpu_mask(void); int create_proc_profile(void); #else -static inline void create_prof_cpu_mask(void) -{ -} - static inline int create_proc_profile(void) { return 0; diff --git a/kernel/profile.c b/kernel/profile.c index 7575747e2ac6..1a6c1cf98485 100644 --- a/kernel/profile.c +++ b/kernel/profile.c @@ -342,49 +342,6 @@ void profile_tick(int type) #include #include -static int prof_cpu_mask_proc_show(struct seq_file *m, void *v) -{ - seq_printf(m, "%*pb\n", cpumask_pr_args(prof_cpu_mask)); - return 0; -} - -static int prof_cpu_mask_proc_open(struct inode *inode, struct file *file) -{ - return single_open(file, prof_cpu_mask_proc_show, NULL); -} - -static ssize_t prof_cpu_mask_proc_write(struct file *file, - const char __user *buffer, size_t count, loff_t *pos) -{ - cpumask_var_t new_value; - int err; - - if (!zalloc_cpumask_var(&new_value, GFP_KERNEL)) - return -ENOMEM; - - err = cpumask_parse_user(buffer, count, new_value); - if (!err) { - cpumask_copy(prof_cpu_mask, new_value); - err = count; - } - free_cpumask_var(new_value); - return err; -} - -static const struct proc_ops prof_cpu_mask_proc_ops = { - .proc_open = prof_cpu_mask_proc_open, - .proc_read = seq_read, - .proc_lseek = seq_lseek, - .proc_release = single_release, - .proc_write = prof_cpu_mask_proc_write, -}; - -void create_prof_cpu_mask(void) -{ - /* create /proc/irq/prof_cpu_mask */ - proc_create("irq/prof_cpu_mask", 0600, NULL, &prof_cpu_mask_proc_ops); -} - /* * This function accesses profiling information. The returned data is * binary: the sampling step and the actual contents of the profile