From nobody Wed Jun 14 16:46:39 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QhBCM4QsXz4dHjy; Wed, 14 Jun 2023 16:46:39 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QhBCM2JPVz4PVj; Wed, 14 Jun 2023 16:46:39 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1686761199; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Nc3qDm4K5FGbnA2yXgtp/wlDrQOYWrIb7a3NsWa0QnU=; b=AIKPb3Nk+hEjfrIcTygyhta+Nd5YO37sXjTxAgRr6JZHzl8fEwbW0iCJjpmGpvwy14JL+8 DbGHvdLYfJ7U9ucQKKhjs5FAFo1/wkK204aT7ZFnBRSvBanpcns22YwlHbZFIX+hfol3o0 dephQVdG4/vf0vOokF4oZL+digJ0adepX/8woc5o/QzyVtp08TKyLZVhhW4c0T6CQGvyTO 6HwXdzjK754miVS1TelLs71eYT4DiS7+uhNH7BVWt7cxsvwInlJptzmGVjtfj/tHETCWWA a+udyzxwKqx6zh6x2Np4W42NrjUqpAPBo8bHkOfYketJRCupXRpQHtKfbukyEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1686761199; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Nc3qDm4K5FGbnA2yXgtp/wlDrQOYWrIb7a3NsWa0QnU=; b=RdPmIh89l4R1CWymo4qaGJ7Ap4QeVNBoZ+hKGCJn+zeAu/qSr8wlfFwDfVzpZjeS7Ij1yS 03DfOd0FhO8QuZfJohlQyfxxlwN2+ezIqVUfQCPpqWTQKt4VvSvIDf5gIuWaf7NRGQhYoV x2o3f5qY3fwGcC/Y4hgIzbRVDx9j4mW9WUyy+rLg8x14nY/jUrDwOUue0Ym7X1+7USLsFQ DoUAr0ObyOhHT0RY8I5M2FmTobToc2oGMUs8YOBrGq1X8LpggiBPHaQG/FG7zj4Fq0VoCc cd748fgdUp5z87rYAjuwZF+ikkoMT6EaHpsc1jKweNCjDzUtAJJ74LYzg/AyQQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1686761199; a=rsa-sha256; cv=none; b=XzsRdinZG0saVKeBHenUBTphexnM0xPiLDgHwqTBozV4TAsbkiQktj2r4i6pkF+ykb0HAC tDL+0Qb+8UFpgwyNHu0nCuTlmllprvRRPU9OxXpK3AYviPR8aPuRNh0IdVB7gKCJmkrexI 4UQ+ujCutunh4zEH6Y1/ze055r0fy7UWiuwsNYn9Z/1DArZa8j7pOBB58gicgyiNRGypo9 XnlZPMxE6TETWccHjAwYAJI2iwQu+UJAXQHzAdkdMzbMksYFWheuTqMlXuYw3/pyyaj8a7 pqNqJBwmD5irdaOOrqmDexMMGNKnQkW/5nXFDpYHsZQh8IZCdRNTVZdIBfKkqw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4QhBCM1PK4z1BDR; Wed, 14 Jun 2023 16:46:39 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 35EGkdEs028366; Wed, 14 Jun 2023 16:46:39 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 35EGkdI7028365; Wed, 14 Jun 2023 16:46:39 GMT (envelope-from git) Date: Wed, 14 Jun 2023 16:46:39 GMT Message-Id: <202306141646.35EGkdI7028365@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mitchell Horne Subject: git: e4fbd0395c68 - main - hwpmc_mod.c: prototype style List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mhorne X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e4fbd0395c686c02169e1a3b14940c8d3e5ef15d Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by mhorne: URL: https://cgit.FreeBSD.org/src/commit/?id=e4fbd0395c686c02169e1a3b14940c8d3e5ef15d commit e4fbd0395c686c02169e1a3b14940c8d3e5ef15d Author: Mitchell Horne AuthorDate: 2023-06-14 16:31:30 +0000 Commit: Mitchell Horne CommitDate: 2023-06-14 16:34:20 +0000 hwpmc_mod.c: prototype style Improve alphabetical organization, grouping, and whitespace. Reviewed by: jkoshy MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D40516 --- sys/dev/hwpmc/hwpmc_mod.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/sys/dev/hwpmc/hwpmc_mod.c b/sys/dev/hwpmc/hwpmc_mod.c index 7449199ea4ea..cfdfbf7de4f5 100644 --- a/sys/dev/hwpmc/hwpmc_mod.c +++ b/sys/dev/hwpmc/hwpmc_mod.c @@ -237,16 +237,21 @@ static void pmc_log_all_process_mappings(struct pmc_owner *po); static void pmc_log_kernel_mappings(struct pmc *pm); static void pmc_log_process_mappings(struct pmc_owner *po, struct proc *p); static void pmc_maybe_remove_owner(struct pmc_owner *po); +static void pmc_post_callchain_callback(void); +static void pmc_process_allproc(struct pmc *pm); static void pmc_process_csw_in(struct thread *td); static void pmc_process_csw_out(struct thread *td); static void pmc_process_exit(void *arg, struct proc *p); static void pmc_process_fork(void *arg, struct proc *p1, struct proc *p2, int n); +static void pmc_process_proccreate(struct proc *p); static void pmc_process_samples(int cpu, ring_type_t soft); -static void pmc_release_pmc_descriptor(struct pmc *pmc); +static void pmc_process_threadcreate(struct thread *td); +static void pmc_process_threadexit(struct thread *td); static void pmc_process_thread_add(struct thread *td); static void pmc_process_thread_delete(struct thread *td); static void pmc_process_thread_userret(struct thread *td); +static void pmc_release_pmc_descriptor(struct pmc *pmc); static void pmc_remove_owner(struct pmc_owner *po); static void pmc_remove_process_descriptor(struct pmc_process *pp); static int pmc_start(struct pmc *pm); @@ -257,16 +262,11 @@ static void pmc_thread_descriptor_pool_drain(void); static void pmc_thread_descriptor_pool_free(struct pmc_thread *pt); static void pmc_unlink_target_process(struct pmc *pmc, struct pmc_process *pp); -static int generic_switch_in(struct pmc_cpu *pc, struct pmc_process *pp); -static int generic_switch_out(struct pmc_cpu *pc, struct pmc_process *pp); +static int generic_switch_in(struct pmc_cpu *pc, struct pmc_process *pp); +static int generic_switch_out(struct pmc_cpu *pc, struct pmc_process *pp); static struct pmc_mdep *pmc_generic_cpu_initialize(void); -static void pmc_generic_cpu_finalize(struct pmc_mdep *md); -static void pmc_post_callchain_callback(void); -static void pmc_process_threadcreate(struct thread *td); -static void pmc_process_threadexit(struct thread *td); -static void pmc_process_proccreate(struct proc *p); -static void pmc_process_allproc(struct pmc *pm); +static void pmc_generic_cpu_finalize(struct pmc_mdep *md); /* * Kernel tunables and sysctl(8) interface.