From: Philippe E. <ph...@us...> - 2003-02-11 21:09:37
|
Update of /cvsroot/oprofile/oprofile/libabi In directory sc8-pr-cvs1:/tmp/cvs-serv26759/libabi Modified Files: abi.cpp abi_test.cpp op_import.cpp Log Message: per application kernel samples files regards, Phil Index: abi.cpp =================================================================== RCS file: /cvsroot/oprofile/oprofile/libabi/abi.cpp,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- abi.cpp 31 Jan 2003 14:56:50 -0000 1.7 +++ abi.cpp 11 Feb 2003 21:09:03 -0000 1.8 @@ -63,7 +63,8 @@ slots["offsetof_header_ctr_count"] = field_offset(header, ctr_count); slots["offsetof_header_cpu_speed"] = field_offset(header, cpu_speed); slots["offsetof_header_mtime"] = field_offset(header, mtime); - slots["offsetof_header_separate_samples"] = field_offset(header, separate_samples); + slots["offsetof_header_separate_lib_samples"] = field_offset(header, separate_lib_samples); + slots["offsetof_header_separate_kernel_samples"] = field_offset(header, separate_kernel_samples); // determine endianness unsigned int probe = 0xff; Index: abi_test.cpp =================================================================== RCS file: /cvsroot/oprofile/oprofile/libabi/abi_test.cpp,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- abi_test.cpp 31 Jan 2003 14:56:51 -0000 1.6 +++ abi_test.cpp 11 Feb 2003 21:09:03 -0000 1.7 @@ -66,7 +66,8 @@ header->ctr_count = 0xdeadbeef; header->cpu_speed = 0; header->mtime = 1034790063; - header->separate_samples = 0; + header->separate_lib_samples = 0; + header->separate_kernel_samples = 0; for(int i = 0; i < 3793; ++i) { Index: op_import.cpp =================================================================== RCS file: /cvsroot/oprofile/oprofile/libabi/op_import.cpp,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- op_import.cpp 31 Jan 2003 14:56:51 -0000 1.8 +++ op_import.cpp 11 Feb 2003 21:09:03 -0000 1.9 @@ -121,7 +121,8 @@ ext.extract(head->ctr_count, src, "sizeof_u32", "offsetof_header_ctr_count"); head->cpu_speed = 0.; // "double" extraction is unlikely to work ext.extract(head->mtime, src, "sizeof_time_t", "offsetof_header_mtime"); - ext.extract(head->separate_samples, src, "sizeof_int", "offsetof_header_separate_samples"); + ext.extract(head->separate_lib_samples, src, "sizeof_int", "offsetof_header_separate_lib_samples"); + ext.extract(head->separate_kernel_samples, src, "sizeof_int", "offsetof_header_separate_kernel_samples"); src += abi.need("sizeof_struct_opd_header"); // done extracting opd header |