ha/service-mgmt/sm-common
Kyale, Eliud b65eb7b2f6 Add PTHREAD_PRIO_PROTECT to sm mutexes
- rename mutexes from generic name '_mutex'
- create common util functions for initializing and destroying mutexes
- add mutex initialize/finalize functions
  and run them in sm_main_process_initialize
- update copyright info to 2023

Test plan:

PASS - AIO-DX: iso install
PASS - AIO-DX: verify ha swact
PASS - AIO-DX: failover swact test

PASS - AIO-DX: run pi_stress (rt-tests)
               to confirm priority inheritance POSIX attribute is working
-------------------------------------------------------------------
sysadmin@localhost:~$ sudo pi_stress --uniprocessor --duration=10s
Starting PI Stress Test
Number of thread groups: 3
Duration of test run: 10 seconds
Number of inversions per group: unlimited
     Admin thread SCHED_FIFO priority 4
3 groups of 3 threads will be created
      High thread SCHED_FIFO priority 3
       Med thread SCHED_FIFO priority 2
       Low thread SCHED_FIFO priority 1
Current Inversions: 992034
Stopping test
Total inversion performed: 992038
Test Duration: 0 days, 0 hours, 0 minutes, 11 seconds
-------------------------------------------------------------------

PASS - AIO-DX: valgrind helgrind
                * test for inconsistence lock ordering
                * test race conditions
                  [ detected outside scope of jira ]
                * test for deadlocks

Task: 47503
Story: 2010609

Signed-off-by: Kyale, Eliud <Eliud.Kyale@windriver.com>
Change-Id: Ic77f08ca7c3a687b1cc219ac9cba5711979206e8
2023-03-02 20:49:17 +00:00
..
centos Merge "Debian: Remove conf files from etc-pmon.d" 2022-09-30 19:10:32 +00:00
debian Update debian package versions to use git commits 2023-02-10 10:14:48 -08:00
opensuse Remove sm-watchdog service since NFS is now stable 2022-08-19 19:57:43 +00:00
scripts Debian: Remove conf files from etc-pmon.d 2022-09-26 13:40:41 +00:00
src Add PTHREAD_PRIO_PROTECT to sm mutexes 2023-03-02 20:49:17 +00:00
LICENSE Remove version from sm-common folder 2019-09-26 12:00:43 -05:00
Makefile Merge "Debian: Remove conf files from etc-pmon.d" 2022-09-30 19:10:32 +00:00