Closed Bug 1014317 Opened 10 years ago Closed 10 years ago

Port the PR_SET_VMA_ANON_NAME patch to the B2G emulator kernel (3.4)

Categories

(Firefox OS Graveyard :: General, defect)

All
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jld, Assigned: jld)

References

Details

Attachments

(2 files)

Android has a kernel patch that allows giving anonymous memory regions names that appear in /proc/N/maps, which they've already shipped for at least Nexus 4 and Nexus 5 (KitKat builds).  We think it would be useful for Gecko (bug 1011350), but development is impaired by limited availability of the feature on B2G devices.  But there's no reason we can't apply it to the emulator.
f? because it'd be nice to get confirmation that this does what we want before merging.
Attachment #8427404 - Flags: review?(vyang)
Attachment #8427404 - Flags: feedback?(n.nethercote)
Comment on attachment 8427404 [details] [review]
Link to Github pull-request: https://github.com/mozilla-b2g/platform_prebuilts_qemu-kernel/pull/7

I'm not sure what feedback you're after. The second patch on github appears to be modifying only binary files. The first patch appears to be adding the feature we want.
Attachment #8427404 - Flags: feedback?(n.nethercote)
Comment on attachment 8427404 [details] [review]
Link to Github pull-request: https://github.com/mozilla-b2g/platform_prebuilts_qemu-kernel/pull/7

This is the repo that's actually in the checkout, and the emulator reads the appropriate file from it when booting, which is why I put the f? here instead of on the source.

I've tested it myself, by creating a first-draft patch for bug 1011350, and it works.
Attachment #8427404 - Flags: feedback+
Don't know what's wrong yet.  I can't pull that git commit from github.
(In reply to Vicamo Yang [:vicamo][:vyang] (PTO May 17 - Jun 1)) from comment #5)
> Don't know what's wrong yet.  I can't pull that git commit from github.

The revision referenced in the platform_prebuilts_qemu-kernel PR (b0eb2b3463fa720276653ce91d1822c91fff0aa5) won't exist in https://github.com/mozilla-b2g/kernel_goldfish until/unless https://github.com/mozilla-b2g/kernel_goldfish/pull/10 is merged.  Currently it should be available from https://github.com/jld/kernel_goldfish
(In reply to Jed Davis [:jld] from comment #6)
> (In reply to Vicamo Yang [:vicamo][:vyang] (PTO May 17 - Jun 1)) from
> comment #5)
> > Don't know what's wrong yet.  I can't pull that git commit from github.
> 
> The revision referenced in the platform_prebuilts_qemu-kernel PR
> (b0eb2b3463fa720276653ce91d1822c91fff0aa5) won't exist in
> https://github.com/mozilla-b2g/kernel_goldfish until/unless
> https://github.com/mozilla-b2g/kernel_goldfish/pull/10 is merged.  Currently
> it should be available from https://github.com/jld/kernel_goldfish

I didn't mean that.  Somehow I can't pull your, jld, commits into prebuilts/qemu-kernel directly.  Could be some network problem.  Anyway, I've cloned it cleanly and it's no longer a problem.
Attachment #8427403 - Flags: review?(vyang) → review+
Attachment #8427404 - Flags: review?(vyang) → review+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: