[英]Compile Linux perf with ncurses interface?
perf
使用./configure
腳本,因為它是使用Linux內核構建的用戶空間工具的一部分(並且內核既沒有自動工具也沒有配置)。 Linux內核樹的perf子目錄tools/perf
中有makefile,您可以在其中重新運行make。
在http://lxr.free-electrons.com/source/tools/perf/Makefile.config?v=4.8#L499中禁用了兩個額外的用戶界面TUI和GTK。 當沒有newt / slang( /usr/include/slang/slang.h
或/usr/include/slang.h
)並且GTK2 UI需要gtk2-devel或libgtk2.0-dev時,將禁用TUI。 功能宏在Makefile.perf
中定義:
42 # Define NO_SLANG if you do not want TUI support.
43 #
44 # Define NO_GTK2 if you do not want GTK+ GUI support.
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.