From: Philippe E. <ph...@us...> - 2003-02-23 04:39:48
|
Update of /cvsroot/oprofile/oprofile/pp In directory sc8-pr-cvs1:/tmp/cvs-serv21687/pp Modified Files: op_time_options.cpp op_to_source_options.cpp oprofpp_options.cpp Log Message: minor cleanup, add a vague support for pointer in stl.pat. Looking deeper in problem encoutered by TextFilt and my implementation show than regular expression are not well suited to handle $typename, $typename will become a hard coded thing in demangle_symbol.cpp. This comes from the fact than regular expression can't handle arbitrary nested open/close marker like foo<T1, T2<T3<T4> > >, actually only two level of nested type are allowed and it's not sufficient even for basical use of STL furthermore with this two level we are already at limit of regex valid backward reference needed to match previously seen type. regards, Phil Index: op_time_options.cpp =================================================================== RCS file: /cvsroot/oprofile/oprofile/pp/op_time_options.cpp,v retrieving revision 1.25 retrieving revision 1.26 diff -u -d -r1.25 -r1.26 --- op_time_options.cpp 23 Feb 2003 01:46:59 -0000 1.25 +++ op_time_options.cpp 23 Feb 2003 04:39:45 -0000 1.26 @@ -65,7 +65,7 @@ popt::option(options::sort_by_counter, "sort", 'C', "which counter to use for sampels sort", "counter nr"), popt::option(options::exclude_symbols, "exclude-symbol", 'e', "exclude these comma separated symbols", "symbol_name"), popt::option(options::demangle, "demangle", 'd', "demangle GNU C++ symbol names"), - popt::option(options::demangle_and_shrink, "Demangle", 'D', "demangle GNU C++ symbol names then pass them through regular expression to dhrink them") + popt::option(options::demangle_and_shrink, "smart-demangle", 'D', "demangle GNU C++ symbol names then pass them through regular expression to shrink them") }; /** Index: op_to_source_options.cpp =================================================================== RCS file: /cvsroot/oprofile/oprofile/pp/op_to_source_options.cpp,v retrieving revision 1.15 retrieving revision 1.16 diff -u -d -r1.15 -r1.16 --- op_to_source_options.cpp 23 Feb 2003 01:46:59 -0000 1.15 +++ op_to_source_options.cpp 23 Feb 2003 04:39:45 -0000 1.16 @@ -47,7 +47,7 @@ popt::option(options::sample_file, "samples-file", 'f', "image sample file", "file"), popt::option(options::image_file, "image-file", 'i', "image file", "file"), popt::option(options::demangle, "demangle", 'd', "demangle GNU C++ symbol names"), - popt::option(options::demangle_and_shrink, "Demangle", 'D', "demangle GNU C++ symbol names then pass them through regular expression to dhrink them"), + popt::option(options::demangle_and_shrink, "smart-demangle", 'D', "demangle GNU C++ symbol names then pass them through regular expression to shrink them"), popt::option(options::with_more_than_samples, "with-more-than-samples", 'w', "show all source file if the percent of samples in this file is more than argument", "[0-100]"), popt::option(options::until_more_than_samples, "until-more-than-samples", 'm', Index: oprofpp_options.cpp =================================================================== RCS file: /cvsroot/oprofile/oprofile/pp/oprofpp_options.cpp,v retrieving revision 1.20 retrieving revision 1.21 diff -u -d -r1.20 -r1.21 --- oprofpp_options.cpp 23 Feb 2003 01:46:59 -0000 1.20 +++ oprofpp_options.cpp 23 Feb 2003 04:39:45 -0000 1.21 @@ -51,7 +51,7 @@ popt::option(options::sample_file, "samples-file", 'f', "image sample file", "file"), popt::option(options::image_file, "image-file", 'i', "image file", "file"), popt::option(options::demangle, "demangle", 'd', "demangle GNU C++ symbol names"), - popt::option(options::demangle_and_shrink, "Demangle", 'D', "demangle GNU C++ symbol names then pass them through regular expression to dhrink them"), + popt::option(options::demangle_and_shrink, "smart-demangle", 'D', "demangle GNU C++ symbol names then pass them through regular expression to shrink them"), popt::option(options::exclude_symbols, "exclude-symbol", 'e', "exclude these comma separated symbols", "symbol_name"), popt::option(options::sort_by_counter, "sort", 'C', "which counter to use for sampels sort", "counter nr"), popt::option(options::gprof_file, "dump-gprof-file", 'g', "dump gprof format file", "file"), |