From nobody Wed Jun 01 17:04:26 2022 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 677881B599AE; Wed, 1 Jun 2022 17:04:27 +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 4LCwVM1Dl9z3mnv; Wed, 1 Jun 2022 17:04:27 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1654103067; 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=NzXJghzQYuu+t8y3SX0Q6yN+ThSqMzkzeu/fnKwzLu4=; b=bLzEslICkg3J4iG8VuTUsqRFUdCZTpKeQzmoayyP48FpsfxFiwREeKQzKBH4orJoqk+yoL ZRUbsmChggVceGWEpHLNqTaeX8zUJFuEfQlyZEJBDDRQYkyIWt1J7MMd+XdXOMKAtstrzh ztKfmOflo7HOlWSOX9tlITmVLULX9p5epPOEiQmP0zY6L5EoO57bEB8LCIHnoiZDQZSaQ3 JkTH1Lk0fE9eax74w0An05nOXXfa3m3T6yN7gymPUuCnnYdRoOQ5ephf7IC2adS1NJJKcn Ica3jVuQhb76sND44xl7Q9FQh7ipbeCK8ecyy+o+XKWpz8m4RIrleAcbAe+d0g== 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 0378E2411B; Wed, 1 Jun 2022 17:04:27 +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 251H4Qd8052894; Wed, 1 Jun 2022 17:04:26 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 251H4Qi3052893; Wed, 1 Jun 2022 17:04:26 GMT (envelope-from git) Date: Wed, 1 Jun 2022 17:04:26 GMT Message-Id: <202206011704.251H4Qi3052893@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: 4544a795b281 - main - dtrace: remove /dev/dtrace/profile 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: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 4544a795b281cab5bdbe27604a337e21944af3b5 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1654103067; 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=NzXJghzQYuu+t8y3SX0Q6yN+ThSqMzkzeu/fnKwzLu4=; b=SFRHKfOoD3tI5J2lkn6Lqo3hlGNAKzK+5FFq5MA5PepVh6qx6Cd2eP8/DAZOCce001JeK9 N2qEe5NYAoOwEOey8dI2Dexr8zDfwYiSlAmLo45QgdfRp1k6gyenYw/Bri3IqHfF+rl2Oq L91d5E+yvLtZP5XrkMJ/CAhEV+uWzSx+4Gy9LmwSdoX+K8GcB4nFX760U0FOxM7D+JBs+v SnS/0rrHE+qq3ABCk1bB2EqPJAYLTg0IP06kZbyimZNclWLgSZQV9XichFpqcTNZ/OmMDw TjCbRXRKKeF8tA/ZCwFsSG6kvzfNFRYQZz2KpKzm0bTD1PUinK2NJGZS1YDgXg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1654103067; a=rsa-sha256; cv=none; b=cHGrSLhn7S9u3ogYGdAgrnS0jC+BrB4rh1KldYUBg+BWlneXLG3TV5DMLGvluLJ5hTL3JL rcfuKi06N//QRWZ3OCPQMWDJy2stEhSwjg/TMIjRotRr6g2L39tIa6UVf6XgyT9dgteLX0 HgXBDdFBqigG+P5T0OgX+V4xnFE/B48yBW4kESF0Cg9Ve2Sd1+K5GsUOfAnx32PjUzEuq2 hAzu3ymQ3JL7sQRnwHz8R+/91qMB7RMRyJKB7JU1cKMRlkDATG+/5/cH01jB3wlKh5r8aI BRePBKcJMOS9Lj/swb1gBLJabGngqPhnDoybTMpgylMI3/uuvV3yZDSnB67y0Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=4544a795b281cab5bdbe27604a337e21944af3b5 commit 4544a795b281cab5bdbe27604a337e21944af3b5 Author: Christos Margiolis AuthorDate: 2022-06-01 16:42:35 +0000 Commit: Mark Johnston CommitDate: 2022-06-01 16:42:35 +0000 dtrace: remove /dev/dtrace/profile It is unused. Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D35380 --- sys/cddl/dev/profile/profile.c | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/sys/cddl/dev/profile/profile.c b/sys/cddl/dev/profile/profile.c index 1e7a84c272cd..87289ff2717c 100644 --- a/sys/cddl/dev/profile/profile.c +++ b/sys/cddl/dev/profile/profile.c @@ -155,7 +155,6 @@ typedef struct profile_probe_percpu { #endif } profile_probe_percpu_t; -static d_open_t profile_open; static int profile_unload(void); static void profile_create(hrtime_t, char *, int); static void profile_destroy(void *, dtrace_id_t, void *); @@ -189,12 +188,6 @@ static uint32_t profile_max = PROFILE_MAX_DEFAULT; /* maximum number of profile probes */ static uint32_t profile_total; /* current number of profile probes */ -static struct cdevsw profile_cdevsw = { - .d_version = D_VERSION, - .d_open = profile_open, - .d_name = "profile", -}; - static dtrace_pattr_t profile_attr = { { DTRACE_STABILITY_EVOLVING, DTRACE_STABILITY_EVOLVING, DTRACE_CLASS_COMMON }, { DTRACE_STABILITY_PRIVATE, DTRACE_STABILITY_PRIVATE, DTRACE_CLASS_UNKNOWN }, @@ -216,7 +209,6 @@ static dtrace_pops_t profile_pops = { .dtps_destroy = profile_destroy }; -static struct cdev *profile_cdev; static dtrace_provider_id_t profile_id; static hrtime_t profile_interval_min = NANOSEC / 5000; /* 5000 hz */ static int profile_aframes = PROF_ARTIFICIAL_FRAMES; @@ -638,10 +630,6 @@ profile_disable(void *arg, dtrace_id_t id, void *parg) static void profile_load(void *dummy) { - /* Create the /dev/dtrace/profile entry. */ - profile_cdev = make_dev(&profile_cdevsw, 0, UID_ROOT, GID_WHEEL, 0600, - "dtrace/profile"); - if (dtrace_register("profile", &profile_attr, DTRACE_PRIV_USER, NULL, &profile_pops, NULL, &profile_id) != 0) return; @@ -656,8 +644,6 @@ profile_unload() if ((error = dtrace_unregister(profile_id)) != 0) return (error); - destroy_dev(profile_cdev); - return (error); } @@ -685,13 +671,6 @@ profile_modevent(module_t mod __unused, int type, void *data __unused) return (error); } -/* ARGSUSED */ -static int -profile_open(struct cdev *dev __unused, int oflags __unused, int devtype __unused, struct thread *td __unused) -{ - return (0); -} - SYSINIT(profile_load, SI_SUB_DTRACE_PROVIDER, SI_ORDER_ANY, profile_load, NULL); SYSUNINIT(profile_unload, SI_SUB_DTRACE_PROVIDER, SI_ORDER_ANY, profile_unload, NULL);