Skip to contentSkip to conversation

Kernelnewbies Digest, Vol 87, Issue 23

DISCUSSION yash omer 1 participant 1 message Feb 12, 2018 1 message not in the archive

lore
Share & tools
lore

yash omer

author
#1 lore raw
In reply to a message not in the archive

ok, Thank You

Quoted 157 lines · On Mon, Feb 12, 2018 at 10:30 PM, <[email protected]>…

Send Kernelnewbies mailing list submissions to
kernelnewbies at kernelnewbies.org

To subscribe or unsubscribe via the World Wide Web, visit
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
or, via email, send a message with subject or body 'help' to
kernelnewbies-request at kernelnewbies.org

You can reach the person managing the list at
kernelnewbies-owner at kernelnewbies.org

When replying, please edit your Subject line so it is more specific than "Re: Contents of Kernelnewbies digest..."

Today's Topics:

1. Re: Query on mechanisms to communicate between kernel modules in Linux (Tobin C. Harding)
2. Re: newbie (Ruben Safir)

----------------------------------------------------------------------

Message: 1
Date: Mon, 12 Feb 2018 11:25:05 +1100
From: "Tobin C. Harding" <[email protected]>
To: Neil Thomas <[email protected]>
Cc: Greg KH <[email protected]>, valdis.kletnieks at vt.edu, Pintu Kumar
<[email protected]>, kernelnewbies at kernelnewbies.org
Subject: Re: Query on mechanisms to communicate between kernel modules
in Linux
Message-ID: <20180212002505.GA16552@eros>
Content-Type: text/plain; charset=us-ascii

Quoted 1 line · Neil Thomas

Thanks a lot. I will try out this.

Please don't top post. It upsets people.

Good luck,
Tobin.

Quoted 3 lines · Pintu Kumar
Quoted 2 lines

On Fri, Feb 9, 2018 at 12:52 AM, Neil Thomas <[email protected]>

Quoted 11 lines · wrote:
Quoted 11 lines
Quoted 7 lines

Thanks, I will check it out.

Quoted 4 lines · On 09-Feb-2018 12:50 AM, <[email protected]> wrote:
Quoted 1 line · Neil Thomas

I am just a beginner. I have tried procfs, Netlink socket to

communicate

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

between user space and kernel space and it works fine.

I am developing a monitoring utility to trace the VFS operation

and

Quoted 2 lines
Quoted 2 lines

find

Quoted 1 line
Quoted 1 line
Quoted 1 line

the frequency of VFS function calls. This monitoring utility runs

in

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

kernel
space. We have to record the occurrence of each VFS function

calls

Quoted 17 lines
Quoted 17 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

(like
vfs_open(), vfs_read()). I don't know which is best mechanism to report
this VFS event to the monitoring utility.

Could anyone please suggest the best mechanism to transfer data frequently
between kernel modules.

You can also use ION (CONFIG_ION) or DMABUF (DMA_SHARED_BUFFER) buffer sharing mechanism to share data between 2 drivers.
Check this:
https://www.kernel.org/doc/html/latest/driver-api/dma-buf.html
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/
linux.git/tree/drivers/staging/android/ion?h=v4.15

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

There's a perfectly good perf-based function trace facility that

will

Quoted 13 lines
Quoted 12 lines
Quoted 11 lines
Quoted 5 lines

provide
this info to userspace.

http://www.brendangregg.com/perf.html#StaticKernelTracing

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Quoted 4 lines

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

------------------------------

Message: 2
Date: Mon, 12 Feb 2018 11:59:52 -0500
From: Ruben Safir <[email protected]>
To: yash omer <[email protected]>
Cc: kernelnewbies at kernelnewbies.org
Subject: Re: newbie
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii

use mutt

Quoted 7 lines · yash omer

Hello,
Please guide me how to follow with mailing list

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

--
So many immigrant groups have swept through our town that Brooklyn, like Atlantis, reaches mythological proportions in the mind of the world - RI Safir 1998
http://www.mrbrklyn.com

DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002
http://www.nylxs.com - Leadership Development in Free Software
http://www2.mrbrklyn.com/resources - Unpublished Archive
http://www.coinhangout.com - coins!
http://www.brooklyn-living.com

Being so tracked is for FARM ANIMALS and and extermination camps, ut incompatible with living as a free human being. -RI Safir 2013 1

------------------------------

Subject: Digest Footer

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Quoted 5 lines

------------------------------

End of Kernelnewbies Digest, Vol 87, Issue 23
*********************************************

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20180212/b6f9f496/attachment.html>