Re: Perf API vs Ftrace

2015-03-02 Thread John de la Garza
On Tue, Mar 03, 2015 at 11:07:21AM +0530, sahil aggarwal wrote: Hi all Do anybody have experience using Perf API and Ftrace.? I am writing an application to profile a process and using Ftrace. But came to know that Perf provide API too so looking for some facts to benchmark efficiency.

Re: ACCESS_ONCE usage inside llist_add_batch function

2015-03-02 Thread John de la Garza
On Sat, Feb 28, 2015 at 10:12:23PM +0200, Cihangir Akturk wrote: Reading the lib/llist.c file in the kernel sources, I came across the llist_add_bach function defined like this; bool llist_add_batch(struct llist_node *new_first, struct llist_node *new_last, struct

Perf API vs Ftrace

2015-03-02 Thread sahil aggarwal
Hi all Do anybody have experience using Perf API and Ftrace.? I am writing an application to profile a process and using Ftrace. But came to know that Perf provide API too so looking for some facts to benchmark efficiency. Thanks Sahil Regards ___

Re: ACCESS_ONCE usage inside llist_add_batch function

2015-03-02 Thread Chinmay V S
On Tue, Mar 3, 2015 at 11:51 AM, John de la Garza j...@jjdev.com wrote: On Sat, Feb 28, 2015 at 10:12:23PM +0200, Cihangir Akturk wrote: Reading the lib/llist.c file in the kernel sources, I came across the llist_add_bach function defined like this; bool llist_add_batch(struct llist_node

Re: Are there any API's to create ring buffers easily in kernel?

2015-03-02 Thread sanjeev sharma
Hello, Ring buffer you can implement using kfifo Regards Sanjeev Sharma On Mon, Mar 2, 2015 at 3:54 PM, manty kuma mantyk...@gmail.com wrote: Hi, Are there any ready-to-use API's in kernel to allocate a ring buffer and give some prints into it (I don't want to corrupt kernel log)? Best

Are there any API's to create ring buffers easily in kernel?

2015-03-02 Thread manty kuma
Hi, Are there any ready-to-use API's in kernel to allocate a ring buffer and give some prints into it (I don't want to corrupt kernel log)? Best Regards, Manty ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org

Re: Are there any API's to create ring buffers easily in kernel?

2015-03-02 Thread Pranay Srivastava
Hi Manty On Mon, Mar 2, 2015 at 3:24 AM, manty kuma mantyk...@gmail.com wrote: Hi, Are there any ready-to-use API's in kernel to allocate a ring buffer and give some prints into it (I don't want to corrupt kernel log)? Have you seen circ_buff? Documentation/circular-buffers.txt Best