NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
re: kern/58811: riscv64 cannot run "systat vm"
The following reply was made to PR kern/58811; it has been noted by GNATS.
From: matthew green <mrg%eterna23.net@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: kern-bug-people%netbsd.org@localhost, gnats-admin%netbsd.org@localhost,
netbsd-bugs%netbsd.org@localhost
Subject: re: kern/58811: riscv64 cannot run "systat vm"
Date: Wed, 06 Nov 2024 20:13:45 +1100
this is really weird.
i saw the same problem in my risc64 vm. then i patched the call
to kvm_nlist() to have the only "necessary" one (allevents) to be
first in the struct nlist[], and then it worked. reading the code
this shouldn't happen, and it should find "allevents"
then i wrote a tiny test to compare having successful symbols to
look up in first or second array member, and it worked fine for me
both ways. so i removed my patch to systat/vmstat.c and put the
"_allevents" entry back to the end...and it is still working. it
can see the allevents entry in "nm /dev/ksyms" as expected, so i'm
basically really confused what is happening here, and now i can't
reproduce the original problem. (is there a chance it was broken,
and recently fixed? i *did* upgrade my VM since i was building
new -current fixes, so i did change a lot..)
note, the "_" prefix is related to the original a.out version,
where those were the actual symbols names in the text. for ELF,
we ignore the leading "_" in the lookup.
.mrg.
Home |
Main Index |
Thread Index |
Old Index