Skip to content

Commit

Permalink
stress-sigtrap: make t, duration static, aligned variable raised
Browse files Browse the repository at this point in the history
Making raised cached aligned improves performance by ~8-9%

Signed-off-by: Colin Ian King <[email protected]>
  • Loading branch information
ColinIanKing committed Dec 16, 2024
1 parent 5061f1f commit 21f0d3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stress-sigtrap.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ static const stress_help_t help[] = {
#if defined(SIGTRAP)

static uint64_t counter;
double t, duration;
static double t, duration;

static void MLOCKED_TEXT stress_sigtrap_handler(int num)
{
Expand All @@ -47,7 +47,7 @@ static void MLOCKED_TEXT stress_sigtrap_handler(int num)
*/
static int stress_sigtrap(stress_args_t *args)
{
uint64_t raised = 0;
uint64_t raised ALIGN64 = 0;
double rate = 0.0;

counter = 0;
Expand Down

0 comments on commit 21f0d3e

Please sign in to comment.