This looks like a bug.
The best is to file a bug on bugzilla, and attach (preferrably) a small
reproducer.

Alternatively, it might be good enough to just attach the callgrind
output file and the source file to run the callgrind_annotate command.

Note that in the meantime, you might try kcachegrind, and see if
kcachegrind is able to read the callgrind file, and show in the
source tab the below cpp file.

Philippe

On Tue, 2017-05-09 at 10:31 +0000, Wuweijia wrote:
> Help, any guy can help me?
> 
>  
> 
> Do you need any information. Just tell me.
> 
>  
> 
> 发件人: Wuweijia 
> 发送时间: 2017年5月8日 17:55
> 收件人: valgrind-users@lists.sourceforge.net
> 抄送: Fanbohao <fanbo...@huawei.com>
> 主题: I ran the callgrind_annotate to create the report . but it
> failed (in the read). Can you tell me Why?
> 
> 
>  
> 
> $  callgrind_annotate --threshold=20 --auto=yes --tree=caller
> --auto=yes
>  ./callgrind.out.7732 
> /cloud/jmaster/ndk_wwj/00.Trunk/Beauty_cmd/core/build/ndk/jni/../../../source/guidedfilter.cpp
> 
> --------------------------------------------------------------------------------
> 
> Profile data file './callgrind.out.7732' (creator: callgrind-3.12.0)
> 
> --------------------------------------------------------------------------------
> 
> I1 cache: 
> 
> D1 cache: 
> 
> LL cache: 
> 
> Timerange: Basic block 0 - 2745879511
> 
> Trigger: Program termination
> 
> Profiled target:  ./beautyALL
> --gtest_filter=FACEBEAUTY_HWA_TEST_PQ.*001_001* (PID 7732, part 1)
> 
> Events recorded:  Ir
> 
> Events shown:     Ir
> 
> Event sort order: Ir
> 
> Thresholds:       20
> 
> Include dirs:     
> 
> User
> annotated:   
> /cloud/jmaster/ndk_wwj/00.Trunk/Beauty_cmd/core/build/ndk/jni/../../../source/guidedfilter.cpp
> 
> Auto-annotation:  on
> 
>  
> 
> --------------------------------------------------------------------------------
> 
>             Ir 
> 
> --------------------------------------------------------------------------------
> 
> 54,072,323,868  PROGRAM TOTALS
> 
>  
> 
> --------------------------------------------------------------------------------
> 
>            Ir  file:function
> 
> --------------------------------------------------------------------------------
> 
>  
> 
> 7,631,025,535  < ???:GF_mem_core_2(unsigned char const*, int, int,
> int, unsigned int, signed char, unsigned char*, int, int, unsigned
> short*, unsigned short*) (2x)
> 
> 150,733,822,449,168,850  < ???:GF_mem_core_2(unsigned char const*,
> int, int, int, unsigned int, signed char, unsigned char*, int, int,
> unsigned short*, unsigned short*)'2 (72837764x)
> 
> 7,631,015,516  *  ???:GF_mem_core_2(unsigned char const*, int, int,
> int, unsigned int, signed char, unsigned char*, int, int, unsigned
> short*, unsigned short*)'2
> 
>  
> 
> 50,453,349,559,163,015  < ???:GF_mem_core_1(unsigned char const*, int,
> int, int, int, signed char, unsigned char*, int, int, unsigned short*,
> unsigned short*)'2 (49096266x)
> 
> 5,290,859,433  *  ???:GF_mem_core_1(unsigned char const*, int, int,
> int, int, signed char, unsigned char*, int, int, unsigned short*,
> unsigned short*)'2
> 
>  
> 
> --------------------------------------------------------------------------------
> 
> -- User-annotated
> source: 
> /cloud/jmaster/ndk_wwj/00.Trunk/Beauty_cmd/core/build/ndk/jni/../../../source/guidedfilter.cpp
> 
> --------------------------------------------------------------------------------
> 
>      Ir 
> 
>  
> 
> Use of uninitialized value $pairs[0] in numeric lt (<)
> at /usr/local/bin/callgrind_annotate line 1136.
> 
> Use of uninitialized value $high in numeric lt (<)
> at /usr/local/bin/callgrind_annotate line 1147.
> 
>  
> 
> 584,638  <counts for unidentified lines
> in 
> /cloud/jmaster/ndk_wwj/00.Trunk/Beauty_cmd/core/build/ndk/jni/../../../source/guidedfilter.cpp>
> 
>  
> 
> Use of uninitialized value in division (/)
> at /usr/local/bin/callgrind_annotate line 1218.
> 
> --------------------------------------------------------------------------------
> 
> Ir 
> 
> --------------------------------------------------------------------------------
> 
> 0  percentage of events annotated
> 
> 
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________ Valgrind-users mailing list 
> Valgrind-users@lists.sourceforge.net 
> https://lists.sourceforge.net/lists/listinfo/valgrind-users



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to