Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys remove ep_name, change the last reference to use ep_knam...



details:   https://anonhg.NetBSD.org/src/rev/8c5e75ea5df1
branches:  trunk
changeset: 805055:8c5e75ea5df1
user:      chs <chs%NetBSD.org@localhost>
date:      Sun Dec 14 23:49:28 2014 +0000

description:
remove ep_name, change the last reference to use ep_kname instead.

diffstat:

 sys/kern/kern_exec.c |  7 +++----
 sys/sys/exec.h       |  3 +--
 2 files changed, 4 insertions(+), 6 deletions(-)

diffs (52 lines):

diff -r 43ae6f867744 -r 8c5e75ea5df1 sys/kern/kern_exec.c
--- a/sys/kern/kern_exec.c      Sun Dec 14 23:49:17 2014 +0000
+++ b/sys/kern/kern_exec.c      Sun Dec 14 23:49:28 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_exec.c,v 1.411 2014/12/14 21:35:24 christos Exp $ */
+/*     $NetBSD: kern_exec.c,v 1.412 2014/12/14 23:49:28 chs Exp $      */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -59,7 +59,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_exec.c,v 1.411 2014/12/14 21:35:24 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_exec.c,v 1.412 2014/12/14 23:49:28 chs Exp $");
 
 #include "opt_exec.h"
 #include "opt_execfmt.h"
@@ -663,7 +663,6 @@
        /*
         * initialize the fields of the exec package.
         */
-       epp->ep_name = path;
        epp->ep_kname = data->ed_pathstring;
        epp->ep_resolvedname = data->ed_resolvedpathbuf;
        epp->ep_hdr = kmem_alloc(exec_maxhdrsz, KM_SLEEP);
@@ -1235,7 +1234,7 @@
 
        kmem_free(epp->ep_hdr, epp->ep_hdrlen);
 
-       SDT_PROBE(proc,,,exec_success, epp->ep_name, 0, 0, 0, 0);
+       SDT_PROBE(proc,,,exec_success, epp->ep_kname, 0, 0, 0, 0);
 
        emulexec(l, epp);
 
diff -r 43ae6f867744 -r 8c5e75ea5df1 sys/sys/exec.h
--- a/sys/sys/exec.h    Sun Dec 14 23:49:17 2014 +0000
+++ b/sys/sys/exec.h    Sun Dec 14 23:49:28 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: exec.h,v 1.147 2014/12/14 21:35:24 christos Exp $      */
+/*     $NetBSD: exec.h,v 1.148 2014/12/14 23:49:28 chs Exp $   */
 
 /*-
  * Copyright (c) 1992, 1993
@@ -187,7 +187,6 @@
 };
 
 struct exec_package {
-       const char *ep_name;            /* file's name */
        const char *ep_kname;           /* kernel-side copy of file's name */
        char *ep_resolvedname;          /* fully resolved path from namei */
        void    *ep_hdr;                /* file's exec header */



Home | Main Index | Thread Index | Old Index