Feat: filter unneeded mappings in SynchronizeProcess#1267
Conversation
…ng for better perf
… allow for one pass loop
fabled
left a comment
There was a problem hiding this comment.
Thanks so much for working on this. First round of comments added.
|
Thanks for the feedbacks ! |
|
@christos68k @florianl Do you have opinion on the I think otherwise this PR is sufficient. In the long term, I'll want to follow up (either be my or someone) with the following additional changes:
Given that the proposed role of |
christos68k
left a comment
There was a problem hiding this comment.
Left some nits, generally looks OK to me
That seems fine to me, if it causes someone to look up the documentation and figure out the semantics around |
| func (sp *systemProcess) getMappingFile(m *Mapping) string { | ||
| if m.IsAnonymous() || m.IsVDSO() { | ||
| func (sp *systemProcess) getMappingFile(m *RawMapping) string { | ||
|
|
florianl
left a comment
There was a problem hiding this comment.
Do you have opinion on the process.Mapping to RawMapping struct name change?
No strong opinion on this rename from my side.
florianl
left a comment
There was a problem hiding this comment.
Just a minor nit I didn't spot earlier. Thanks for the work 🙏
90d7e30 to
f02222c
Compare
|
@fabled Feel free to merge this (not merging yet to allow you to take a final look) |
|
I merged this today to clear some of the backlog, if there are more changes let's open another PR. |
…1267) Co-authored-by: Timo Teräs <timo.teras@iki.fi> Co-authored-by: Florian Lehner <florian.lehner@elastic.co> Co-authored-by: Christos Kalkanis <christos.kalkanis@elastic.co>
…1267) Co-authored-by: Timo Teräs <timo.teras@iki.fi> Co-authored-by: Florian Lehner <florian.lehner@elastic.co> Co-authored-by: Christos Kalkanis <christos.kalkanis@elastic.co>
…1267) Co-authored-by: Timo Teräs <timo.teras@iki.fi> Co-authored-by: Florian Lehner <florian.lehner@elastic.co> Co-authored-by: Christos Kalkanis <christos.kalkanis@elastic.co>
…1267) Co-authored-by: Timo Teräs <timo.teras@iki.fi> Co-authored-by: Florian Lehner <florian.lehner@elastic.co> Co-authored-by: Christos Kalkanis <christos.kalkanis@elastic.co>
Related issue: #1255