[android-kernel] How to simulate some kernel workload?

2010-07-25 Thread Danke Xie
I am writing a small test tool to find out how quickly some kernel code can wake up to some events. So far, I have tested it under some userspace workload, such as running a few high-priority threads. I am interested in adding some more kernel workload, to see if the code still runs with good laten

Re: [android-kernel] Re: Mechanism for intercepting TCP/UDP traffic?

2010-07-25 Thread Dianne Hackborn
Whether or not you have to rebuild the kernel, you are going to need to create your own custom system image, because nothing like this is available to normal apps in the SDK. On Sun, Jul 25, 2010 at 1:12 PM, potassium wrote: > Thanks Dianne > > However I don't want to intercept the traffic to det

[android-kernel] Re: Mechanism for intercepting TCP/UDP traffic?

2010-07-25 Thread potassium
Thanks Dianne However I don't want to intercept the traffic to determine the number of bytes sent, I want to intercept TCP, replace it with a proprietary protocol (based on UDP) and then re-inject the packets into the stack as UDP (and do the reverse for incoming UDP packets which have been also c