* [BUG] uprobe: failed to work on 9pfs
@ 2015-03-06 5:18 He Kuang
2015-03-06 8:50 ` Peter Zijlstra
0 siblings, 1 reply; 2+ messages in thread
From: He Kuang @ 2015-03-06 5:18 UTC (permalink / raw)
To: a.p.zijlstra, paulus, mingo, acme, ericvh, rminnich, lucho
Cc: wangnan0, linux-kernel
Uprobe uses inode address to index all registered uprobes in a
rb_tree, this works well in most filesystems but failed on 9pfs.
9pfs allocate more than one vfs inode to the same file, the inode
address when we create uprobe is not same as the inode address we
run later. As a result, neither perf record nor events/uprobe can
capture the predefined uprobe events.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [BUG] uprobe: failed to work on 9pfs
2015-03-06 5:18 [BUG] uprobe: failed to work on 9pfs He Kuang
@ 2015-03-06 8:50 ` Peter Zijlstra
0 siblings, 0 replies; 2+ messages in thread
From: Peter Zijlstra @ 2015-03-06 8:50 UTC (permalink / raw)
To: He Kuang
Cc: paulus, mingo, acme, ericvh, rminnich, lucho, wangnan0,
linux-kernel
On Fri, Mar 06, 2015 at 01:18:47PM +0800, He Kuang wrote:
> Uprobe uses inode address to index all registered uprobes in a
> rb_tree, this works well in most filesystems but failed on 9pfs.
>
> 9pfs allocate more than one vfs inode to the same file, the inode
> address when we create uprobe is not same as the inode address we
> run later. As a result, neither perf record nor events/uprobe can
> capture the predefined uprobe events.
How does 9pfs work with the vfs/mm in this regard? The file cache very
much assumes the same thing uprobes does.
File caching is per inode, so if you have multiple inodes on the same
file you get multiple copies of your data with all sorts of braindamaged
corruption as a result.
I would very much chalk this up to 9pfs being insane.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-03-06 8:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-06 5:18 [BUG] uprobe: failed to work on 9pfs He Kuang
2015-03-06 8:50 ` Peter Zijlstra
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox