[PATCH i-g-t] tests/xe_fault_injection: Inject error for xe_sync_entry_parse

Francois Dugast francois.dugast at intel.com
Thu Feb 20 19:55:46 UTC 2025


On Wed, Feb 12, 2025 at 09:04:48AM +0000, priyanka.dandamudi at intel.com wrote:
> From: Priyanka Dandamudi <priyanka.dandamudi at intel.com>
> 
> This will make xe_sync_entry_parse function fail to cover the unexplored
> path while executing xe_vm_create_ioctl().
> 
> Signed-off-by: Priyanka Dandamudi <priyanka.dandamudi at intel.com>

Reviewed-by: Francois Dugast <francois.dugast at intel.com>

> ---
>  tests/intel/xe_fault_injection.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/tests/intel/xe_fault_injection.c b/tests/intel/xe_fault_injection.c
> index 7ae941367..ede483535 100644
> --- a/tests/intel/xe_fault_injection.c
> +++ b/tests/intel/xe_fault_injection.c
> @@ -263,6 +263,7 @@ simple_vm_bind(int fd, uint32_t vm)
>   * @xe_pt_update_ops_prepare:		xe_pt_update_ops_prepare
>   * @xe_pt_update_ops_run:		xe_pt_update_ops_run
>   * @xe_vma_ops_alloc:			xe_vma_ops_alloc
> + * @xe_sync_entry_parse:		xe_sync_entry_parse
>   */
>  static void
>  vm_bind_fail(int fd, const char function_name[])
> @@ -315,6 +316,7 @@ igt_main
>  		{ "xe_pt_update_ops_prepare" },
>  		{ "xe_pt_update_ops_run" },
>  		{ "xe_vma_ops_alloc" },
> +		{ "xe_sync_entry_parse" },
>  		{ }
>  	};
>  
> -- 
> 2.34.1
> 


More information about the igt-dev mailing list