Page MenuHomeFreeBSD

hwpmc module log with full path
Needs ReviewPublic

Authored by fabient on Jan 19 2017, 5:46 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 5, 7:27 AM
Unknown Object (File)
Wed, Oct 30, 2:06 PM
Unknown Object (File)
Oct 8 2024, 7:47 AM
Unknown Object (File)
Oct 3 2024, 6:23 AM
Unknown Object (File)
Oct 1 2024, 6:55 PM
Unknown Object (File)
Oct 1 2024, 11:27 AM
Unknown Object (File)
Sep 28 2024, 5:09 PM
Unknown Object (File)
Sep 27 2024, 8:27 PM
Subscribers

Details

Reviewers
jhb
stevek
jtl
gnn
Summary

Discuss about a possible solution to find the right kernel module for hwpmc.
Related to D8234.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 6886

Event Timeline

fabient retitled this revision from to hwpmc module log with full path.
fabient updated this object.
fabient edited the test plan for this revision. (Show Details)
fabient added reviewers: jhb, gnn, stevek, jtl.
fabient set the repository for this revision to rS FreeBSD src repository - subversion.
sys/kern/link_elf_obj.c
561

This probably belongs in the caller (note that non-amd64 use link_elf.c to load
modules)

sys/kern/link_elf_obj.c
561

Do you mean it is better to resolve filename at upper level even if we need to open file again ?

sys/kern/link_elf_obj.c
561

So do you have a use case where the filename isn't already the full path? linker_load_module() in kern_linker.c already passes the pathname (not the basename) to this function.

Le 27 janv. 2017 à 20:05, jhb (John Baldwin) <phabric-noreply@FreeBSD.org> a écrit :

jhb added inline comments.

INLINE COMMENTS

fabient wrote in link_elf_obj.c:561
Do you mean it is better to resolve filename at upper level even if we need to open file again ?

So do you have a use case where the filename isn't already the full path? linker_load_module() in kern_linker.c already passes the pathname (not the basename) to this function.

Only relative pathname: custom load script, command line.

REPOSITORY
rS FreeBSD src repository

REVISION DETAIL
https://reviews.freebsd.org/D9246

EMAIL PREFERENCES
https://reviews.freebsd.org/settings/panel/emailpreferences/

To: fabient, jhb, gnn, stevek, jtl
Cc: imp

There's also the problem that this will still have issues when dealing with re-root and/or chroot environments.