Skip to content

Commit

Permalink
remove attribute in prototype
Browse files Browse the repository at this point in the history
Avoid Clang complaining about different attributes.

Signed-off-by: Axel Heider <axel.heider@codasip.com>
  • Loading branch information
Axel Heider committed Apr 4, 2024
1 parent 23477c7 commit 1814369
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions libsel4bench/include/sel4bench/sel4bench.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,13 @@ static_assert(ARRAY_SIZE(GENERIC_EVENTS) == ARRAY_SIZE(GENERIC_EVENT_NAMES),
* Starts the cycle counter, which is guaranteed to run until
* `sel4bench_destroy()` is called.
*/
static UNUSED void sel4bench_init();
static void sel4bench_init();

/**
* Tear down the sel4bench library. Nothing else is guaranteed to work, and may
* produce strange failures, after you do this.
*/
static UNUSED void sel4bench_destroy();
static void sel4bench_destroy();

/**
* Query the cycle counter. If said counter needs starting, `sel4bench_init()`
Expand All @@ -92,7 +92,7 @@ static UNUSED void sel4bench_destroy();
*
* @return current cycle count
*/
static UNUSED ccnt_t sel4bench_get_cycle_count();
static ccnt_t sel4bench_get_cycle_count();

/**
* Query how many performance counters are supported on this CPU, excluding the
Expand All @@ -104,7 +104,7 @@ static UNUSED ccnt_t sel4bench_get_cycle_count();
* @return quantity of counters on this CPU
*/
static UNUSED seL4_Word sel4bench_get_num_counters();
static seL4_Word sel4bench_get_num_counters();

/**
* Query the description of a counter.
Expand All @@ -123,7 +123,7 @@ const char *sel4bench_get_counter_description(counter_t counter);
*
* @return counter value
*/
static UNUSED ccnt_t sel4bench_get_counter(counter_t counter);
static ccnt_t sel4bench_get_counter(counter_t counter);

/**
* Query the value of a set of counters.
Expand All @@ -138,8 +138,8 @@ static UNUSED ccnt_t sel4bench_get_counter(counter_t counter);
*
* @return current cycle count as in `sel4bench_get_cycle_count()`
*/
static UNUSED ccnt_t sel4bench_get_counters(counter_bitfield_t counters,
ccnt_t *values);
static ccnt_t sel4bench_get_counters(counter_bitfield_t counters,
ccnt_t *values);

/**
* Assign a counter to track a specific event. Events are processor-specific,
Expand All @@ -148,14 +148,14 @@ static UNUSED ccnt_t sel4bench_get_counters(counter_bitfield_t counters,
* @param counter counter to configure
* @param event event to track
*/
static UNUSED void sel4bench_set_count_event(counter_t counter, event_id_t id);
static void sel4bench_set_count_event(counter_t counter, event_id_t id);

/**
* Start counting events on a set of performance counters.
*
* @param counters bitfield indicating which counter(s) to start
*/
static UNUSED void sel4bench_start_counters(counter_bitfield_t counters);
static void sel4bench_start_counters(counter_bitfield_t counters);

/**
* Stop counting events on a set of performance counters.
Expand All @@ -164,14 +164,14 @@ static UNUSED void sel4bench_start_counters(counter_bitfield_t counters);
*
* @param counters bitfield indicating which counter(s) to stop
*/
static UNUSED void sel4bench_stop_counters(counter_bitfield_t counters);
static void sel4bench_stop_counters(counter_bitfield_t counters);

/**
* Reset all performance counters to zero. Note that the cycle counter is not a
* performance counter, and is not reset.
*
*/
static UNUSED void sel4bench_reset_counters(void);
static void sel4bench_reset_counters(void);

/**
* Query the number of benchmark loops required to read a given number of
Expand Down

0 comments on commit 1814369

Please sign in to comment.