net: stmmac: Meson GXBB: attempting to execute userspace memory

2016-11-25 Thread Heinrich Schuchardt
For Odroid C2 I have compiled kernel 4.9.0-rc6-next-20161124-1-gbf7e142 with one additional patch https://github.com/xypron/kernel-odroid-c2/blob/master/patch/0001-stmmac-RTL8211F-Meson-GXBB-TX-throughput-problems.patch I repeatedly see faults like the one below: [ 2557.400796] Unhandled

net: stmmac: Meson GXBB: attempting to execute userspace memory

2016-11-25 Thread Heinrich Schuchardt
For Odroid C2 I have compiled kernel 4.9.0-rc6-next-20161124-1-gbf7e142 with one additional patch https://github.com/xypron/kernel-odroid-c2/blob/master/patch/0001-stmmac-RTL8211F-Meson-GXBB-TX-throughput-problems.patch I repeatedly see faults like the one below: [ 2557.400796] Unhandled

[PATCH v3 08/30] tools build: Add feature detection for clang

2016-11-25 Thread Wang Nan
Check if basic clang compiling environment is ready. Doesn't like 'llvm-config --libs' which can returns llvm libraries in right order and duplicates some libraries if necessary, there's no correspondence for clang libraries (-lclangxxx). to avoid extra complexity and to avoid new clang breaking

[PATCH v3 05/30] perf tools: Pass context to perf hook functions

2016-11-25 Thread Wang Nan
Pass a pointer to perf hook functions so they receive context information created durnig setup. Signed-off-by: Wang Nan Cc: Arnaldo Carvalho de Melo Cc: Alexei Starovoitov Cc: He Kuang Cc: Jiri Olsa Cc:

[PATCH v3 15/30] perf clang: Compile BPF script use builtin clang support

2016-11-25 Thread Wang Nan
After this patch, perf utilizes builtin clang support to build BPF script, no longer depend on external clang. Test: $ type clang -bash: type: clang: not found $ cat ~/.perfconfig $ echo '#define LINUX_VERSION_CODE 0x040700' > ./test.c $ cat ./tools/perf/tests/bpf-script-example.c >>

[PATCH v3 00/30] perf clang: Builtin clang and perfhook support

2016-11-25 Thread Wang Nan
This is version 3 of perf builtin clang and perfhook patch series. Compare to v2 there is only minor changes: 1. BPF map helpers in perf hooks now called 'perf_map_...', instead of 'jit_helper_map_...'. (Alexei Starovoitov) 2. Rename bpf_map_{pin,get} to bpf_obj_{pin,get}, make them

[PATCH v3 22/30] perf clang jit: Actually JIT and hook in bpf loader

2016-11-25 Thread Wang Nan
Makes perf_clang__compile_bpf() actually uses clang jit to compile perf hooks. Returns a map through perf_clang__compile_bpf(), and set hooks after bpf_object is created. After this path jitting takes actions for bpf loader. For example: $ cat ./test.c

[PATCH v3 15/30] perf clang: Compile BPF script use builtin clang support

2016-11-25 Thread Wang Nan
After this patch, perf utilizes builtin clang support to build BPF script, no longer depend on external clang. Test: $ type clang -bash: type: clang: not found $ cat ~/.perfconfig $ echo '#define LINUX_VERSION_CODE 0x040700' > ./test.c $ cat ./tools/perf/tests/bpf-script-example.c >>

[PATCH v3 00/30] perf clang: Builtin clang and perfhook support

2016-11-25 Thread Wang Nan
This is version 3 of perf builtin clang and perfhook patch series. Compare to v2 there is only minor changes: 1. BPF map helpers in perf hooks now called 'perf_map_...', instead of 'jit_helper_map_...'. (Alexei Starovoitov) 2. Rename bpf_map_{pin,get} to bpf_obj_{pin,get}, make them

[PATCH v3 22/30] perf clang jit: Actually JIT and hook in bpf loader

2016-11-25 Thread Wang Nan
Makes perf_clang__compile_bpf() actually uses clang jit to compile perf hooks. Returns a map through perf_clang__compile_bpf(), and set hooks after bpf_object is created. After this path jitting takes actions for bpf loader. For example: $ cat ./test.c

[PATCH v3 08/30] tools build: Add feature detection for clang

2016-11-25 Thread Wang Nan
Check if basic clang compiling environment is ready. Doesn't like 'llvm-config --libs' which can returns llvm libraries in right order and duplicates some libraries if necessary, there's no correspondence for clang libraries (-lclangxxx). to avoid extra complexity and to avoid new clang breaking

[PATCH v3 05/30] perf tools: Pass context to perf hook functions

2016-11-25 Thread Wang Nan
Pass a pointer to perf hook functions so they receive context information created durnig setup. Signed-off-by: Wang Nan Cc: Arnaldo Carvalho de Melo Cc: Alexei Starovoitov Cc: He Kuang Cc: Jiri Olsa Cc: Zefan Li Cc: pi3or...@163.com --- tools/perf/tests/perf-hooks.c | 14 +-

[PATCH v3 10/30] perf clang: Add builtin clang support ant test case

2016-11-25 Thread Wang Nan
Add basic clang support in clang.cpp and test__clang() testcase. The first testcase checks if builtin clang is able to generate LLVM IR. tests/clang.c is a proxy. Real testcase resides in utils/c++/clang-test.cpp in c++ and exports C interface to perf test subsystem. Test result: $ perf test

[PATCH v3 10/30] perf clang: Add builtin clang support ant test case

2016-11-25 Thread Wang Nan
Add basic clang support in clang.cpp and test__clang() testcase. The first testcase checks if builtin clang is able to generate LLVM IR. tests/clang.c is a proxy. Real testcase resides in utils/c++/clang-test.cpp in c++ and exports C interface to perf test subsystem. Test result: $ perf test

[PATCH v3 25/30] perf clang jit: Allow jitted perf hook access BPF maps

2016-11-25 Thread Wang Nan
Newly introduced jit-helpers.[ch] defines a series of helpers which helps jitted perf hook functions accessing BPF maps defined in their BPF scripts. The helpers fetches fd of 'struct bpf_map' from 'struct bpf_object' and the address of 'struct bpf_map_def' in jitted file. 'struct bpf_object' is

[PATCH v3 25/30] perf clang jit: Allow jitted perf hook access BPF maps

2016-11-25 Thread Wang Nan
Newly introduced jit-helpers.[ch] defines a series of helpers which helps jitted perf hook functions accessing BPF maps defined in their BPF scripts. The helpers fetches fd of 'struct bpf_map' from 'struct bpf_object' and the address of 'struct bpf_map_def' in jitted file. 'struct bpf_object' is

[PATCH v3 29/30] perf clang builtin: Define hook helpers by default

2016-11-25 Thread Wang Nan
Append declarations of helpers to default include file. All functions appear in exported_funcs array should be declared here except test__clang_callback, because it is used for perf test only. Signed-off-by: Wang Nan Cc: Arnaldo Carvalho de Melo Cc: Alexei

[PATCH v3 18/30] perf clang jit: Wrap llvm::Module using PerfModule

2016-11-25 Thread Wang Nan
Use PerfModule wrap llvm::Module and return perf::PerfModule in APIs to replace llvm::Module. Following commits are going to add new functions to PerfModule. getBPFObjectFromModule is merged to a method of perf::PerfModule. Signed-off-by: Wang Nan Cc: Arnaldo Carvalho de

[PATCH v3 12/30] perf clang: Allow passing CFLAGS to builtin clang

2016-11-25 Thread Wang Nan
Improve getModuleFromSource() API to accept a cflags list. This feature will be used to pass LINUX_VERSION_CODE and -I flags. Signed-off-by: Wang Nan Cc: Alexei Starovoitov Cc: He Kuang Cc: Jiri Olsa Cc: Zefan Li

[PATCH v3 28/30] perf clang: Include helpers to BPF scripts

2016-11-25 Thread Wang Nan
Automatically include some commonly used macros and struct definitions into BPF scripts. Script writers are no longer required to define 'SEC' and 'struct bpf_map_def' in each of their scripts. Signed-off-by: Wang Nan Cc: Arnaldo Carvalho de Melo Cc: Alexei

[PATCH v3 20/30] perf clang jit: add PerfModule::doJIT to JIT perfhook functions

2016-11-25 Thread Wang Nan
PerfModule::doJIT JIT compile perfhook functions and saves result into a map. Add a test case for it. At this stage perfhook functions can do no useful things because they can't invoke external functions and can't return value. Following commits are going to make improvment. Don't hook functions

[PATCH v3 26/30] perf clang: Link BPF functions declaration into perf

2016-11-25 Thread Wang Nan
Use a shell script to generate BPF functions declarations from kernel source code, embed the generated header into a C string. Following commits will utilizes clang's virtual file system to automatically include this header to all BPF scripts. The generated header is wrapped by a

[PATCH v3 29/30] perf clang builtin: Define hook helpers by default

2016-11-25 Thread Wang Nan
Append declarations of helpers to default include file. All functions appear in exported_funcs array should be declared here except test__clang_callback, because it is used for perf test only. Signed-off-by: Wang Nan Cc: Arnaldo Carvalho de Melo Cc: Alexei Starovoitov Cc: He Kuang Cc: Jiri

[PATCH v3 18/30] perf clang jit: Wrap llvm::Module using PerfModule

2016-11-25 Thread Wang Nan
Use PerfModule wrap llvm::Module and return perf::PerfModule in APIs to replace llvm::Module. Following commits are going to add new functions to PerfModule. getBPFObjectFromModule is merged to a method of perf::PerfModule. Signed-off-by: Wang Nan Cc: Arnaldo Carvalho de Melo Cc: Alexei

[PATCH v3 12/30] perf clang: Allow passing CFLAGS to builtin clang

2016-11-25 Thread Wang Nan
Improve getModuleFromSource() API to accept a cflags list. This feature will be used to pass LINUX_VERSION_CODE and -I flags. Signed-off-by: Wang Nan Cc: Alexei Starovoitov Cc: He Kuang Cc: Jiri Olsa Cc: Zefan Li Cc: pi3or...@163.com Link:

[PATCH v3 28/30] perf clang: Include helpers to BPF scripts

2016-11-25 Thread Wang Nan
Automatically include some commonly used macros and struct definitions into BPF scripts. Script writers are no longer required to define 'SEC' and 'struct bpf_map_def' in each of their scripts. Signed-off-by: Wang Nan Cc: Arnaldo Carvalho de Melo Cc: Alexei Starovoitov Cc: He Kuang Cc: Jiri

[PATCH v3 20/30] perf clang jit: add PerfModule::doJIT to JIT perfhook functions

2016-11-25 Thread Wang Nan
PerfModule::doJIT JIT compile perfhook functions and saves result into a map. Add a test case for it. At this stage perfhook functions can do no useful things because they can't invoke external functions and can't return value. Following commits are going to make improvment. Don't hook functions

[PATCH v3 26/30] perf clang: Link BPF functions declaration into perf

2016-11-25 Thread Wang Nan
Use a shell script to generate BPF functions declarations from kernel source code, embed the generated header into a C string. Following commits will utilizes clang's virtual file system to automatically include this header to all BPF scripts. The generated header is wrapped by a

[PATCH v3 27/30] perf clang: Declare BPF functions for BPF scripts automatically

2016-11-25 Thread Wang Nan
Use Clang's OverlayFileSystem, add '-include' options to make builtin clang define BPF functions. After this patch BPF script writer needn't define BPF functions by their own. Add -DBUILTIN_CLANG_DEFAULT_INCLUDE to builtin clang so when adopting builtin clang BPF functions can be automatically

[PATCH v3 09/30] perf build: Add clang and llvm compile and linking support

2016-11-25 Thread Wang Nan
Add necessary c++ flags and link libraries to support builtin clang and LLVM. Add all llvm and clang libraries, so don't need to worry about clang changes its libraries setting. However, linking perf would take much longer than usual. Signed-off-by: Wang Nan Cc: Alexei

[PATCH v3 03/30] tools lib bpf: Retrive bpf_map through offset of bpf_map_def

2016-11-25 Thread Wang Nan
Add a new API to libbpf, caller is able to get bpf_map through the offset of bpf_map_def to 'maps' section. The API will be used to help jitted perf hook code find fd of a map. Signed-off-by: Wang Nan Cc: Arnaldo Carvalho de Melo Cc: Alexei Starovoitov

[PATCH v3 11/30] perf clang: Use real file system for #include

2016-11-25 Thread Wang Nan
Utilize clang's OverlayFileSystem facility, allow CompilerInstance to access real file system. With this patch '#include' directive can be used. Add a new getModuleFromSource for real file. Signed-off-by: Wang Nan Cc: Arnaldo Carvalho de Melo Cc: Alexei

[PATCH v3 27/30] perf clang: Declare BPF functions for BPF scripts automatically

2016-11-25 Thread Wang Nan
Use Clang's OverlayFileSystem, add '-include' options to make builtin clang define BPF functions. After this patch BPF script writer needn't define BPF functions by their own. Add -DBUILTIN_CLANG_DEFAULT_INCLUDE to builtin clang so when adopting builtin clang BPF functions can be automatically

[PATCH v3 09/30] perf build: Add clang and llvm compile and linking support

2016-11-25 Thread Wang Nan
Add necessary c++ flags and link libraries to support builtin clang and LLVM. Add all llvm and clang libraries, so don't need to worry about clang changes its libraries setting. However, linking perf would take much longer than usual. Signed-off-by: Wang Nan Cc: Alexei Starovoitov Cc: He Kuang

[PATCH v3 03/30] tools lib bpf: Retrive bpf_map through offset of bpf_map_def

2016-11-25 Thread Wang Nan
Add a new API to libbpf, caller is able to get bpf_map through the offset of bpf_map_def to 'maps' section. The API will be used to help jitted perf hook code find fd of a map. Signed-off-by: Wang Nan Cc: Arnaldo Carvalho de Melo Cc: Alexei Starovoitov Cc: Jiri Olsa Cc: Zefan Li Cc:

[PATCH v3 11/30] perf clang: Use real file system for #include

2016-11-25 Thread Wang Nan
Utilize clang's OverlayFileSystem facility, allow CompilerInstance to access real file system. With this patch '#include' directive can be used. Add a new getModuleFromSource for real file. Signed-off-by: Wang Nan Cc: Arnaldo Carvalho de Melo Cc: Alexei Starovoitov Cc: He Kuang Cc: Jiri

[PATCH v3 19/30] perf clang jit: Insignt BPF and JIT functions in a Module

2016-11-25 Thread Wang Nan
Identify BPF functions, JIT functions and maps during init. Functions in section starting with "perfhook:" are JIT functions. They will be JIT compiled and hooked at perfhooks. During init of PerfModule, mark JIT functions as AvailableExternallyLinkage. LLVM skips functions with linkage like this

[PATCH v3 06/30] perf llvm: Extract helpers in llvm-utils.c

2016-11-25 Thread Wang Nan
Following commits will use builtin clang to compile BPF script. llvm__get_kbuild_opts() and llvm__get_nr_cpus() are extracted to help building '-DKERNEL_VERSION_CODE' and '-D__NR_CPUS__' macros. Doing object dumping in bpf loader, so futher builtin clang compiling needn't consider it.

[PATCH v3 17/30] perf clang: Pass CFLAGS to builtin clang

2016-11-25 Thread Wang Nan
Pass -DLINUX_VERSION_CODE, -D__NR_CPUS__, llvm.clang-opt config options and CFLAGS detected by kbuild detector to builtin clang so BPF scripts can use kernel headers and user defined options like external clang compiler. Test: # perf record -v --dry-run -e

[PATCH v3 19/30] perf clang jit: Insignt BPF and JIT functions in a Module

2016-11-25 Thread Wang Nan
Identify BPF functions, JIT functions and maps during init. Functions in section starting with "perfhook:" are JIT functions. They will be JIT compiled and hooked at perfhooks. During init of PerfModule, mark JIT functions as AvailableExternallyLinkage. LLVM skips functions with linkage like this

[PATCH v3 06/30] perf llvm: Extract helpers in llvm-utils.c

2016-11-25 Thread Wang Nan
Following commits will use builtin clang to compile BPF script. llvm__get_kbuild_opts() and llvm__get_nr_cpus() are extracted to help building '-DKERNEL_VERSION_CODE' and '-D__NR_CPUS__' macros. Doing object dumping in bpf loader, so futher builtin clang compiling needn't consider it.

[PATCH v3 17/30] perf clang: Pass CFLAGS to builtin clang

2016-11-25 Thread Wang Nan
Pass -DLINUX_VERSION_CODE, -D__NR_CPUS__, llvm.clang-opt config options and CFLAGS detected by kbuild detector to builtin clang so BPF scripts can use kernel headers and user defined options like external clang compiler. Test: # perf record -v --dry-run -e

Xmas Offer

2016-11-25 Thread Mrs Julie Leach
You are a recipient to Mrs Julie Leach Donation of $3 million USD. Contact ( julieleac...@gmail.com ) for claims.

Xmas Offer

2016-11-25 Thread Mrs Julie Leach
You are a recipient to Mrs Julie Leach Donation of $3 million USD. Contact ( julieleac...@gmail.com ) for claims.

[PATCH v3 07/30] tools build: Add feature detection for LLVM

2016-11-25 Thread Wang Nan
Check if basic LLVM compiling environment is ready. Use llvm-config to detect include and library directories. Avoid using 'llvm-config --cxxflags' because its result contain some unwanted flags like --sysroot (if LLVM is built by yocto). Use '?=' to set LLVM_CONFIG, so explicitly passing

[PATCH v3 24/30] perf clang jit: Retrive fd of BPF map from its offset

2016-11-25 Thread Wang Nan
bpf__map_fd() is introduced to retrive fd of a BPF map through its offset in BPF object. This function is going be used in further commits which allow scripts jitted by builtin clang access BPF maps. Signed-off-by: Wang Nan Cc: Arnaldo Carvalho de Melo Cc:

[PATCH v3 30/30] perf clang jit: Export getpid() to perf hook

2016-11-25 Thread Wang Nan
After this patch perf hooks can retrive pid of perf itself by calling getpid. It is important for excluding event from perf. This commit is also an example to show how to export more helpers to hooked script. Signed-off-by: Wang Nan Cc: Arnaldo Carvalho de Melo

[PATCH v3 21/30] perf clang jit: Export functions for jitted code

2016-11-25 Thread Wang Nan
After this patch functions attached on perf hooks is allowed to invoke external functions. Add a testcase for this feature. Signed-off-by: Wang Nan Cc: Arnaldo Carvalho de Melo Cc: Alexei Starovoitov Cc: He Kuang Cc: Jiri

[PATCH v3 14/30] perf clang: Support compile IR to BPF object and add testcase

2016-11-25 Thread Wang Nan
getBPFObjectFromModule() is introduced to compile LLVM IR(Module) to BPF object. Add new testcase for it. Test result: $ ./buildperf/perf test -v clang 51: Test builtin clang support : 51.1: Test builtin clang compile C source to IR : --- start

[PATCH v3 16/30] perf clang: Pass full path to builtin clang

2016-11-25 Thread Wang Nan
If clang changes its working directory, relative path passed to perf_clang__compile_bpf() becomes invalid. Before running clang, convert it to absolute path so file can be found even working directory is changed. Signed-off-by: Wang Nan Cc: Arnaldo Carvalho de Melo

[PATCH v3 07/30] tools build: Add feature detection for LLVM

2016-11-25 Thread Wang Nan
Check if basic LLVM compiling environment is ready. Use llvm-config to detect include and library directories. Avoid using 'llvm-config --cxxflags' because its result contain some unwanted flags like --sysroot (if LLVM is built by yocto). Use '?=' to set LLVM_CONFIG, so explicitly passing

[PATCH v3 24/30] perf clang jit: Retrive fd of BPF map from its offset

2016-11-25 Thread Wang Nan
bpf__map_fd() is introduced to retrive fd of a BPF map through its offset in BPF object. This function is going be used in further commits which allow scripts jitted by builtin clang access BPF maps. Signed-off-by: Wang Nan Cc: Arnaldo Carvalho de Melo Cc: Alexei Starovoitov Cc: He Kuang Cc:

[PATCH v3 30/30] perf clang jit: Export getpid() to perf hook

2016-11-25 Thread Wang Nan
After this patch perf hooks can retrive pid of perf itself by calling getpid. It is important for excluding event from perf. This commit is also an example to show how to export more helpers to hooked script. Signed-off-by: Wang Nan Cc: Arnaldo Carvalho de Melo Cc: Alexei Starovoitov Cc: He

[PATCH v3 21/30] perf clang jit: Export functions for jitted code

2016-11-25 Thread Wang Nan
After this patch functions attached on perf hooks is allowed to invoke external functions. Add a testcase for this feature. Signed-off-by: Wang Nan Cc: Arnaldo Carvalho de Melo Cc: Alexei Starovoitov Cc: He Kuang Cc: Jiri Olsa Cc: Zefan Li Cc: pi3or...@163.com --- tools/perf/tests/Build

[PATCH v3 14/30] perf clang: Support compile IR to BPF object and add testcase

2016-11-25 Thread Wang Nan
getBPFObjectFromModule() is introduced to compile LLVM IR(Module) to BPF object. Add new testcase for it. Test result: $ ./buildperf/perf test -v clang 51: Test builtin clang support : 51.1: Test builtin clang compile C source to IR : --- start

[PATCH v3 16/30] perf clang: Pass full path to builtin clang

2016-11-25 Thread Wang Nan
If clang changes its working directory, relative path passed to perf_clang__compile_bpf() becomes invalid. Before running clang, convert it to absolute path so file can be found even working directory is changed. Signed-off-by: Wang Nan Cc: Arnaldo Carvalho de Melo Cc: Alexei Starovoitov Cc:

[PATCH v3 23/30] perf clang jit: Collect the lowest address in maps section as map_base

2016-11-25 Thread Wang Nan
During jitting, find the lowest address in maps section and store its value to _map_base. Pass its value out through perf_clang__compile_bpf(). map_base is useful for jitted functions accessing BPF maps. Signed-off-by: Wang Nan Cc: Arnaldo Carvalho de Melo

[PATCH v3 04/30] perf tools: Introduce perf hooks

2016-11-25 Thread Wang Nan
Perf hooks allow hooking user code at perf events. They can be used for manipulation of BPF maps, taking snapshot and reporting results. In this patch two perf hook points are introduced: record_start and record_end. To avoid buggy user actions, a SIGSEGV signal handler is introduced into 'perf

[PATCH v3 23/30] perf clang jit: Collect the lowest address in maps section as map_base

2016-11-25 Thread Wang Nan
During jitting, find the lowest address in maps section and store its value to _map_base. Pass its value out through perf_clang__compile_bpf(). map_base is useful for jitted functions accessing BPF maps. Signed-off-by: Wang Nan Cc: Arnaldo Carvalho de Melo Cc: Alexei Starovoitov Cc: He Kuang

[PATCH v3 04/30] perf tools: Introduce perf hooks

2016-11-25 Thread Wang Nan
Perf hooks allow hooking user code at perf events. They can be used for manipulation of BPF maps, taking snapshot and reporting results. In this patch two perf hook points are introduced: record_start and record_end. To avoid buggy user actions, a SIGSEGV signal handler is introduced into 'perf

[PATCH v3 13/30] perf clang: Update test case to use real BPF script

2016-11-25 Thread Wang Nan
Allow C++ code to use util.h and tests/llvm.h. Let 'perf test' compile a real BPF script. Signed-off-by: Wang Nan Cc: Alexei Starovoitov Cc: He Kuang Cc: Jiri Olsa Cc: Zefan Li Cc: pi3or...@163.com

[PATCH v3 01/30] tools lib bpf: Add missing BPF functions

2016-11-25 Thread Wang Nan
Add more BPF map operations to libbpf. Also add bpf_obj_{pin,get}(). They can be used on not only BPF maps but also BPF programs. Signed-off-by: Wang Nan Cc: Alexei Starovoitov Cc: Arnaldo Carvalho de Melo Cc: Joe Stringer Cc:

[PATCH v3 02/30] tools lib bpf: Add private field for bpf_object

2016-11-25 Thread Wang Nan
Similar to other classes defined in libbpf.h (map and program), allow 'object' class has its own private data. Signed-off-by: Wang Nan Cc: Alexei Starovoitov Cc: Arnaldo Carvalho de Melo Cc: Li Zefan ---

[PATCH v3 13/30] perf clang: Update test case to use real BPF script

2016-11-25 Thread Wang Nan
Allow C++ code to use util.h and tests/llvm.h. Let 'perf test' compile a real BPF script. Signed-off-by: Wang Nan Cc: Alexei Starovoitov Cc: He Kuang Cc: Jiri Olsa Cc: Zefan Li Cc: pi3or...@163.com Link: http://lkml.kernel.org/r/1474874832-134786-10-git-send-email-wangn...@huawei.com

[PATCH v3 01/30] tools lib bpf: Add missing BPF functions

2016-11-25 Thread Wang Nan
Add more BPF map operations to libbpf. Also add bpf_obj_{pin,get}(). They can be used on not only BPF maps but also BPF programs. Signed-off-by: Wang Nan Cc: Alexei Starovoitov Cc: Arnaldo Carvalho de Melo Cc: Joe Stringer Cc: Li Zefan --- tools/lib/bpf/bpf.c | 56

[PATCH v3 02/30] tools lib bpf: Add private field for bpf_object

2016-11-25 Thread Wang Nan
Similar to other classes defined in libbpf.h (map and program), allow 'object' class has its own private data. Signed-off-by: Wang Nan Cc: Alexei Starovoitov Cc: Arnaldo Carvalho de Melo Cc: Li Zefan --- tools/lib/bpf/libbpf.c | 23 +++ tools/lib/bpf/libbpf.h | 5 +

Re: [PATCH v3 2/3] zram: revalidate disk under init_lock

2016-11-25 Thread Sergey Senozhatsky
Hi, On (11/25/16 17:35), Minchan Kim wrote: > [1] moved revalidate_disk call out of init_lock to avoid lockdep > false-positive splat. However, [2] remove init_lock in IO path > so there is no worry about lockdep splat. So, let's restore it. > This patch need to set BDI_CAP_STABLE_WRITES

Re: [PATCH v3 2/3] zram: revalidate disk under init_lock

2016-11-25 Thread Sergey Senozhatsky
Hi, On (11/25/16 17:35), Minchan Kim wrote: > [1] moved revalidate_disk call out of init_lock to avoid lockdep > false-positive splat. However, [2] remove init_lock in IO path > so there is no worry about lockdep splat. So, let's restore it. > This patch need to set BDI_CAP_STABLE_WRITES

Re: [PATCH v3 3/3] zram: support BDI_CAP_STABLE_WRITES

2016-11-25 Thread Sergey Senozhatsky
Hello Minchan, On (11/25/16 17:35), Minchan Kim wrote: [..] > +static void zram_revalidate_disk(struct zram *zram) > +{ > + revalidate_disk(zram->disk); > + zram->disk->queue->backing_dev_info.capabilities |= > + BDI_CAP_STABLE_WRITES; > +} > + > /* > * Check if request is

Re: [PATCH v3 3/3] zram: support BDI_CAP_STABLE_WRITES

2016-11-25 Thread Sergey Senozhatsky
Hello Minchan, On (11/25/16 17:35), Minchan Kim wrote: [..] > +static void zram_revalidate_disk(struct zram *zram) > +{ > + revalidate_disk(zram->disk); > + zram->disk->queue->backing_dev_info.capabilities |= > + BDI_CAP_STABLE_WRITES; > +} > + > /* > * Check if request is

Re: [PATCH] Fixes for compiling with clang

2016-11-25 Thread kbuild test robot
Hi Peter, [auto build test ERROR on kbuild/for-next] [also build test ERROR on v4.9-rc6 next-20161125] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Peter-Foley/Fixes-for-compiling-with-clang

Re: [PATCH] Fixes for compiling with clang

2016-11-25 Thread kbuild test robot
Hi Peter, [auto build test ERROR on kbuild/for-next] [also build test ERROR on v4.9-rc6 next-20161125] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Peter-Foley/Fixes-for-compiling-with-clang

Re: [PATCH v2] Staging: iio: adc: fix sysfs files modes in ad7192.c

2016-11-25 Thread Boyan Vladinov
Ignore patch version...comments below Will resend it On 24.11.2016 19:38, Boyan Vladinov wrote: Fixes sysfs entries user/group modes and coding style warnings found by checkpatch.pl tool. Also use the IIO_DEVICE_ATTR_[RO|RW] and macros to create device attributes Signed-off-by: Boyan Vladinov

Re: [PATCH v2] Staging: iio: adc: fix sysfs files modes in ad7192.c

2016-11-25 Thread Boyan Vladinov
Ignore patch version...comments below Will resend it On 24.11.2016 19:38, Boyan Vladinov wrote: Fixes sysfs entries user/group modes and coding style warnings found by checkpatch.pl tool. Also use the IIO_DEVICE_ATTR_[RO|RW] and macros to create device attributes Signed-off-by: Boyan Vladinov

Xmas Offer

2016-11-25 Thread Mrs Julie Leach
You are a recipient to Mrs Julie Leach Donation of $3 million USD. Contact ( julieleac...@gmail.com ) for claims.

Xmas Offer

2016-11-25 Thread Mrs Julie Leach
You are a recipient to Mrs Julie Leach Donation of $3 million USD. Contact ( julieleac...@gmail.com ) for claims.

[PATCH] Fixes for compiling with clang

2016-11-25 Thread Peter Foley
Move definition of HOSTCC to allow use of cc-name. Suppress warnings about unsupported optimization options. Disable clang's integrated assembler which is incompatible with kernel asm constructs. Signed-off-by: Peter Foley --- Makefile | 23 +-- 1 file

[PATCH] Fixes for compiling with clang

2016-11-25 Thread Peter Foley
Move definition of HOSTCC to allow use of cc-name. Suppress warnings about unsupported optimization options. Disable clang's integrated assembler which is incompatible with kernel asm constructs. Signed-off-by: Peter Foley --- Makefile | 23 +-- 1 file changed, 13

Re: [RFC 1/1] LSM ptags: Add tagging of processes

2016-11-25 Thread Tetsuo Handa
Jose Bollo wrote: > +/** > + * is_valid_utf8 - Is buffer a valid utf8 string? > + * > + * @buffer: the start of the string > + * @length: length in bytes of the buffer > + * > + * Return 1 when valid or else returns 0 > + */ Do we really need to check UTF-8 inside kernel? What do you do if people

Re: [RFC 1/1] LSM ptags: Add tagging of processes

2016-11-25 Thread Tetsuo Handa
Jose Bollo wrote: > +/** > + * is_valid_utf8 - Is buffer a valid utf8 string? > + * > + * @buffer: the start of the string > + * @length: length in bytes of the buffer > + * > + * Return 1 when valid or else returns 0 > + */ Do we really need to check UTF-8 inside kernel? What do you do if people

fixed drivers/staging/most/mostcore/core.c coding style

2016-11-25 Thread wenhungyang
fix drivers/staging/most/mostcore/core.c coding style 1. move static from MACRO to function name 2. change symbolic permission such as 'S_IRUGO' to number >From 3e1dba83090c58251aae1dc7aca431bb11632a98 Mon Sep 17 00:00:00 2001 From: wenhungyang Date: Wed, 23 Nov 2016

fixed drivers/staging/most/mostcore/core.c coding style

2016-11-25 Thread wenhungyang
fix drivers/staging/most/mostcore/core.c coding style 1. move static from MACRO to function name 2. change symbolic permission such as 'S_IRUGO' to number >From 3e1dba83090c58251aae1dc7aca431bb11632a98 Mon Sep 17 00:00:00 2001 From: wenhungyang Date: Wed, 23 Nov 2016 21:55:36 +0800 Subject:

[PATCH] IIO: Change msleep to usleep_range for small msecs

2016-11-25 Thread Aniroop Mathur
msleep(1~20) may not do what the caller intends, and will often sleep longer. (~20 ms actual sleep for any value given in the 1~20ms range) This is not the desired behaviour for many cases like device resume time, device suspend time, device enable time, data reading time, etc. Thus, change msleep

[PATCH] IIO: Change msleep to usleep_range for small msecs

2016-11-25 Thread Aniroop Mathur
msleep(1~20) may not do what the caller intends, and will often sleep longer. (~20 ms actual sleep for any value given in the 1~20ms range) This is not the desired behaviour for many cases like device resume time, device suspend time, device enable time, data reading time, etc. Thus, change msleep

Re: [PATCH 1/3] perf sched timehist: Mark schedule function in callchains

2016-11-25 Thread David Ahern
On 11/23/16 11:30 PM, Namhyung Kim wrote: > Hi David, > > On Wed, Nov 23, 2016 at 10:13:46PM -0500, David Ahern wrote: >> On 11/23/16 8:11 PM, Namhyung Kim wrote: >>> The sched_switch event always captured from the scheduler function. So >>> it'd be great omit them from the callchain. This

Re: [PATCH 1/3] perf sched timehist: Mark schedule function in callchains

2016-11-25 Thread David Ahern
On 11/23/16 11:30 PM, Namhyung Kim wrote: > Hi David, > > On Wed, Nov 23, 2016 at 10:13:46PM -0500, David Ahern wrote: >> On 11/23/16 8:11 PM, Namhyung Kim wrote: >>> The sched_switch event always captured from the scheduler function. So >>> it'd be great omit them from the callchain. This

Re: [PATCH 2/2] x86/intel_rdt: Update task closid immediately on CPU in rmdir and unmount

2016-11-25 Thread Fenghua Yu
On Wed, Nov 23, 2016 at 03:23:50PM +0100, Thomas Gleixner wrote: > On Fri, 18 Nov 2016, Fenghua Yu wrote: > Reworked untested patch below. The reworked patch passes my baisc tests. But I have a quesiton on rdt_move_group_tasks() (please see below). > > Thanks, > > tglx > >

Re: [PATCH 2/2] x86/intel_rdt: Update task closid immediately on CPU in rmdir and unmount

2016-11-25 Thread Fenghua Yu
On Wed, Nov 23, 2016 at 03:23:50PM +0100, Thomas Gleixner wrote: > On Fri, 18 Nov 2016, Fenghua Yu wrote: > Reworked untested patch below. The reworked patch passes my baisc tests. But I have a quesiton on rdt_move_group_tasks() (please see below). > > Thanks, > > tglx > >

Xmas Offer

2016-11-25 Thread Mrs Julie Leach
You are a recipient to Mrs Julie Leach Donation of $3 million USD. Contact ( julieleac...@gmail.com ) for claims.

Xmas Offer

2016-11-25 Thread Mrs Julie Leach
You are a recipient to Mrs Julie Leach Donation of $3 million USD. Contact ( julieleac...@gmail.com ) for claims.

Re: [PATCH net] mvpp2: use correct size for memset

2016-11-25 Thread David Miller
From: Arnd Bergmann Date: Thu, 24 Nov 2016 17:28:12 +0100 > gcc-7 detects a short memset in mvpp2, introduced in the original > merge of the driver: > > drivers/net/ethernet/marvell/mvpp2.c: In function 'mvpp2_cls_init': > drivers/net/ethernet/marvell/mvpp2.c:3296:2: error:

Re: [PATCH net] mvpp2: use correct size for memset

2016-11-25 Thread David Miller
From: Arnd Bergmann Date: Thu, 24 Nov 2016 17:28:12 +0100 > gcc-7 detects a short memset in mvpp2, introduced in the original > merge of the driver: > > drivers/net/ethernet/marvell/mvpp2.c: In function 'mvpp2_cls_init': > drivers/net/ethernet/marvell/mvpp2.c:3296:2: error: 'memset' used with

Re: [PATCH] irda: fix overly long udelay()

2016-11-25 Thread David Miller
From: Arnd Bergmann Date: Thu, 24 Nov 2016 17:26:22 +0100 > irda_get_mtt() returns a hardcoded '1' in some cases, > and with gcc-7, we get a build error because this triggers a > compile-time check in udelay(): > > drivers/net/irda/w83977af_ir.o: In function

Re: [PATCH] irda: fix overly long udelay()

2016-11-25 Thread David Miller
From: Arnd Bergmann Date: Thu, 24 Nov 2016 17:26:22 +0100 > irda_get_mtt() returns a hardcoded '1' in some cases, > and with gcc-7, we get a build error because this triggers a > compile-time check in udelay(): > > drivers/net/irda/w83977af_ir.o: In function `w83977af_hard_xmit': >

RE: [patch v3 1/1] platform/x86: move module mlx-platform from arch/x86 to drivers/platform/x86

2016-11-25 Thread Vadim Pasternak
> -Original Message- > From: Andy Shevchenko [mailto:andy.shevche...@gmail.com] > Sent: Friday, November 25, 2016 12:03 PM > To: Vadim Pasternak > Cc: Thomas Gleixner ; dvh...@infradead.org; platform- > driver-...@vger.kernel.org;

RE: [patch v3 1/1] platform/x86: move module mlx-platform from arch/x86 to drivers/platform/x86

2016-11-25 Thread Vadim Pasternak
> -Original Message- > From: Andy Shevchenko [mailto:andy.shevche...@gmail.com] > Sent: Friday, November 25, 2016 12:03 PM > To: Vadim Pasternak > Cc: Thomas Gleixner ; dvh...@infradead.org; platform- > driver-...@vger.kernel.org; x...@kernel.org; linux-kernel@vger.kernel.org; >

Re: [PATCH] net: ieee802154: drop duplicate header delay.h

2016-11-25 Thread David Miller
From: Geliang Tang Date: Thu, 24 Nov 2016 21:58:32 +0800 > Drop duplicate header delay.h from adf7242.c. > > Signed-off-by: Geliang Tang Applied.

Re: [PATCH] net: ieee802154: drop duplicate header delay.h

2016-11-25 Thread David Miller
From: Geliang Tang Date: Thu, 24 Nov 2016 21:58:32 +0800 > Drop duplicate header delay.h from adf7242.c. > > Signed-off-by: Geliang Tang Applied.

Re: [PATCH] net/mlx5: drop duplicate header delay.h

2016-11-25 Thread David Miller
From: Geliang Tang Date: Thu, 24 Nov 2016 21:58:33 +0800 > Drop duplicate header delay.h from mlx5/core/main.c. > > Signed-off-by: Geliang Tang Applied.

Re: [PATCH] net/mlx5: drop duplicate header delay.h

2016-11-25 Thread David Miller
From: Geliang Tang Date: Thu, 24 Nov 2016 21:58:33 +0800 > Drop duplicate header delay.h from mlx5/core/main.c. > > Signed-off-by: Geliang Tang Applied.

  1   2   3   4   5   6   7   8   9   10   >