Skip to content

Commit 8773922

Browse files
hfxspbp3tk0v
authored andcommitted
x86/resctrl: Rename pseudo_lock_event.h to trace.h
Now only the pseudo-locking part uses tracepoints to do event tracking, but other parts of resctrl may need new tracepoints. It is unnecessary to create separate header files and define CREATE_TRACE_POINTS in different c files which fragments the resctrl tracing. Therefore, give the resctrl tracepoint header file a generic name to support its use for tracepoints that are not specific to pseudo-locking. No functional change. Suggested-by: Reinette Chatre <reinette.chatre@intel.com> Signed-off-by: Haifeng Xu <haifeng.xu@shopee.com> Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Reviewed-by: Reinette Chatre <reinette.chatre@intel.com> Link: https://lore.kernel.org/r/20240408092303.26413-2-haifeng.xu@shopee.com
1 parent bd4955d commit 8773922

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

arch/x86/kernel/cpu/resctrl/pseudo_lock.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
#include "internal.h"
3232

3333
#define CREATE_TRACE_POINTS
34-
#include "pseudo_lock_event.h"
34+
#include "trace.h"
3535

3636
/*
3737
* The bits needed to disable hardware prefetching varies based on the

arch/x86/kernel/cpu/resctrl/pseudo_lock_event.h renamed to arch/x86/kernel/cpu/resctrl/trace.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
#undef TRACE_SYSTEM
33
#define TRACE_SYSTEM resctrl
44

5-
#if !defined(_TRACE_PSEUDO_LOCK_H) || defined(TRACE_HEADER_MULTI_READ)
6-
#define _TRACE_PSEUDO_LOCK_H
5+
#if !defined(_TRACE_RESCTRL_H) || defined(TRACE_HEADER_MULTI_READ)
6+
#define _TRACE_RESCTRL_H
77

88
#include <linux/tracepoint.h>
99

@@ -35,9 +35,9 @@ TRACE_EVENT(pseudo_lock_l3,
3535
TP_printk("hits=%llu miss=%llu",
3636
__entry->l3_hits, __entry->l3_miss));
3737

38-
#endif /* _TRACE_PSEUDO_LOCK_H */
38+
#endif /* _TRACE_RESCTRL_H */
3939

4040
#undef TRACE_INCLUDE_PATH
4141
#define TRACE_INCLUDE_PATH .
42-
#define TRACE_INCLUDE_FILE pseudo_lock_event
42+
#define TRACE_INCLUDE_FILE trace
4343
#include <trace/define_trace.h>

0 commit comments

Comments
 (0)