From owner-p4-projects@FreeBSD.ORG Sat Apr 22 23:33:28 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 2FF0B16A405; Sat, 22 Apr 2006 23:33:28 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EB23A16A403 for ; Sat, 22 Apr 2006 23:33:27 +0000 (UTC) (envelope-from jb@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id B6D4A43D45 for ; Sat, 22 Apr 2006 23:33:27 +0000 (GMT) (envelope-from jb@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k3MNXRu3017854 for ; Sat, 22 Apr 2006 23:33:27 GMT (envelope-from jb@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k3MNXRk3017848 for perforce@freebsd.org; Sat, 22 Apr 2006 23:33:27 GMT (envelope-from jb@freebsd.org) Date: Sat, 22 Apr 2006 23:33:27 GMT Message-Id: <200604222333.k3MNXRk3017848@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to jb@freebsd.org using -f From: John Birrell To: Perforce Change Reviews Cc: Subject: PERFORCE change 95904 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Apr 2006 23:33:28 -0000 http://perforce.freebsd.org/chv.cgi?CH=95904 Change 95904 by jb@jb_freebsd2 on 2006/04/22 23:33:11 On FreeBSD we need different arguments to dtrace_state_create() because we deal with struct cdev's and not dev_t's. Our credentials are obtained from struct cdev. Affected files ... .. //depot/projects/dtrace/src/sys/cddl/dev/dtrace/dtrace.c#10 edit Differences ... ==== //depot/projects/dtrace/src/sys/cddl/dev/dtrace/dtrace.c#10 (text+ko) ==== @@ -420,7 +420,7 @@ (act)->dta_difo->dtdo_rtype.dtdt_kind == DIF_TYPE_STRING) dtrace_dynvar_t *dtrace_dynvar(dtrace_dstate_t *, uint_t, dtrace_key_t *, size_t, dtrace_dynvar_op_t); -dtrace_state_t *dtrace_state_create(dev_t *, cred_t *); +dtrace_state_t *dtrace_state_create(struct cdev *); int dtrace_dstate_init(dtrace_dstate_t *, size_t); static char *dtrace_strdup(const char *); static dof_hdr_t *dtrace_dof_copyin(uintptr_t, int *);