Source-Changes-HG archive

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

[src/trunk]: src/sys/net Spinkle __noinline to some non-performance-sensitive...



details:   https://anonhg.NetBSD.org/src/rev/1f20798b46c5
branches:  trunk
changeset: 358141:1f20798b46c5
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Thu Dec 14 05:43:14 2017 +0000

description:
Spinkle __noinline to some non-performance-sensitive functions for debugging

diffstat:

 sys/net/rtsock.c |  14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diffs (63 lines):

diff -r 039e4d2a5269 -r 1f20798b46c5 sys/net/rtsock.c
--- a/sys/net/rtsock.c  Thu Dec 14 00:10:34 2017 +0000
+++ b/sys/net/rtsock.c  Thu Dec 14 05:43:14 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rtsock.c,v 1.231 2017/11/19 18:49:51 christos Exp $    */
+/*     $NetBSD: rtsock.c,v 1.232 2017/12/14 05:43:14 ozaki-r Exp $     */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -61,7 +61,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rtsock.c,v 1.231 2017/11/19 18:49:51 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rtsock.c,v 1.232 2017/12/14 05:43:14 ozaki-r Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -495,7 +495,7 @@
 }
 
 #if defined(INET) || defined(INET6)
-static int
+static int __noinline
 route_get_sdl_index(struct rt_addrinfo *info, int *sdl_index)
 {
        struct rtentry *nrt;
@@ -515,7 +515,7 @@
 }
 #endif
 
-static void
+static void __noinline
 route_get_sdl(const struct ifnet *ifp, const struct sockaddr *dst,
     struct sockaddr_dl *sdl, int *flags)
 {
@@ -551,7 +551,7 @@
        }
 }
 
-static int
+static int __noinline
 route_output_report(struct rtentry *rt, struct rt_addrinfo *info,
     struct rt_xmsghdr *rtm, struct rt_xmsghdr **new_rtm)
 {
@@ -606,7 +606,7 @@
        return 0;
 }
 
-static struct ifaddr *
+static struct ifaddr * __noinline
 route_output_get_ifa(const struct rt_addrinfo info, const struct rtentry *rt,
     struct ifnet **ifp, struct psref *psref)
 {
@@ -653,7 +653,7 @@
        return ifa;
 }
 
-static int
+static int __noinline
 route_output_change(struct rtentry *rt, struct rt_addrinfo *info,
     struct rt_xmsghdr *rtm)
 {



Home | Main Index | Thread Index | Old Index