Difference between pages "r7.1.1:Define TEST PAL CALLING CONVENTION" and "r7.1.1:Enum libbenchmark topology node cache type"

From liblfds.org
(Difference between pages)
Jump to navigation Jump to search
m (1 revision imported)
 
m (1 revision imported)
 
Line 1: Line 1:
{{DISPLAYTITLE:define TEST_PAL_CALLING_CONVENTION}}
{{DISPLAYTITLE:enum libbenchmark_topology_node_cache_type}}
==Source File==
==Source File==
  └───liblfds711
  └───test_and_benchmark
     └───inc
     └───libbenchmark
        └───liblfds711
        └───inc
                lfds711_lfds711_porting_abstraction_layer_compiler.h
            └───libbenchmark
                    libbenchmark_topology_node.h


==Define==
==Enum==
  #define TEST_PAL_CALLING_CONVENTION [thread function calling convention]
  enum libbenchmark_topology_node_cache_type
{
  LIBBENCHMARK_TOPOLOGY_NODE_CACHE_TYPE_DATA,
  LIBBENCHMARK_TOPOLOGY_NODE_CACHE_TYPE_INSTRUCTION,
  LIBBENCHMARK_TOPOLOGY_NODE_CACHE_TYPE_UNIFIED,
  LIBBENCHMARK_TOPOLOGY_NODE_CACHE_TYPE_COUNT
  };


==Optionality==
==Values==
This define is mandatory.
''LIBBENCHMARK_TOPOLOGY_NODE_CACHE_TYPE_DATA''
: Indicate a data cache.
''LIBBENCHMARK_TOPOLOGY_NODE_CACHE_TYPE_INSTRUCTION''
: Indicate an instruction cache.
''LIBBENCHMARK_TOPOLOGY_NODE_CACHE_TYPE_UNIFIED''
: Indicate a instruction cache.
''LIBBENCHMARK_TOPOLOGY_NODE_CACHE_TYPE_COUNT''
: A count of the number of members in this enum.


==Notes==
==Notes==
On Windows, the thread function has a particular calling convention.  To support this, the ''TEST_PAL_CALLING_CONVENTION'' define existsCurrently it is set on Windows and on no other platforms.
This enum is used by the function ''[[r7.1.1:function libbenchmark_misc_pal_helper_add_cache_node_to_topology_tree|libbenchmark_misc_pal_helper_add_cache_node_to_topology_tree]]''.  It indicates the type (data, instruction or unified) of cache being added to the topology tree.
 
Looking at the Windows thread function prototype;
 
DWORD WINAPI ThreadProc( _In_ LPVOID lpParameter );
 
We see the calling convention is specified as ''WINAPI''.
 
On other platforms, this define is defined, but empty.
 
==Example==
#define TEST_PAL_CALLING_CONVENTION  WINAPI


==See Also==
==See Also==
* [[r7.1.1:Porting Guide (test)|Porting Guide (test)]]
* ''[[r7.1.1:function libbenchmark_pal_populate_topology|libbenchmark_pal_populate_topology]]''
* ''[[r7.1.1:function libbenchmark_misc_pal_helper_add_cache_node_to_topology_tree|libbenchmark_misc_pal_helper_add_cache_node_to_topology_tree]]''

Latest revision as of 20:16, 17 February 2017

Source File

└───test_and_benchmark
    └───libbenchmark
        └───inc
            └───libbenchmark
                    libbenchmark_topology_node.h

Enum

enum libbenchmark_topology_node_cache_type
{
  LIBBENCHMARK_TOPOLOGY_NODE_CACHE_TYPE_DATA,
  LIBBENCHMARK_TOPOLOGY_NODE_CACHE_TYPE_INSTRUCTION,
  LIBBENCHMARK_TOPOLOGY_NODE_CACHE_TYPE_UNIFIED,
  LIBBENCHMARK_TOPOLOGY_NODE_CACHE_TYPE_COUNT
};

Values

LIBBENCHMARK_TOPOLOGY_NODE_CACHE_TYPE_DATA

Indicate a data cache.

LIBBENCHMARK_TOPOLOGY_NODE_CACHE_TYPE_INSTRUCTION

Indicate an instruction cache.

LIBBENCHMARK_TOPOLOGY_NODE_CACHE_TYPE_UNIFIED

Indicate a instruction cache.

LIBBENCHMARK_TOPOLOGY_NODE_CACHE_TYPE_COUNT

A count of the number of members in this enum.

Notes

This enum is used by the function libbenchmark_misc_pal_helper_add_cache_node_to_topology_tree. It indicates the type (data, instruction or unified) of cache being added to the topology tree.

See Also