Files
linux/tools/perf/util
Stanislav Fomichev a8a1f7d09c libbpf: fix libbpf_print
With the recent print rework we now have the following problem:
pr_{warning,info,debug} expand to __pr which calls libbpf_print.
libbpf_print does va_start and calls __libbpf_pr with va_list argument.
In __base_pr we again do va_start. Because the next argument is a
va_list, we don't get correct pointer to the argument (and print noting
in my case, I don't know why it doesn't crash tbh).

Fix this by changing libbpf_print_fn_t signature to accept va_list and
remove unneeded calls to va_start in the existing users.

Alternatively, this can we solved by exporting __libbpf_pr and
changing __pr macro to (and killing libbpf_print):
{
	if (__libbpf_pr)
		__libbpf_pr(level, "libbpf: " fmt, ##__VA_ARGS__)
}

Signed-off-by: Stanislav Fomichev <sdf@google.com>
Acked-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
2019-02-04 17:45:31 -08:00
..
2019-02-04 17:45:31 -08:00
2018-12-17 14:57:07 -03:00
2018-04-19 12:29:41 -03:00
2018-10-18 11:16:38 -03:00
2018-12-17 14:56:47 -03:00
2016-10-24 11:07:39 -03:00
2018-12-17 14:57:07 -03:00
2018-12-17 14:57:07 -03:00
2018-03-16 13:52:37 -03:00
2018-03-16 13:52:37 -03:00
2018-03-05 11:52:41 -03:00
2017-07-18 23:14:08 -03:00
2018-12-17 14:56:47 -03:00
2018-12-17 14:57:07 -03:00
2018-12-17 14:57:07 -03:00
2018-12-17 14:57:07 -03:00
2018-12-17 14:57:07 -03:00
2018-12-17 14:57:07 -03:00
2018-12-17 14:57:07 -03:00