@@ -46,9 +46,9 @@ constexpr std::string_view kTestGoWithModulesBinaryPath =
4646 " src/stirling/obj_tools/testdata/go/test_buildinfo_with_mods" ;
4747
4848constexpr std::string_view kTestGoBinaryPath =
49- " src/stirling/obj_tools/testdata/go/test_go_1_19_binary " ;
50- constexpr std::string_view kTestGo1_21BinaryPath =
51- " src/stirling/obj_tools/testdata/go/test_go_1_21_binary " ;
49+ " src/stirling/obj_tools/testdata/go/test_go_1_24_binary " ;
50+ constexpr std::string_view kTestGo1_24BinaryPath =
51+ " src/stirling/obj_tools/testdata/go/test_go_1_24_binary " ;
5252
5353// The "endian agnostic" case refers to where the Go version data is varint encoded
5454// directly within the buildinfo header. See the following reference for more details.
@@ -58,7 +58,7 @@ TEST(ReadGoBuildInfoTest, BuildinfoEndianAgnostic) {
5858 ASSERT_OK_AND_ASSIGN (std::unique_ptr<ElfReader> elf_reader, ElfReader::Create (kPath ));
5959 ASSERT_OK_AND_ASSIGN (auto pair, ReadGoBuildInfo (elf_reader.get ()));
6060 auto version = pair.first ;
61- EXPECT_THAT (version, StrEq (" 1.19.13 " ));
61+ EXPECT_THAT (version, StrEq (" 1.24.4 " ));
6262}
6363
6464TEST (ReadGoBuildInfoTest, BuildinfoLittleEndian) {
@@ -222,7 +222,7 @@ INSTANTIATE_TEST_SUITE_P(
222222 ElfGolangItableTestSuite, ElfGolangItableTest,
223223 ::testing::Values (
224224 std::make_tuple (
225- kTestGo1_21BinaryPath ,
225+ kTestGo1_24BinaryPath ,
226226 UnorderedElementsAre (
227227 Pair (" fmt.State" ,
228228 UnorderedElementsAre (Field(&IntfImplTypeInfo::type_name, " *fmt.pp" ))),
@@ -238,23 +238,23 @@ INSTANTIATE_TEST_SUITE_P(
238238 Field(&IntfImplTypeInfo::type_name, " *errors.errorString" ),
239239 Field(&IntfImplTypeInfo::type_name, " syscall.Errno" ),
240240 Field(&IntfImplTypeInfo::type_name, " *io/fs.PathError" ),
241+ Field(&IntfImplTypeInfo::type_name, " *os.SyscallError" ),
241242 Field(&IntfImplTypeInfo::type_name, " runtime.errorString" ),
243+ Field(&IntfImplTypeInfo::type_name, " runtime.plainError" ),
242244 Field(&IntfImplTypeInfo::type_name, " internal/poll.errNetClosing" ),
243245 Field(&IntfImplTypeInfo::type_name,
244246 " *internal/poll.DeadlineExceededError" ),
245247 Field(&IntfImplTypeInfo::type_name, " *internal/bisect.parseError" ))),
246248 Pair(" io.Writer" ,
247249 UnorderedElementsAre (Field(&IntfImplTypeInfo::type_name, " *os.File" ))),
248- Pair(" sort.Interface" , UnorderedElementsAre(Field(&IntfImplTypeInfo::type_name,
249- " *internal/fmtsort.SortedMap" ))),
250250 Pair(" reflect.Type" ,
251251 UnorderedElementsAre (Field(&IntfImplTypeInfo::type_name, " *reflect.rtype" ))),
252252 Pair(" math/rand.Source64" , UnorderedElementsAre(Field(&IntfImplTypeInfo::type_name,
253- " *math/rand.fastSource " ))),
253+ " *math/rand.runtimeSource " ))),
254254 Pair(" math/rand.Source" , UnorderedElementsAre(Field(&IntfImplTypeInfo::type_name,
255255 " *math/rand.lockedSource" ),
256256 Field(&IntfImplTypeInfo::type_name,
257- " *math/rand.fastSource " ))))),
257+ " *math/rand.runtimeSource " ))))),
258258 std::make_tuple(
259259 kTestGoBinaryPath ,
260260 UnorderedElementsAre (
@@ -263,20 +263,28 @@ INSTANTIATE_TEST_SUITE_P(
263263 Field (&IntfImplTypeInfo::type_name, " main.IntStruct" ),
264264 Field(&IntfImplTypeInfo::type_name, " *errors.errorString" ),
265265 Field(&IntfImplTypeInfo::type_name, " *io/fs.PathError" ),
266+ Field(&IntfImplTypeInfo::type_name, " *os.SyscallError" ),
267+ Field(&IntfImplTypeInfo::type_name, " runtime.errorString" ),
268+ Field(&IntfImplTypeInfo::type_name, " runtime.plainError" ),
269+ Field(&IntfImplTypeInfo::type_name, " syscall.Errno" ),
270+ Field(&IntfImplTypeInfo::type_name, " internal/poll.errNetClosing" ),
266271 Field(&IntfImplTypeInfo::type_name,
267272 " *internal/poll.DeadlineExceededError" ),
268- Field(&IntfImplTypeInfo::type_name, " internal/poll.errNetClosing" ),
269- Field(&IntfImplTypeInfo::type_name, " runtime.errorString" ),
270- Field(&IntfImplTypeInfo::type_name, " syscall.Errno" ))),
271- Pair(" sort.Interface" , UnorderedElementsAre(Field(&IntfImplTypeInfo::type_name,
272- " *internal/fmtsort.SortedMap" ))),
273+ Field(&IntfImplTypeInfo::type_name, " *internal/bisect.parseError" ))),
273274 Pair(" math/rand.Source" , UnorderedElementsAre(Field(&IntfImplTypeInfo::type_name,
274- " *math/rand.lockedSource" ))),
275+ " *math/rand.lockedSource" ),
276+ Field(&IntfImplTypeInfo::type_name,
277+ " *math/rand.runtimeSource" ))),
278+ Pair(" math/rand.Source64" , UnorderedElementsAre(Field(&IntfImplTypeInfo::type_name,
279+ " *math/rand.runtimeSource" ))),
280+ Pair(" internal/bisect.Writer" ,
281+ UnorderedElementsAre (Field(&IntfImplTypeInfo::type_name,
282+ " *internal/godebug.runtimeStderr" ))),
275283 Pair(" io.Writer" ,
276284 UnorderedElementsAre (Field(&IntfImplTypeInfo::type_name, " *os.File" ))),
277285 Pair(" internal/reflectlite.Type" ,
278286 UnorderedElementsAre (Field(&IntfImplTypeInfo::type_name,
279- " * internal/reflectlite.rtype" ))),
287+ " internal/reflectlite.rtype" ))),
280288 Pair(" reflect.Type" ,
281289 UnorderedElementsAre (Field(&IntfImplTypeInfo::type_name, " *reflect.rtype" ))),
282290 Pair(" fmt.State" ,
0 commit comments