Message ID | 20220323230609.5F750C340E8@smtp.kernel.org (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 08E39C433EF for <linux-mm@archiver.kernel.org>; Wed, 23 Mar 2022 23:06:13 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 95CCC6B0081; Wed, 23 Mar 2022 19:06:12 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 90BC38D0003; Wed, 23 Mar 2022 19:06:12 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7AD8E6B0083; Wed, 23 Mar 2022 19:06:12 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay.hostedemail.com [64.99.140.27]) by kanga.kvack.org (Postfix) with ESMTP id 6B2166B0081 for <linux-mm@kvack.org>; Wed, 23 Mar 2022 19:06:12 -0400 (EDT) Received: from smtpin09.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay13.hostedemail.com (Postfix) with ESMTP id 3C651601E2 for <linux-mm@kvack.org>; Wed, 23 Mar 2022 23:06:12 +0000 (UTC) X-FDA: 79277186184.09.7F3B8FB Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by imf12.hostedemail.com (Postfix) with ESMTP id CE3694003B for <linux-mm@kvack.org>; Wed, 23 Mar 2022 23:06:11 +0000 (UTC) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id A8B0BB82183; Wed, 23 Mar 2022 23:06:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5F750C340E8; Wed, 23 Mar 2022 23:06:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1648076769; bh=WOojmLJNV9d/aw3/y2VsqeO+V8CmGyRiPq3Qzb2AaXU=; h=Date:To:From:In-Reply-To:Subject:From; b=GSFuntTwHN7A86eODiCmkN71zzg2D1RScIIDJtyJRwkXSy8tnkx0keZkZ/qlakm9+ d/OtZ7+1UgD2ujYxaQjB7l7hJ5PWhOD8pgODOKkm6ESO4IJKzYtomSI6q2074ae/ED f2wzURf16/Pm3FDFafW4HQ5VNR6L0n5cNihiNYkQ= Date: Wed, 23 Mar 2022 16:06:08 -0700 To: yj.chiang@mediatek.com,wangkefeng.wang@huawei.com,vbabka@suse.cz,valentin.schneider@arm.com,rostedt@goodmis.org,peterz@infradead.org,mhiramat@kernel.org,matthias.bgg@gmail.com,linux@rasmusvillemoes.dk,keescook@chromium.org,ahalaney@redhat.com,mark-pk.tsai@mediatek.com,akpm@linux-foundation.org,patches@lists.linux.dev,linux-mm@kvack.org,mm-commits@vger.kernel.org,torvalds@linux-foundation.org,akpm@linux-foundation.org From: Andrew Morton <akpm@linux-foundation.org> In-Reply-To: <20220323160453.65922ced539cbf445b191555@linux-foundation.org> Subject: [patch 17/41] init: use ktime_us_delta() to make initcall_debug log more precise Message-Id: <20220323230609.5F750C340E8@smtp.kernel.org> X-Rspam-User: Authentication-Results: imf12.hostedemail.com; dkim=pass header.d=linux-foundation.org header.s=korg header.b=GSFuntTw; spf=pass (imf12.hostedemail.com: domain of akpm@linux-foundation.org designates 145.40.68.75 as permitted sender) smtp.mailfrom=akpm@linux-foundation.org; dmarc=none X-Rspamd-Server: rspam03 X-Rspamd-Queue-Id: CE3694003B X-Stat-Signature: t7is7ufzbu8e4aoimpmj6jyzbyakcjqk X-HE-Tag: 1648076771-589038 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000045, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
[01/41] proc: alloc PATH_MAX bytes for /proc/${pid}/fd/ symlinks
|
expand
|
--- a/init/main.c~init-use-ktime_us_delta-to-make-initcall_debug-log-more-precise +++ a/init/main.c @@ -1246,15 +1246,11 @@ trace_initcall_start_cb(void *data, init static __init_or_module void trace_initcall_finish_cb(void *data, initcall_t fn, int ret) { - ktime_t *calltime = (ktime_t *)data; - ktime_t delta, rettime; - unsigned long long duration; + ktime_t rettime, *calltime = (ktime_t *)data; rettime = ktime_get(); - delta = ktime_sub(rettime, *calltime); - duration = (unsigned long long) ktime_to_ns(delta) >> 10; printk(KERN_DEBUG "initcall %pS returned %d after %lld usecs\n", - fn, ret, duration); + fn, ret, (unsigned long long)ktime_us_delta(rettime, *calltime)); } static ktime_t initcall_calltime;