Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(140)

Issue 1079009: Vboot Reference: Add kernel image verification benchmark. (Closed)

Created:
10 years, 9 months ago by gauravsh
Modified:
9 years, 6 months ago
Reviewers:
petkov
CC:
chromium-os-reviews_chromium.org, gauravsh
Visibility:
Public.

Description

Vboot Reference: Add kernel image verification benchmark. Refactor duplicate code for the firmware image benchmark. Also fixes some functions that manipulate kernel blobs (use uint64_t instead if int).

Patch Set 1 #

Patch Set 2 : Add comment explaining fewer repetitions in kernel_verify_benchmark. #

Total comments: 12

Patch Set 3 : Review fixes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+272 lines, -82 lines) Patch
M src/platform/vboot_reference/include/kernel_image.h View 1 chunk +1 line, -1 line 0 comments Download
M src/platform/vboot_reference/tests/Makefile View 3 chunks +5 lines, -0 lines 0 comments Download
M src/platform/vboot_reference/tests/firmware_verify_benchmark.c View 1 2 5 chunks +49 lines, -77 lines 0 comments Download
M src/platform/vboot_reference/tests/kernel_image_tests.c View 2 chunks +2 lines, -2 lines 0 comments Download
A src/platform/vboot_reference/tests/kernel_verify_benchmark.c View 1 2 1 chunk +213 lines, -0 lines 0 comments Download
M src/platform/vboot_reference/utils/kernel_image.c View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
gauravsh
10 years, 9 months ago (2010-03-23 00:02:14 UTC) #1
petkov
LGTM w/ a few nits... verify_kernel and verify_firmware sources seem very similar. Can't you share ...
10 years, 9 months ago (2010-03-23 00:25:24 UTC) #2
gauravsh
10 years, 9 months ago (2010-03-23 00:46:49 UTC) #3
As for sharing more code, I can't think of anything in particular that could be
shared - they work similarly but there are differences in the way test case
generation (and timing of the verification operation) for firmware and kernel
images. 

In any case, I will try to think of ways this could be refactored, maybe by
combining them into a single test (since it's firmware + kernel verification
time we actually care about). That's a separate CL though.

http://codereview.chromium.org/1079009/diff/3001/4003
File src/platform/vboot_reference/tests/firmware_verify_benchmark.c (right):

http://codereview.chromium.org/1079009/diff/3001/4003#newcode24
src/platform/vboot_reference/tests/firmware_verify_benchmark.c:24: uint64_t
g_firmware_sizes_to_test[] = {
On 2010/03/23 00:25:24, petkov wrote:
> const?

Done.

http://codereview.chromium.org/1079009/diff/3001/4003#newcode29
src/platform/vboot_reference/tests/firmware_verify_benchmark.c:29: char*
g_firmware_size_labels[] = {
On 2010/03/23 00:25:24, petkov wrote:
> const?
> 
Done.

http://codereview.chromium.org/1079009/diff/3001/4003#newcode34
src/platform/vboot_reference/tests/firmware_verify_benchmark.c:34: #define
NUM_SIZES_TO_TEST (sizeof(g_firmware_sizes_to_test)/ \
On 2010/03/23 00:25:24, petkov wrote:
> space before /

Done.

http://codereview.chromium.org/1079009/diff/3001/4005
File src/platform/vboot_reference/tests/kernel_verify_benchmark.c (right):

http://codereview.chromium.org/1079009/diff/3001/4005#newcode30
src/platform/vboot_reference/tests/kernel_verify_benchmark.c:30: uint64_t
g_kernel_sizes_to_test[] = {
On 2010/03/23 00:25:24, petkov wrote:
> const?
> 
Done.

http://codereview.chromium.org/1079009/diff/3001/4005#newcode35
src/platform/vboot_reference/tests/kernel_verify_benchmark.c:35: char*
g_kernel_size_labels[] = {
On 2010/03/23 00:25:24, petkov wrote:
> const?
> 

Done.

http://codereview.chromium.org/1079009/diff/3001/4005#newcode40
src/platform/vboot_reference/tests/kernel_verify_benchmark.c:40: #define
NUM_SIZES_TO_TEST (sizeof(g_kernel_sizes_to_test)/ \
On 2010/03/23 00:25:24, petkov wrote:
> space before /

Done.

Powered by Google App Engine
This is Rietveld 408576698