Files
nvdriver/reports/gpu-perf-kcore-decode.txt
nvidia-driver-rs 4526e6a816 Baseline: validated 30/30 tree with passing Level 7 hardware regression
- Updated tools/post_reboot.sh to check kernel oops taint bit and stuck driver tasks instead of <86400s uptime
- Level 7 hardware regression passed on 0000:b3:00.0 (module 37e6fa430835eee2b426019db3ad70eeb7a9e9070c09c84bd9b973cf56cbe529, 107 inventory words, 0 static mismatches, CUDA baseline verified before and after)
- Updated .gitignore to exclude build archives (*.a, *.rlib), __pycache__, and raw trace dumps
2026-11-23 23:48:38 +00:00

57 lines
3.6 KiB
Plaintext

Perf5.15.222 runtime-code and ordered-call decoding review (read-only)
Localbinary `perf version` reports5.15.222. Localperf-buildid-cache man page
states--kcore copies onlycode, andrequires adjacentkallsyms/modules; rootcache
containsallthree. No capture/trace/perfdata mutations were made bythisreview.
Primary matchingstable source retainedanalysis/perf-source-v5.15.222 (source
releasev5.15.222, notclaimedUbuntu-patch-byteidenticaltoinstalledperf).
Decisive source: tools/perf/util/symbol.c
- filename_from_kallsyms_filename() requires basenameEXACTLY`kallsyms` and derives
adjacent`kcore` and`modules` filenames. `kallsyms.txt` fails this lookup.
- Explicit--kallsyms winsbeforevmlinux/buildid autodetection in dso__load_kernel_sym.
- dso__load_kcore validates relocation-reference andmoduleaddresses, readsELF
PT_LOAD maps, replacesmodulemaps, setsDSO_BINARY_TYPE__KCORE andlongnamekcore.
- Verbosedebug log on success: `Using <path>/kcore for kernel object code`.
- Kcore symbols are split byruntimeaddress intocoremaps, potentially losing the
original nvidia DSOlabel. Do notdropallresults with --dsos=nvidia filtering.
Root's correct explicit input is:
--kallsyms /root/.debug/[kernel.kcore]/a3aac8f0306fd819566d868c7c422dbdcf1e7d42/2026111719514581/kallsyms
Not reports/original-live-init-pt-3/kallsyms.txt, andnot -k <kcore>.
A cached directory is not consumed merely because itsnameisadjacenttoperf.data;
the exactkallsyms filename selects itsadjacentcode/moduletriple.
Preserve -vv diagnostics confirmingkcoreload andALL decodererror/loss events.
Independent byte comparison: gpu-perf-kcore-byte-comparison.json usesonlythe
existingcachedcodefile, not /proc/kcore. At firstdecodeerror _nv059469+2e,
actualruntimecalloperand differsfromfilezeros; at _nv016372+6c actualcallbytes
aree8e448d500 whileinstallednvidia.ko hase800000000, nearbyrelocation_nv049648.
All12examinederrorIPsarepresentincache PT_LOAD segments. SomeerrorIPs haveequal
localbytes; anearlierwrongcall canpropagate flowdesynchronization tootherIPs.
This proveswhyfile-only codeisunsuitable, notthatcorrecteddecodeiserrorfree.
Actual destinations, notcallsitehistograms:
- util/intel-pt.c intel_pt_prep_b_sample sets sample.ip=state.from_ip and
sample.addr=state.to_ip. Thus defaultip/sym names thecallsite'sfunction.
- builtin-script.c perf_sample__fprintf_addr prints destinationaddr andresolved
symbol whenSYMselected; --call-trace resolve_branch_sym resolves sample.addr
forCALL/TRACE_BEGIN andsample.ip forRETURN/TRACE_END.
- Candidate read-onlydecodefields: --itrace=ce --ns
-F time,tid,cpu,event,ip,sym,symoff,addr,flags
Thenpreserveordered`=>`destination records withsourceaddr,time,TID,CPU,flags.
--call-trace canprovide destinationindentation butrawfrom/to records areneeded
forprovenance andduplicatecalls; --graph-function isnotaproofboundary itself.
- Keep actualCALL distinctfromTRACE_BEGIN/address-filterreentry/asyncinterrupt;
filterreentry neednotmean thefunctionwascalled. Retpoline callsthroughthunks
mayreachactualcallee byjump, requiringgeneralbranchrecords plusprovenmatching
thunkpath, notclassificationofeveryreentry asacall.
- Decodererrors/loss/truncation resetconfidence; nosequenceedge maybridgean
unproven gap. Max-sizecut meanspost-cutmissingstages cannotbeclaimedabsent.
- PTcontrolflowdoesnotrecordGPU/RDI/RSI/statefieldvalues. Thepriorargumentmap
remainsstaticcontracts, notcapturedregisterproof. GPUassociationrequires
independent runtimeevidence andmustaccountforCUDAenumeratingmultipledevices.
No earlierprivatefunctionhits basedonthefile-only mismatcheddecode arevalidated
bythisreview. Rootowns correcteddecode andits error/coverage assessment.