mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00

Currently the libtraceevent's found by pkg-config, which give the
include path as:
[root@localhost tmp]# pkg-config --cflags libtraceevent
-I/usr/local/include/traceevent
So we should include the libtraceevent headers directly without
"traceevent/" prefix. Update all the users.
Fixes: 0f0e1f4456
("perf build: Use pkg-config for feature check for libtrace{event,fs}")
Suggested-by: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/linux-perf-users/ZyF5_Hf1iL01kldE@google.com/
Signed-off-by: Yicong Yang <yangyicong@hisilicon.com>
Cc: leo.yan@arm.com
Cc: amadio@gentoo.org
Cc: linuxarm@huawei.com
Link: https://lore.kernel.org/r/20241105105649.45399-1-yangyicong@huawei.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
12 lines
208 B
C
12 lines
208 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
#include <trace-seq.h>
|
|
|
|
int main(void)
|
|
{
|
|
int rv = 0;
|
|
struct trace_seq s;
|
|
trace_seq_init(&s);
|
|
rv += !(s.state == TRACE_SEQ__GOOD);
|
|
trace_seq_destroy(&s);
|
|
return rv;
|
|
}
|