Re: [PATCH 3/4] kunit: Allow function redirection outside of the KUnit thread

2024-08-27 Thread Michal Wajdeczko
On 22.08.2024 08:14, David Gow wrote: > On Wed, 21 Aug 2024 at 22:43, Michal Wajdeczko > wrote: >> >> Currently, the 'static stub' API only allows function redirection >> for calls made from the kthread of the current test, which prevents >> the use of this functionalty when the tested code is

Re: [PATCH 3/4] kunit: Allow function redirection outside of the KUnit thread

2024-08-21 Thread David Gow
On Wed, 21 Aug 2024 at 22:43, Michal Wajdeczko wrote: > > Currently, the 'static stub' API only allows function redirection > for calls made from the kthread of the current test, which prevents > the use of this functionalty when the tested code is also used by > other threads, outside of the KUni

Re: [PATCH 3/4] kunit: Allow function redirection outside of the KUnit thread

2024-08-21 Thread Michal Wajdeczko
On 21.08.2024 23:38, Lucas De Marchi wrote: > On Wed, Aug 21, 2024 at 04:43:04PM GMT, Michal Wajdeczko wrote: >> Currently, the 'static stub' API only allows function redirection >> for calls made from the kthread of the current test, which prevents >> the use of this functionalty when the teste

Re: [PATCH 3/4] kunit: Allow function redirection outside of the KUnit thread

2024-08-21 Thread Michal Wajdeczko
On 21.08.2024 23:32, Rae Moar wrote: > On Wed, Aug 21, 2024 at 10:43 AM Michal Wajdeczko > wrote: >> > Hello! > > This is looking good and seems to be working well. I just had some > questions below. > > Thanks! > -Rae > >> Currently, the 'static stub' API only allows function redirection >>

Re: [PATCH 3/4] kunit: Allow function redirection outside of the KUnit thread

2024-08-21 Thread Lucas De Marchi
On Wed, Aug 21, 2024 at 04:43:04PM GMT, Michal Wajdeczko wrote: Currently, the 'static stub' API only allows function redirection for calls made from the kthread of the current test, which prevents the use of this functionalty when the tested code is also used by other threads, outside of the KUn

Re: [PATCH 3/4] kunit: Allow function redirection outside of the KUnit thread

2024-08-21 Thread Rae Moar
On Wed, Aug 21, 2024 at 10:43 AM Michal Wajdeczko wrote: > Hello! This is looking good and seems to be working well. I just had some questions below. Thanks! -Rae > Currently, the 'static stub' API only allows function redirection > for calls made from the kthread of the current test, which pre

[PATCH 3/4] kunit: Allow function redirection outside of the KUnit thread

2024-08-21 Thread Michal Wajdeczko
Currently, the 'static stub' API only allows function redirection for calls made from the kthread of the current test, which prevents the use of this functionalty when the tested code is also used by other threads, outside of the KUnit test, like from the workqueue. Add another set of macros to al