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

44 Коммитов

Автор SHA1 Сообщение Дата
anporumb 0fee3af5d5
add the smallest precompiled header and use it in 1x project. (#384)
* meek attempt to have a mocks library with precompiled header

* this creates by hand win32_ll_mocks and uses it in call_once_ut_exe_c_pal

* mock loibrary for c_pal_interfaces is build with a function

* propagate_all_repos anporumb/pchmock3

* itr also compiles but does NOT link on linux

* now it builds AND links on LINUX

* added a minimal explanation about exiting visual studio

* propagate_all_repos anporumb/pchmock3

* propagate_all_repos anporumb/pchmock3

* propagate_all_repos anporumb/pchmock3

* threadpool uses terminate_process

* make pal_ll_interfaces appear in Visual Studio

* it needs to be prefixed with inc

* extraneous files are removed

* write library name with capital letters

* use also for #ifdef

* propagate_all_repos anporumb/pchmock3

* propagate_all_repos anporumb/pchmock3

* propagate_all_repos anporumb/pchmock3

* propagate_all_repos anporumb/pchmock3

* propagate_all_repos anporumb/pchmock3

* propagate_all_repos anporumb/pchmock3

* propagate_all_repos anporumb/pchmock3

* use latest dependencies 10 Oct 2024

* remove C_PAL_INC_FOLDER

* make it compile with latest c-pal

* use latest dependencies 10 Oct 2024

* remove garbage from build folder

* use latest dependencies 10 Oct 2024

* propagate_all_repos anporumb/pchmock3

* use latest dependencies 10 Oct 2024

* use latest dependencies 10 Oct 2024
2024-10-11 10:26:22 -07:00
anporumb c6626d7ff6
use_vld (#374)
* propagate_all_repos anporumb/pchmock

* propagate_all_repos anporumb/pchmock

* propagate_all_repos anporumb/pchmock

* propagate_all_repos anporumb/pchmock

* propagate_all_repos anporumb/pchmock

* propagate_all_repos anporumb/pchmock

* propagate_all_repos anporumb/pchmock

* use latest masters
2024-09-26 12:06:36 +00:00
Nishikant Deshmukh 8c1dd06fb3
Initial checkin with specs (#362)
* Initial checkin with specs

* Fixed Traceability

* Fixed PVOID on Linux

* Fixed PVOID in threadpool.h

* Forgot to add threadpool.h into the commit, adding it now

* Addressed comments by Matt

* Addressed ALL comments by Matt
2024-09-03 17:35:36 -07:00
anporumb 1d6d29a682
make logging context thandlable (#337)
* before making reals for thandle_logging_context

* it doesn't compile

* update thandle_ll to expose types of functions

* with reals

* iwyu take 01 out of 99

* iwyu take 02 out of 99

* iwyu take 03 out of 99

* iwyu take 04 out of 99

* iwyu take 05 out of 99

* iwyu take 06 out of 99

* iwyu take 07 out of 99

* iwyu take 08 out of 99

* iwyu take 09 out of 99

* rename test name to something better
2024-05-14 11:22:43 -07:00
Dan Cristoloveanu 25dde54813
Move vcpkg function to c-build-tools (#315)
* Move vcpkg function to c-build-tools

* use the patched c-build tools

* Fix triplet names

* Fix the jemalloc build

* Fix the jemalloc build

* Update deps

* Update branch for c-build-tools
2024-03-13 09:14:22 -07:00
Dan Cristoloveanu 17de2dd2c7
Jemalloc vcpkg (#314)
* jemalloc_vcpkg

* Remove jemalloc as module

* Add vcpkg

* Use jemalloc through vcpkg

* Add the matrix of all builds

* Add the matrix of all builds

* Add the matrix of all builds

* Add the matrix of all builds

* Add the matrix of all builds

* Add the matrix of all builds

* Add the matrix of all builds

* Add the matrix of all builds

* Add the matrix of all builds

* Add the matrix of all builds

* Add the matrix of all builds

* Add the matrix of all builds

* Add the matrix of all builds

* Add the matrix of all builds

* More fanciness

* Pass CMAKE_BUILD_TYPE option to ymls

* Fix a test when running with jemalloc

* Fix CodeQL and Linux build

* Do not run fsanitize and vstest

* Fix vstest invocation

* Test

* Add int and perf tests

* Rework configuration type

* Fix configuration type expansion

* Re-enable Passthrough

* Update deps

* Fix int tests to run with jemalloc

* Address CR comments
2024-03-12 10:47:42 -07:00
Dan Cristoloveanu 073b5545e5
Switch to logging v2 (#249)
* logging_v2

* logging_v2

* logging_v2

* logging_v2

* logging_v2

* Latest deps

* Latest deps

* Minor updates

* Update with logging_v2 config APIs

* Add logerrno to logger.h

* Add one more v1 to v2 translation

* Fix some issues

* Use latest logging

* Fix IWYU

* Fix IWYU

* making call count a global variable to avoid helgrind bug

* Suppress printf issues in sm helgrind test

* Add suppression for printf with Helgrind

* Add suppression for printf with Helgrind

* Address CR comment

---------

Co-authored-by: Jelani Brandon <jebrando@microsoft.com>
2023-06-28 13:07:48 +05:30
David Robson 9dd2f4b4dd
Add c_pal_ll_includes to install package. (#217) 2023-02-02 07:43:20 -08:00
Bingyi Yang 0c8ac64304
move sm and its dependencies from c-util to c-pal (#207)
* move sm and its dependencies from c-util to c-pal

* fix iwyu

* fix some compile errors

* fix some compile errors

* fix some compile errors

* fix some compile errors

* fix some compile errors

* fix some compile errors

* fix some compile errors

* fix some compile errors

* fix some compile errors

* move sync and interlock into a new lower level c-pal

* fix linux build error

* fix win cmake build error

* changes with comments

* fix linux build error

* merge
2023-01-29 00:07:45 -08:00
David Robson d8b9bbd1a6
Add installation step to c-pal interface and pal_linux. (#209)
* Add installation step to c-pal interface and pal_linux.

* Add a comment to explain why we're adding the installation target.
"# make an install target so we can produce a Linux native client
package."
2023-01-26 11:36:43 -08:00
David Robson 0599ff2e78
Add install targets for CMake. (#206)
Fix a build error for sync_linux_ut.c
2023-01-19 10:53:07 -08:00
Jelani Brandon d7b7343c49
feature: adding async sockets for linux (#177)
* feature: adding async sockets for linux

Co-authored-by: Jelani Brandon <jebrando@microsoft.com>
2022-11-21 16:06:07 -08:00
Dan Cristoloveanu 9bf97f46f0
Add jemalloc print stats (#170)
* Update build files for jemalloc to 5.3.0

* Add print_stats API in LL

* Add jemalloc print stats

* Split jemalloc stats text in 1K chunks

* Add jemalloc print stats

* Fix .md
2022-10-10 21:54:40 -07:00
anporumb 3abfa0ff8e
Update CMakeLists.txt (#167) 2022-09-29 09:53:59 -07:00
anporumb abd708fa4d
have unique UUID (#138)
* works on windows

* all tests pass on Linux/Win32

* with requirements

* with YWYU

* more include

* now iwndows maybe compiles

* added GUID to UUID_T conversion

* added chapter for windows

* fix horrible ciopy paste

* added PRI_GUID and tests for it

* more tests/documents

* why not have umock_types where the type is declared?

* include what you use should stop complaining

* while I am here, remove real_malloc

* free => real_Free

* after CR
2022-01-10 11:11:12 -08:00
Parth Aggarwal 3e158d96cc
add reals check (#116)
* add reals check

* add reals check target
2021-10-20 15:16:36 -07:00
Dan Cristoloveanu d7fd85c6e0
Add logging in c-pal (#95)
* Add logging in c-pal

* Have conditional socket logging

* Address CR comments
2021-06-18 21:24:03 -07:00
Dan Cristoloveanu 85eaf3fcbb
Update dependencies (#81)
* Update dependencies

* Do not build mimalloc and jemalloc for includecheck

* Build tests for mimalloc only if using mimalloc, same for jemalloc

* Only run hl tests with mimalloc and jemalloc if the config was selected and the lib was built
2021-04-14 14:49:57 -07:00
Dan Cristoloveanu c2426b9d43
Fix a missed option help text (#79) 2021-04-07 21:40:46 -07:00
Dan Cristoloveanu 8c73659a8f
New deps (#78)
* Update dependencies

* Fix test suites

* Use latest deps

* Remove boilerplate main.c files

* Fix test suites

* Fix Linux build

* Do not use cppunittest by default
2021-04-07 08:52:48 -07:00
Dan Cristoloveanu facd0b8bda
Bump cmake version (#73)
* Update dependencies

* Bump cmake version
2021-01-27 21:57:04 -08:00
Matt Durak 5d70ea3db2
Add iwyu for Linux (#69) 2021-01-25 17:56:09 -08:00
Dan Cristoloveanu c609aabc78
Add includecheck leg with iwyu (#68)
* Use umock with exported macro_utils.h

* Fix includes

* Add includecheck leg
2021-01-21 12:40:46 -08:00
anporumb 964df11c83
restart uses latest deps (#51)
* git rm old repos

* removed rogue azure-c-logging

* now uses latest renamed modules

* umock too - latest and greatest

* renamed azure_c_pal to c_pal

* remove remnants of azure-c_c
2020-10-30 14:17:47 -07:00
anporumb 23d8817932
prepare for zc preprocessor (#38)
* prepare for zc_preprocessor

* threadapiexit is noreturn

* fix TAB to spaces and use latest repos

* some more changes to CMakeLists.txt

* move to our pool and VS 2019

* exit from threads with return, no ThreadApi_return

* it is not prepared to run with valgrind

* try to previous traceability that apparently worked mysteriously

* more traceability

* have the exlusion dir filly specified
2020-09-29 22:41:40 -07:00
Dan Cristoloveanu fbda166ffb Fix warning disables for jemalloc 2020-08-19 18:18:44 -07:00
Dan Cristoloveanu 959f5a2257 One more warning disabled for jemalloc 2020-08-18 10:37:35 -07:00
Dan Cristoloveanu a80711d687 One more warning 2020-08-18 10:37:35 -07:00
Dan Cristoloveanu 7b671326ec One more warning disabled for jemalloc 2020-08-18 10:37:35 -07:00
Dan Cristoloveanu be55ebe8ca Disable warning 4204 for jemalloc 2020-08-18 10:37:35 -07:00
Dan Cristoloveanu 6e5f740ee2 Build jemalloc only for Windows ... for now 2020-08-18 10:37:35 -07:00
Dan Cristoloveanu 0d61b3e234 Made it build 2020-08-18 10:37:35 -07:00
Dan Cristoloveanu 1bd037b694 Add jemalloc 2020-08-18 10:37:35 -07:00
Dan Cristoloveanu be99096939 Add jemalloc_build folder 2020-08-18 10:37:35 -07:00
anporumb e4fcca3d79
use the right mimalloc targe (#32) 2020-08-08 12:49:43 -07:00
anporumb e49942231b
propagate gballoc_hl (#21)
removed gballoc.h and uses gballoc_hl/ll from now on
string utils is in a better shape mocking wise.
2020-07-30 10:06:16 -07:00
anporumb 313494bb55
do not show pal md (#19)
* do not show pal md
2020-07-28 09:31:58 -07:00
anporumb 921d787466
have hl with metrics (#14)
have gballoc_hl with metrics
2020-07-23 12:59:39 -07:00
anporumb a98c9c69d4
add gbaloc ll (#11)
have gballoc_ll with 3 implementations
2020-07-20 19:15:32 -07:00
parth21999 b490094967 removed pal_common link to azure-c-pal 2020-06-15 18:33:10 -04:00
Parth Aggarwal 8432a58f18
added C_PAL_INC_FOLDER variable 2020-06-15 18:12:58 -04:00
Parth Aggarwal b59e478bea
linking azure_c_pal to pal_common 2020-06-15 15:16:04 -04:00
parth21999 1b13ec4388 added reals 2020-06-11 17:40:06 -04:00
parth21999 9a36943579 made changes recommended my Matt 2020-06-09 17:30:01 -04:00