Граф коммитов

6 Коммитов

Автор SHA1 Сообщение Дата
Samuel Lee d1d4572f31 Merged PR 7594329: Enable SymCrypt unit tests to drive a dynamic module
+ Just targeting Linux modules for now as we do not yet have a Windows SymCrypt module
+ At the command line when running symcryptunittest add option to load and test a dynamic SymCrypt module from a path
+ Enable a shim layer in our test code calling SymCrypt functions, and based on the template specialization or a global variable (depending upon the context of the function being called), the shim directs the function call to different places
+ Rework the multi-implementation part of the code handling SymCrypt's implementation (sc_imp*) to enable multiple SymCrypt implementations to coexist
  + The pre-existing ImpSc's shim is augmented to always add vector register save/restore testing around every call into the statically linked SymCrypt function. All previous test calls for vector register testing are removed. We may add other tests here in future (i.e. checking the contents of the stack are clean on SymCrypt function return?).
  + The new ImpScStatic implementation directly calls the statically linked SymCrypt function. This is used in performance tests
  + The new ImpScDynamic implementation uses a static variable in a lambda function to store dynamic symbol pointers that are looked up (once per lambda function) at runtime using dlsym. These pointers are then used to test the dynamic module directly (i.e. without any unit-test specific environment). This enables both comparative functional testing with static and dynamic SymCrypt, and realistic performance testing of the dynamic SymCrypt module
+ Also tests directly calling the SymCrypt APIs (not all tests calling low-level SymCrypt APIs) to shim to static or dynamic versions

Related work items: #38706387
2022-08-05 20:01:21 +00:00
Samuel Lee 8d4e109955 Merged PR 5607908: Introduce mode to output cycle measurements for different DataSizes
+ A bit hacky but sharing for visibility on how I generated https://microsofteur-my.sharepoint.com//g/personal/saml_microsoft_com1/ERC3CXr-PzZIk7tSOGxURawBVu7D5NZQASnAqSZSWFUGlw?e=gzy790
+ Easy to import into excel with comma delimited values, and make a
  pivot table for analysis
+ Add some usage text to give an idea of how to use the new mode
2021-01-26 14:21:04 +00:00
Mitch Lindgren 🦎 426a5b9603 Merged PR 4110997: Enable performance tests on Linux
This change enables the performance test suite to run on Linux.

Related work items: #15886191
2019-12-12 00:23:08 +00:00
Changyu Li fa27374b73 Merged PR 3513151: Linux port 2019-09-24 20:36:35 +00:00
Niels Ferguson 092de3fd9a Merged PR 3136947: Fix copyright messages to refer to the MIT license
Fix copyright messages to refer to the MIT license

Related work items: #20681107
2019-04-11 22:52:13 +00:00
Niels Ferguson f020f6aa44 First draft of Symcrypt build system on Git 2018-11-16 16:28:12 -08:00