Repository navigation
Commit d3379ab
perf symbols: Fix comparision of build_ids
When we read the build_id from the DSO name to then index into
/usr/lib/debug/.buildid/DSO_BUILD_ID[0:2]/DSO_BUILD_ID[2:], we
were jumping directly to the comparision with the buildid we
already have in dso->build_id (that came from the perf.data
build_id section, collected at perf record time)
unconditionally, even if we didn't had recorded it, and
furthermore, comparing a formatted buildid with a rawbuildid, yikes.
Fix it by deleting the dso__read_build_id() function, that was
really misdesigned anyway, and do the necessary checks and
correct comparison of raw buildids.
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Frédéric Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
LKML-Reference: <1258582853-8579-1-git-send-email-acme@infradead.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>1 parent b269876 commit d3379ab
1 file changed
Lines changed: 16 additions & 36 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
962 | 962 | | |
963 | 963 | | |
964 | 964 | | |
965 | | - | |
966 | | - | |
967 | | - | |
968 | | - | |
969 | | - | |
970 | | - | |
971 | | - | |
972 | | - | |
973 | | - | |
974 | | - | |
975 | | - | |
976 | | - | |
977 | | - | |
978 | | - | |
979 | | - | |
980 | | - | |
981 | | - | |
982 | | - | |
983 | | - | |
984 | 965 | | |
985 | 966 | | |
986 | 967 | | |
| |||
1001 | 982 | | |
1002 | 983 | | |
1003 | 984 | | |
1004 | | - | |
| 985 | + | |
| 986 | + | |
1005 | 987 | | |
1006 | 988 | | |
1007 | 989 | | |
| |||
1023 | 1005 | | |
1024 | 1006 | | |
1025 | 1007 | | |
1026 | | - | |
1027 | | - | |
1028 | 1008 | | |
1029 | 1009 | | |
1030 | 1010 | | |
| |||
1036 | 1016 | | |
1037 | 1017 | | |
1038 | 1018 | | |
1039 | | - | |
1040 | | - | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
1041 | 1025 | | |
1042 | 1026 | | |
1043 | | - | |
1044 | | - | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
1045 | 1031 | | |
1046 | 1032 | | |
1047 | 1033 | | |
| |||
1054 | 1040 | | |
1055 | 1041 | | |
1056 | 1042 | | |
1057 | | - | |
1058 | | - | |
1059 | | - | |
| 1043 | + | |
| 1044 | + | |
1060 | 1045 | | |
1061 | | - | |
1062 | | - | |
1063 | 1046 | | |
1064 | | - | |
1065 | | - | |
1066 | | - | |
1067 | | - | |
1068 | | - | |
| 1047 | + | |
| 1048 | + | |
1069 | 1049 | | |
1070 | 1050 | | |
1071 | 1051 | | |
| |||
0 commit comments