Skip to contentSkip to conversation

uprobe: failed to work on 9pfs

BUG He Kuang 2 participants 2 messages Mar 6, 2015

lore
Share & tools
lore

He Kuang

author
#0 lore raw

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.

#1 lore raw
Quoted 7 lines · He Kuang

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.