From: VMware, Inc <> Date: Mon, 15 Oct 2012 04:50:40 +0000 (-0700) Subject: Changes in shared code that don't affect open-vm-tools functionality. X-Git-Tag: 2012.10.14-874563~33 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c6e7bb67f706b6396bc3316d57ce49670dd9cf05;p=thirdparty%2Fopen-vm-tools.git Changes in shared code that don't affect open-vm-tools functionality. Signed-off-by: Dmitry Torokhov --- diff --git a/open-vm-tools/lib/include/vm_basic_types.h b/open-vm-tools/lib/include/vm_basic_types.h index c50d267cf..9c637229e 100644 --- a/open-vm-tools/lib/include/vm_basic_types.h +++ b/open-vm-tools/lib/include/vm_basic_types.h @@ -726,6 +726,21 @@ typedef void * UserVA; #define NORETURN #endif +/* + * Static profiling hints for functions. + * A function can be either hot, cold, or neither. + * It is an error to specify both hot and cold for the same function. + * Note that there is no annotation for "neither." + */ + +#if defined __GNUC__ && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)) +#define HOT __attribute__((hot)) +#define COLD __attribute__((cold)) +#else +#define HOT +#define COLD +#endif + /* * Branch prediction hints: * LIKELY(exp) - Expression exp is likely TRUE.