Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4E77AC2B9F8 for ; Tue, 25 May 2021 09:36:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2940961360 for ; Tue, 25 May 2021 09:36:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232438AbhEYJiH (ORCPT ); Tue, 25 May 2021 05:38:07 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:3942 "EHLO szxga07-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232508AbhEYJiH (ORCPT ); Tue, 25 May 2021 05:38:07 -0400 Received: from dggems703-chm.china.huawei.com (unknown [172.30.72.60]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4Fq8602PFqzBwRY; Tue, 25 May 2021 17:33:44 +0800 (CST) Received: from dggpemm500006.china.huawei.com (7.185.36.236) by dggems703-chm.china.huawei.com (10.3.19.180) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Tue, 25 May 2021 17:36:30 +0800 Received: from thunder-town.china.huawei.com (10.174.177.72) by dggpemm500006.china.huawei.com (7.185.36.236) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Tue, 25 May 2021 17:36:30 +0800 From: Zhen Lei To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , "Namhyung Kim" , linux-perf-users CC: Zhen Lei Subject: [PATCH 1/1] perf: fix spelling mistakes Date: Tue, 25 May 2021 17:36:24 +0800 Message-ID: <20210525093624.9004-2-thunder.leizhen@huawei.com> X-Mailer: git-send-email 2.26.0.windows.1 In-Reply-To: <20210525093624.9004-1-thunder.leizhen@huawei.com> References: <20210525093624.9004-1-thunder.leizhen@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.174.177.72] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To dggpemm500006.china.huawei.com (7.185.36.236) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-perf-users@vger.kernel.org Fix some spelling mistakes in comments: initalization ==> initialization artifically ==> artificially futher ==> further sufficent ==> sufficient elegible ==> eligible cant ==> can't successully ==> successfully Signed-off-by: Zhen Lei --- include/linux/perf_event.h | 2 +- kernel/events/core.c | 8 ++++---- kernel/events/uprobes.c | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h index f5a6a2f069ed..32fd40d0df8f 100644 --- a/include/linux/perf_event.h +++ b/include/linux/perf_event.h @@ -163,7 +163,7 @@ struct hw_perf_event { /* * Crufty hack to avoid the chicken and egg * problem hw_breakpoint has with context - * creation and event initalization. + * creation and event initialization. */ struct arch_hw_breakpoint info; struct list_head bp_list; diff --git a/kernel/events/core.c b/kernel/events/core.c index 6fee4a7e88d7..4895fa011477 100644 --- a/kernel/events/core.c +++ b/kernel/events/core.c @@ -532,7 +532,7 @@ void perf_sample_event_took(u64 sample_len_ns) __this_cpu_write(running_sample_length, running_len); /* - * Note: this will be biased artifically low until we have + * Note: this will be biased artificially low until we have * seen NR_ACCUMULATED_SAMPLES. Doing it this way keeps us * from having to maintain a count. */ @@ -604,7 +604,7 @@ static inline u64 perf_event_clock(struct perf_event *event) * OFF, irrespecive of what the group member states are. This results in * __perf_effective_state(). * - * A futher ramification is that when a group leader flips between OFF and + * A further ramification is that when a group leader flips between OFF and * !OFF, we need to update all group member times. * * @@ -907,7 +907,7 @@ static int perf_cgroup_ensure_storage(struct perf_event *event, int cpu, heap_size, ret = 0; /* - * Allow storage to have sufficent space for an iterator for each + * Allow storage to have sufficient space for an iterator for each * possibly nested cgroup plus an iterator for events with no cgroup. */ for (heap_size = 1; css; css = css->parent) @@ -4080,7 +4080,7 @@ static void perf_adjust_freq_unthr_context(struct perf_event_context *ctx, } /* - * Move @event to the tail of the @ctx's elegible events. + * Move @event to the tail of the @ctx's eligible events. */ static void rotate_ctx(struct perf_event_context *ctx, struct perf_event *event) { diff --git a/kernel/events/uprobes.c b/kernel/events/uprobes.c index 6addc9780319..c4cc89f4c291 100644 --- a/kernel/events/uprobes.c +++ b/kernel/events/uprobes.c @@ -1093,7 +1093,7 @@ __uprobe_unregister(struct uprobe *uprobe, struct uprobe_consumer *uc) return; err = register_for_each_vma(uprobe, NULL); - /* TODO : cant unregister? schedule a worker thread */ + /* TODO : can't unregister? schedule a worker thread */ if (!uprobe->consumers && !err) delete_uprobe(uprobe); } @@ -1134,7 +1134,7 @@ EXPORT_SYMBOL_GPL(uprobe_unregister); * unregisters. Caller of __uprobe_register() is required to keep @inode * (and the containing mount) referenced. * - * Return errno if it cannot successully install probes + * Return errno if it cannot successfully install probes * else return 0 (success) */ static int __uprobe_register(struct inode *inode, loff_t offset, -- 2.25.1