Defines

vancouver/include/service/profile.h File Reference

Defines

#define PVAR   ".long"
 Profiling support.
#define COUNTER_INC(NAME)
#define COUNTER_SET(NAME, VALUE)

Define Documentation

#define COUNTER_INC (   NAME  ) 
Value:
({                                                                      \
    asm volatile (".section .data; 1: .string \"" NAME "\";.previous;"  \
                  ".section .profile; " PVAR " 1b; 2: " PVAR " 0,0;.previous;" \
                  "incl 2b" : : : "cc");                                \
  })
#define COUNTER_SET (   NAME,
  VALUE 
)
Value:
{                                                                       \
    asm volatile (".section .data; 1: .string \"" NAME "\";.previous;"  \
                  ".section .profile; "  PVAR " 1b; 2: " PVAR " 0,0;.previous;" \
                  "mov %0,2b" : : "r"(static_cast<long>(VALUE)));       \
  }
#define PVAR   ".long"

Profiling support.

Copyright (C) 2007-2010, Bernhard Kauer <bk@vmmon.org> Economic rights: Technische Universitaet Dresden (Germa

This file is part of Vancouver.

Vancouver is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.

Vancouver is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License version 2 for more details.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines