[PATCH 06/11] perf tools: Make fetch_kernel_version() publicly available

2015-11-06 Thread Arnaldo Carvalho de Melo
From: Wang Nan There are 2 places in llvm-utils.c which find kernel version information through uname. This patch extracts the uname related code into a fetch_kernel_version() function and puts it into util.h so it can be reused. Signed-off-by: Wang Nan Cc: Jiri Olsa Cc: Namhyung Kim Cc:

[PATCH 06/11] perf tools: Make fetch_kernel_version() publicly available

2015-11-06 Thread Arnaldo Carvalho de Melo
From: Wang Nan There are 2 places in llvm-utils.c which find kernel version information through uname. This patch extracts the uname related code into a fetch_kernel_version() function and puts it into util.h so it can be reused. Signed-off-by: Wang Nan