Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
GorgonMeducer committed Oct 19, 2023
1 parent f6bf640 commit bacf4c4
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 10 deletions.
Binary file modified cmsis-pack/GorgonMeducer.perf_counter.2.2.4.pack
Binary file not shown.
Binary file modified lib/libperf_counter_gcc.a
Binary file not shown.
11 changes: 6 additions & 5 deletions lib/perf_counter.h
Original file line number Diff line number Diff line change
Expand Up @@ -825,15 +825,16 @@ extern int64_t __stop_task_cycle_counter(task_cycle_info_t *ptInfo);
__stop_task_cycle_counter((NULL,##__VA_ARGS__))

#elif !defined(__IMPLEMENT_PERF_COUNTER)
# define start_task_cycle_counter(...) start_cycle_counter()
# define stop_task_cycle_counter(...) stop_cycle_counter()
# define start_task_cycle_counter(...) start_cycle_counter()
# define stop_task_cycle_counter(...) stop_cycle_counter()
# define init_task_cycle_counter()
# define register_task_cycle_agent(...)
# define unregister_task_cycle_agent(...)
# define init_task_cycle_info(...) (NULL)
# define enable_task_cycle_info(...) (false)
# define disable_task_cycle_info(...) (false)
# define init_task_cycle_info(...) (NULL)
# define enable_task_cycle_info(...) (false)
# define disable_task_cycle_info(...) (false)
# define resume_task_cycle_info(...)
# define perfc_check_task_stack_canary_safe() (false)
#endif

/*! @} */
Expand Down
Binary file modified lib/perf_counter.lib
Binary file not shown.
11 changes: 6 additions & 5 deletions perf_counter.h
Original file line number Diff line number Diff line change
Expand Up @@ -825,15 +825,16 @@ extern int64_t __stop_task_cycle_counter(task_cycle_info_t *ptInfo);
__stop_task_cycle_counter((NULL,##__VA_ARGS__))

#elif !defined(__IMPLEMENT_PERF_COUNTER)
# define start_task_cycle_counter(...) start_cycle_counter()
# define stop_task_cycle_counter(...) stop_cycle_counter()
# define start_task_cycle_counter(...) start_cycle_counter()
# define stop_task_cycle_counter(...) stop_cycle_counter()
# define init_task_cycle_counter()
# define register_task_cycle_agent(...)
# define unregister_task_cycle_agent(...)
# define init_task_cycle_info(...) (NULL)
# define enable_task_cycle_info(...) (false)
# define disable_task_cycle_info(...) (false)
# define init_task_cycle_info(...) (NULL)
# define enable_task_cycle_info(...) (false)
# define disable_task_cycle_info(...) (false)
# define resume_task_cycle_info(...)
# define perfc_check_task_stack_canary_safe() (false)
#endif

/*! @} */
Expand Down

0 comments on commit bacf4c4

Please sign in to comment.