Source-Changes-HG archive

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

[src/trunk]: src/sys/sys Add a __noprofile keyword to disable the profiling o...



details:   https://anonhg.NetBSD.org/src/rev/da9787f2f992
branches:  trunk
changeset: 762287:da9787f2f992
user:      matt <matt%NetBSD.org@localhost>
date:      Fri Feb 18 21:06:12 2011 +0000

description:
Add a __noprofile keyword to disable the profiling of a function.

diffstat:

 sys/sys/cdefs.h |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r 633241843451 -r da9787f2f992 sys/sys/cdefs.h
--- a/sys/sys/cdefs.h   Fri Feb 18 20:53:05 2011 +0000
+++ b/sys/sys/cdefs.h   Fri Feb 18 21:06:12 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cdefs.h,v 1.81 2010/12/25 22:30:52 joerg Exp $ */
+/*     $NetBSD: cdefs.h,v 1.82 2011/02/18 21:06:12 matt Exp $  */
 
 /*
  * Copyright (c) 1991, 1993
@@ -218,6 +218,12 @@
 #define        __used          __unused
 #endif
 
+#if __GNUC_PREREQ__(3, 1)
+#define        __noprofile     __attribute__((__no_instrument_function__))
+#else
+#define        __noprofile     /* nothing */
+#endif
+
 #if defined(__cplusplus)
 #define        __BEGIN_EXTERN_C        extern "C" {
 #define        __END_EXTERN_C          }



Home | Main Index | Thread Index | Old Index