Skip to content

Commit

Permalink
core-perf: add swiotlb perf event and bump event count up as we are r…
Browse files Browse the repository at this point in the history
…unning low

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
  • Loading branch information
ColinIanKing committed Feb 27, 2024
1 parent f7393f4 commit ac7908b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions core-perf.c
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,8 @@ static stress_perf_info_t perf_info[STRESS_PERF_MAX] = {
#if 1
PERF_INFO_TP("tlb/tlb_flush", "TLB Flushes"),
#endif
PERF_INFO_TP("swiotlb/swiotlb_bounced", "Software I/O TLB Bounces"),

PERF_INFO_TP("kmem/kmalloc", "Kmalloc"),
PERF_INFO_TP("kmem/kmalloc_node", "Kmalloc Node"),
PERF_INFO_TP("kmem/kfree", "Kfree"),
Expand Down
2 changes: 1 addition & 1 deletion core-perf.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
defined(__NR_perf_event_open)
#define STRESS_PERF_STATS (1)
#define STRESS_PERF_INVALID (~0ULL)
#define STRESS_PERF_MAX (128 + 16)
#define STRESS_PERF_MAX (128 + 32)

/* per perf counter info */
typedef struct {
Expand Down

0 comments on commit ac7908b

Please sign in to comment.