Re: flush_dcache_page from user space.

2014-03-31 Thread Arun KS
Hi Ratheesh, On Tue, Apr 1, 2014 at 11:54 AM, ratheesh kannoth wrote: > On Tue, Apr 1, 2014 at 11:50 AM, Arun KS wrote: >> This requirement depends on what cache your hardware has. >> Can you give more details about your processor? >> >> If you have VIPT non aliasing cache or PIPT cache, you don

Re: flush_dcache_page from user space.

2014-03-31 Thread ratheesh kannoth
On Tue, Apr 1, 2014 at 11:50 AM, Arun KS wrote: > This requirement depends on what cache your hardware has. > Can you give more details about your processor? > > If you have VIPT non aliasing cache or PIPT cache, you don't need to > do anything. > How can i find which cache hw on my machine ?

Re: flush_dcache_page from user space.

2014-03-31 Thread Arun KS
Hi Ratheesh, On Tue, Apr 1, 2014 at 9:28 AM, ratheesh kannoth wrote: > I mmap'ed mmory allocated by kmalloc , to userspace. I can modify > data ( in that memory region ) from kernel space or userspace and > call flush_dcache_page to get it refected in both kernel and > userspace. This re

Ctrl-C doesn't work in the shell

2014-03-31 Thread Chan Kim
Hi, When I'm on a sheel on LCD using USB keyboard, all works fine (except another important problem..) but Ctrl-C key doesn't work. When I press ctrl-C, '^C' is displayed on the screen (prompt line), but doesn't have the effect of killing the job. For example, I start ping and it displays the

flush_dcache_page from user space.

2014-03-31 Thread ratheesh kannoth
I mmap'ed mmory allocated by kmalloc , to userspace. I can modify data ( in that memory region ) from kernel space or userspace and call flush_dcache_page to get it refected in both kernel and userspace. 1) if i modify a value from userspace, is there any other way to flush dcache page f

System call interception by jprobe

2014-03-31 Thread edsionte
Hi, guys, I am trying to use jprobe to intercept syscalls in linux kernel. Such as open(),the original flow is open()-->sys_open(), and now, open()-->check_file()-->sys_oepn() The check_file() is jprobe's entry point. If check_file() returns sucessfully, jprobe_return() will be called and sys_ope

echo 1 > memory.oom_control bash: echo: write error: Invalid argument

2014-03-31 Thread Kevin Wilson
Hello, On Fedora 20, I try the following: 1) create a cgroup called "0" /sys/fs/cgroup/memory/0 run: echo "1" > /sys/fs/cgroup/memory/0/memory.oom_control bash: echo: write error: Invalid argument Why am I having this error ? According to the documentation: http://lxr.free-electrons.com/sourc