Module Name:    src
Committed By:   matt
Date:           Fri Feb 18 21:06:12 UTC 2011

Modified Files:
        src/sys/sys: cdefs.h

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


To generate a diff of this commit:
cvs rdiff -u -r1.81 -r1.82 src/sys/sys/cdefs.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/sys/cdefs.h
diff -u src/sys/sys/cdefs.h:1.81 src/sys/sys/cdefs.h:1.82
--- src/sys/sys/cdefs.h:1.81	Sat Dec 25 22:30:52 2010
+++ src/sys/sys/cdefs.h	Fri Feb 18 21:06:12 2011
@@ -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		}

Reply via email to