Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\kunit\test-test.c Create Date:2022-07-28 06:39:12
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:TODO(brendanhiggins@google.com): replace the arrays that keep track of the* order of allocation and freeing with strict mocks using the IN_SEQUENCE macro* to assert allocation and freeing order when the feature becomes available.

Proto:static void kunit_resource_test_proper_free_ordering(struct kunit *test)

Type:void

Parameter:

TypeParameterName
struct kunit *test
266  ctx = priv
269  kunit_alloc_and_get_resource( & test, fake_resource_1_init, fake_resource_1_free, GFP_KERNEL, ctx)
280  KUNIT_EXPECT_EQ() - Sets an expectation that @left and @right are equal(test, allocate_order[0], 2)
281  KUNIT_EXPECT_EQ() - Sets an expectation that @left and @right are equal(test, allocate_order[1], 1)
283  kunit_cleanup( & test)
290  KUNIT_EXPECT_EQ() - Sets an expectation that @left and @right are equal(test, free_order[0], 1)
291  KUNIT_EXPECT_EQ() - Sets an expectation that @left and @right are equal(test, free_order[1], 2)