Closed Bug 1935899 Opened 2 months ago Closed 25 days ago

extend about:processes for FreeBSD

Categories

(Toolkit :: Performance Monitoring, enhancement)

Firefox 133
enhancement

Tracking

()

RESOLVED FIXED
136 Branch
Tracking Status
firefox136 --- fixed

People

(Reporter: cmt, Assigned: cmt)

References

Details

Attachments

(1 file, 1 obsolete file)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:133.0) Gecko/20100101 Firefox/133.0

Steps to reproduce:

The current code for about:processes on BSD - toolkit/components/processtools/ProcInfo_bsd.cpp - covers OpenBSD only. This extends the work from bug#1772090 to FreeBSD (the sysctl interface is ever so slightly different)

The Bugbug bot thinks this bug should belong to the 'Toolkit::Performance Monitoring' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Performance Monitoring
Product: Firefox → Toolkit

The sysctl interface on FreeBSD is ever so slightly different
from OpenBSD. Especially, we have a different number of elements
in the mib name, so namelen becomes a variable initialised inside
the #ifdef'ed code, and the calculation of the number of processes
in the result differs between OpenBSD and FreeBSD. Lastly, we need
to process the results differently on FreeBSD.

Assignee: nobody → cmt
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true

I have this patch in FreeBSD since nearly 18 months (Firefox 116) now, but I always postponed to submit it.
https://cgit.freebsd.org/ports/commit/www/firefox/files/patch-toolkit_compontents_processtools_procinfo__bsd.c?id=57ca3177d2a513bfd1cd73e6742a35efadc49cd1
We use this patch for both -release and -esr branches.

[Tracking Requested - why for this release]: Patch is in use for a log time, so tracking upcoming releases 134 and up, and esr128 (patch works there, too). Older releases are affected but not a priority (patched locally), and esr115 is not in use on FreeBSD anymore.

See Also: → 1772090

FreeBSD isn't a Tier 1 platform, so we're not inclined to track bugs which apply only to it. That said, we'll be happy to uplift patches once nominated.

Hi, could omeone land this? (Phabricater says "ready to land", but I'm - obviously - not permitted to do so myself).

(In reply to Christoph Moench-Tegeder from comment #6)

Hi, could omeone land this? (Phabricater says "ready to land", but I'm - obviously - not permitted to do so myself).

Hello. I left trivial review comments at https://phabricator.services.mozilla.com/D231490#8010391, I assumed you would either address them, or wait for reviews from the other two reviewers (but they might not see the review request as they are not marked as blocking reviewers).

The sysctl interface on FreeBSD is ever so slightly different
from OpenBSD. Especially, we have a different number of elements
in the mib name, so namelen becomes a variable initialised inside
the #ifdef'ed code, and the calculation of the number of processes
in the result differs between OpenBSD and FreeBSD. Lastly, we need
to process the results differently on FreeBSD.

(In reply to Florian Quèze [:florian] from comment #7)

Hello. I left trivial review comments at https://phabricator.services.mozilla.com/D231490#8010391, I assumed you would either address them, or wait for reviews from the other two reviewers (but they might not see the review request as they are not marked as blocking reviewers).

Ah, I misunderstood the interaction between that and "ready to land". Here we go. Thanks!

Attachment #9442340 - Attachment is obsolete: true
Pushed by fqueze@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/bf9237a58dce Extend BSD about:processes for FreeBSD r=florian,gaston
Status: ASSIGNED → RESOLVED
Closed: 25 days ago
Resolution: --- → FIXED
Target Milestone: --- → 136 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: