History

perf util: Make util its own library

Make the util directory into its own library. This is done to avoid compiling code twice, once for the perf tool and once for the perf python module. For convenience: arch/common.c scripts/perl/Perf-Trace-Util/Context.c scripts/python/Perf-Trace-Util/Context.c are made part of this library.

Ian Rogers committed 2 years ago

Commit e4677051 parent 21cc3bc36 files · +316 −305Browse files

Showing the changes to tools/perf/scripts/python (1 of 36 files). Show all

Unified · Split

tools/perf/scripts/python/Perf-Trace-Util/Build+1−1
@@ -1,4 +1,4 @@
1perf-y += Context.o1perf-util-y += Context.o
2 2
3# -Wno-declaration-after-statement: The python headers have mixed code with declarations (decls after asserts, for instance)3# -Wno-declaration-after-statement: The python headers have mixed code with declarations (decls after asserts, for instance)
4CFLAGS_Context.o += $(PYTHON_EMBED_CCOPTS) -Wno-redundant-decls -Wno-strict-prototypes -Wno-unused-parameter -Wno-nested-externs -Wno-declaration-after-statement4CFLAGS_Context.o += $(PYTHON_EMBED_CCOPTS) -Wno-redundant-decls -Wno-strict-prototypes -Wno-unused-parameter -Wno-nested-externs -Wno-declaration-after-statement