enum libtest_misc_determine_erg_result

From liblfds.org
Revision as of 02:07, 27 May 2016 by Admin (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Source File

└── test_and_benchmark
    └── libtest
        └── inc
            └── libtest
                └── libtest_misc.h


Enum

enum libtest_determine_erg_result
{
  LIBTEST_MISC_DETERMINE_ERG_RESULT_SUCCESS,
  LIBTEST_MISC_DETERMINE_ERG_RESULT_ONE_PHYSICAL_CORE,
  LIBTEST_MISC_DETERMINE_ERG_RESULT_ONE_PHYSICAL_CORE_OR_NO_LLSC,
  LIBTEST_MISC_DETERMINE_ERG_RESULT_NO_LLSC,
  LIBTEST_MISC_DETERMINE_ERG_RESULT_NOT_SUPPORTED
};

Values

LIBTEST_MISC_DETERMINE_ERG_RESULT_SUCCESS

The code used to determine ERG length is inherently imperfect. This enum value indicates that the test code thinks it ran successfully - which means, at least, that none of the range of known failures occurred.

LIBTEST_MISC_DETERMINE_ERG_RESULT_ONE_PHYSICAL_CORE

The attempt to determine ERG length could not work because the current system only has one physical core. There must be two (or more) physical cores for it to be able to work.

LIBTEST_MISC_DETERMINE_ERG_RESULT_ONE_PHYSICAL_CORE_OR_NO_LLSC

The attempt to determine ERG length did not work either because the current system only has one physical core, or has no support for LL/SC.

LIBTEST_MISC_DETERMINE_ERG_RESULT_NO_LLSC

No LL/SC operations succeeded at all, which implies the system has no LL/SC support.

LIBTEST_MISC_DETERMINE_ERG_RESULT_NOT_SUPPORTED

This value indicates that an attempt was made to determine the ERG length on an unsupported platform. Currently only ARM32 is supported and this value will be returned on all other platforms.

Notes

This enum indicate the outcome of the attempt to determine the platform ERG length.

See Also