X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=tools%2Fperf%2Fconfig%2Ffeature-checks%2Ftest-cplus-demangle.c;fp=tools%2Fperf%2Fconfig%2Ffeature-checks%2Ftest-cplus-demangle.c;h=610c686e0009a572d471954e32bea26a96a046b0;hb=955b2fee301c6fc3565e0b3f071236287b06d379;hp=0000000000000000000000000000000000000000;hpb=ef5bfcc8f2afb0fa3ee1a38a80bf1b16a9a0d01e;p=karo-tx-linux.git diff --git a/tools/perf/config/feature-checks/test-cplus-demangle.c b/tools/perf/config/feature-checks/test-cplus-demangle.c new file mode 100644 index 000000000000..610c686e0009 --- /dev/null +++ b/tools/perf/config/feature-checks/test-cplus-demangle.c @@ -0,0 +1,14 @@ +extern int printf(const char *format, ...); +extern char *cplus_demangle(const char *, int); + +int main(void) +{ + char symbol[4096] = "FieldName__9ClassNameFd"; + char *tmp; + + tmp = cplus_demangle(symbol, 0); + + printf("demangled symbol: {%s}\n", tmp); + + return 0; +}