TASK6: Dynamic memory time tests#111
Open
d-serj wants to merge 6 commits intoKernel-GL-HRK:Sergey.Dubynafrom
Open
TASK6: Dynamic memory time tests#111d-serj wants to merge 6 commits intoKernel-GL-HRK:Sergey.Dubynafrom
d-serj wants to merge 6 commits intoKernel-GL-HRK:Sergey.Dubynafrom
Conversation
d-serj
commented
Dec 9, 2021
- Userspace program to test and measure the time of allocation/freeing for functions: malloc, calloc, alloca.
- Kernel module to measure the time of allocation/freeing for functions: kmalloc, kzmalloc, vmalloc, get_free_pages.
Add home task for lection Basic Data structures Signed-off-by: Oleksandr Posukhov <oleksandr.posukhov@globallogic.com>
Add descriptions of tasks for lesson 5. Signed-off-by: Yevgen Kovalyov <ekovalyov@gmail.com>
Signed-off-by: d-serj <serj.dub1na@gmail.com>
…locations Signed-off-by: d-serj <serj.dub1na@gmail.com>
Signed-off-by: d-serj <serj.dub1na@gmail.com>
Author
|
kmemtime.c kernel module was checked by checkpatch.pl. |
ekovalyov
reviewed
Feb 10, 2022
| #include <asm/page.h> | ||
|
|
||
| /* Max n for 2^n to allocate the buffer */ | ||
| #define KMEMTIME_TESTS_MAX_N 10 |
Contributor
There was a problem hiding this comment.
Is it possible to allocate memory up to allocation error?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.