Module Name: src Committed By: ozaki-r Date: Mon Dec 18 05:35:02 UTC 2017
Modified Files: src/sys/net: rtsock.c Log Message: Revert "Spinkle __noinline to some non-performance-sensitive functions for debugging" We should do this kind of tweaks for debugging just locally and personally. Requested by christos@ To generate a diff of this commit: cvs rdiff -u -r1.234 -r1.235 src/sys/net/rtsock.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/net/rtsock.c diff -u src/sys/net/rtsock.c:1.234 src/sys/net/rtsock.c:1.235 --- src/sys/net/rtsock.c:1.234 Thu Dec 14 05:48:59 2017 +++ src/sys/net/rtsock.c Mon Dec 18 05:35:01 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: rtsock.c,v 1.234 2017/12/14 05:48:59 ozaki-r Exp $ */ +/* $NetBSD: rtsock.c,v 1.235 2017/12/18 05:35:01 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.234 2017/12/14 05:48:59 ozaki-r Exp $"); +__KERNEL_RCSID(0, "$NetBSD: rtsock.c,v 1.235 2017/12/18 05:35:01 ozaki-r Exp $"); #ifdef _KERNEL_OPT #include "opt_inet.h" @@ -495,7 +495,7 @@ COMPATNAME(route_purgeif)(struct socket } #if defined(INET) || defined(INET6) -static int __noinline +static int route_get_sdl_index(struct rt_addrinfo *info, int *sdl_index) { struct rtentry *nrt; @@ -515,7 +515,7 @@ route_get_sdl_index(struct rt_addrinfo * } #endif -static void __noinline +static void route_get_sdl(const struct ifnet *ifp, const struct sockaddr *dst, struct sockaddr_dl *sdl, int *flags) { @@ -551,7 +551,7 @@ route_get_sdl(const struct ifnet *ifp, c } } -static int __noinline +static int route_output_report(struct rtentry *rt, struct rt_addrinfo *info, struct rt_xmsghdr *rtm, struct rt_xmsghdr **new_rtm) { @@ -606,7 +606,7 @@ route_output_report(struct rtentry *rt, return 0; } -static struct ifaddr * __noinline +static struct ifaddr * route_output_get_ifa(const struct rt_addrinfo info, const struct rtentry *rt, struct ifnet **ifp, struct psref *psref_ifp, struct psref *psref) { @@ -661,7 +661,7 @@ out: return ifa; } -static int __noinline +static int route_output_change(struct rtentry *rt, struct rt_addrinfo *info, struct rt_xmsghdr *rtm) {