Re: [PATCH bpf-next v2 11/11] selftests/bpf: Add tests for prog streams

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Kumar Kartikeya Dwivedi <memxor@xxxxxxxxx> writes:

[...]

> +struct {
> +	int prog_off;
> +	const char *errstr;
> +} stream_error_arr[] = {
> +	{
> +		offsetof(struct stream, progs.stream_cond_break),
> +		"ERROR: Timeout detected for may_goto instruction",
> +	},
> +	{
> +		offsetof(struct stream, progs.stream_deadlock),
> +		"ERROR: AA or ABBA deadlock detected",
> +	},
> +};

Wild idea: instead of hand-coding this for each test, maybe add
__bpf_stderr, __bpf_stdout annotations to test_loader.c?
With intent for them to operate like __msg.

[...]




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux