Messages in this thread | | | Date | Wed, 18 Nov 2009 20:29:11 -0200 | From | Arnaldo Carvalho de Melo <> | Subject | Re: [PATCH 4/4] perf symbols: Capture the running kernel buildid too |
| |
Em Wed, Nov 18, 2009 at 08:20:53PM -0200, Arnaldo Carvalho de Melo escreveu: > From: Arnaldo Carvalho de Melo <acme@redhat.com> > > [root@doppio linux-2.6-tip]# perf record -a -f sleep 3s ; perf > buildid-list | grep vmlinux > [ perf record: Woken up 1 times to write data ] > [ perf record: Captured and wrote 0.171 MB perf.data (~7489 samples) ] > 18e7cc53db62a7d35e9d6f6c9ddc23017d38ee9a vmlinux > [root@doppio linux-2.6-tip]# > > Several refactorings were needed so that we can have simmetry between > dsos__load_modules and dsos__load_kernel, i.e. those functions will > respectively create and add to the dsos list the loaded modules and > kernel, with its buildids, but not load its symbols. That is something > the subcomands that need will have to call dso__load_kernel_sym(), just > like we do with modules with dsos__load_module_sym()/dso__load_module_sym().
And that can even be deferred to when we get a kernel sample, thinking about 'perf top --hide_kernel_symbols', this makes a lot of sense 8-)
Tomorrow tho.
- Arnaldo
| |