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"
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