Hi Robert, Thanks for the useful suggestions. This should help me get going.
Regards, Ram On Tue, Apr 24, 2012 at 11:09 AM, Robert Richter <robert.rich...@amd.com> wrote: > On 13.04.12 13:05:00, Ramachandra CN wrote: >> With respect to this old post, is the IBS related kernel patch, part >> of the latest mainline kernel? > > No, the patches are not yet upstream. The latest (updated) code base > is still here: > > http://git.kernel.org/?p=linux/kernel/git/rric/oprofile.git;a=shortlog;h=refs/heads/perf-ibs > > Since the example code was nacked it isn't part of the latest patch > submission and also didn't go into libpfm4. The latest version of > it is here: > > http://article.gmane.org/gmane.linux.kernel/1193674 > > It should probably work with the kernel patches above, but I didn't > review and test it. > > For collecting samples with the kernel version above I suggest using > perf-record and perf-script-ibs with the perf tools patches from here: > > http://git.kernel.org/?p=linux/kernel/git/rric/oprofile.git;a=shortlog;h=refs/heads/perf-ibs-v4 > > But all of this is very much work in progress, sorry for that. > >> I am running linux kernel 2.34 and wanted to experiment with >> ibs_sampl.c example. Do I have to apply the kernel patch before I try >> this? > > Wrt the kernel version I suggest to work close with the tip tree that > the branches above base on. Version 2.6.34 is too old to patch it. > >> Also, I couldn't find the corresponding code changes in libpfm4. So I >> guess I will have to use the libpmf4 patch >> (https://lkml.org/lkml/2010/10/18/329) > > This code does not work with the latest user/kernel i/f. Use the > sample code of my [V3] patch set of the link above. > > I will post a rework of userspace patches next days (but no example > code included). > > Hope that helps. > > -Robert > > -- > Advanced Micro Devices, Inc. > Operating System Research Center > ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ perfmon2-devel mailing list perfmon2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/perfmon2-devel