mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 09:12:24 +03:00
Change approach to how the fault injection state is stored to facilitate propagating fault injection state to child-threads. Rather than each unit maintaining a thread-local object, there is a thread-local container stored in the posix-fault-injection itself. This container is initialized for each test module so that is independent of other other test modules (for parallel test module execution). When child threads are created with nvgpu_create_thread(), the fault injection container is configured for the child. JIRA NVGPU-3981 Change-Id: I9b580dc7f1621a7770eef8eba796f3918f2738bf Signed-off-by: Philip Elcan <pelcan@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2238474 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>