mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-25 16:11:45 +00:00
tracing: Rename FTRACE_MAX_EVENT to TRACE_EVENT_TYPE_MAX
The name "ftrace" really refers to the function hook infrastructure. It is not about the trace_events. Rename the max trace_event type size to something more descriptive and appropriate. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
This commit is contained in:
parent
892c505aac
commit
609a740452
4 changed files with 7 additions and 7 deletions
|
@ -68,7 +68,7 @@ struct trace_entry {
|
||||||
int pid;
|
int pid;
|
||||||
};
|
};
|
||||||
|
|
||||||
#define FTRACE_MAX_EVENT \
|
#define TRACE_EVENT_TYPE_MAX \
|
||||||
((1 << (sizeof(((struct trace_entry *)0)->type) * 8)) - 1)
|
((1 << (sizeof(((struct trace_entry *)0)->type) * 8)) - 1)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -675,7 +675,7 @@ static int trace_search_list(struct list_head **list)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Did we used up all 65 thousand events??? */
|
/* Did we used up all 65 thousand events??? */
|
||||||
if ((last + 1) > FTRACE_MAX_EVENT)
|
if ((last + 1) > TRACE_EVENT_TYPE_MAX)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
*list = &e->list;
|
*list = &e->list;
|
||||||
|
@ -725,7 +725,7 @@ int register_trace_event(struct trace_event *event)
|
||||||
if (!event->type) {
|
if (!event->type) {
|
||||||
struct list_head *list = NULL;
|
struct list_head *list = NULL;
|
||||||
|
|
||||||
if (next_event_type > FTRACE_MAX_EVENT) {
|
if (next_event_type > TRACE_EVENT_TYPE_MAX) {
|
||||||
|
|
||||||
event->type = trace_search_list(&list);
|
event->type = trace_search_list(&list);
|
||||||
if (!event->type)
|
if (!event->type)
|
||||||
|
|
|
@ -55,10 +55,10 @@ void xs_init(pTHX)
|
||||||
|
|
||||||
INTERP my_perl;
|
INTERP my_perl;
|
||||||
|
|
||||||
#define FTRACE_MAX_EVENT \
|
#define TRACE_EVENT_TYPE_MAX \
|
||||||
((1 << (sizeof(unsigned short) * 8)) - 1)
|
((1 << (sizeof(unsigned short) * 8)) - 1)
|
||||||
|
|
||||||
static DECLARE_BITMAP(events_defined, FTRACE_MAX_EVENT);
|
static DECLARE_BITMAP(events_defined, TRACE_EVENT_TYPE_MAX);
|
||||||
|
|
||||||
extern struct scripting_context *scripting_context;
|
extern struct scripting_context *scripting_context;
|
||||||
|
|
||||||
|
|
|
@ -44,10 +44,10 @@
|
||||||
|
|
||||||
PyMODINIT_FUNC initperf_trace_context(void);
|
PyMODINIT_FUNC initperf_trace_context(void);
|
||||||
|
|
||||||
#define FTRACE_MAX_EVENT \
|
#define TRACE_EVENT_TYPE_MAX \
|
||||||
((1 << (sizeof(unsigned short) * 8)) - 1)
|
((1 << (sizeof(unsigned short) * 8)) - 1)
|
||||||
|
|
||||||
static DECLARE_BITMAP(events_defined, FTRACE_MAX_EVENT);
|
static DECLARE_BITMAP(events_defined, TRACE_EVENT_TYPE_MAX);
|
||||||
|
|
||||||
#define MAX_FIELDS 64
|
#define MAX_FIELDS 64
|
||||||
#define N_COMMON_FIELDS 7
|
#define N_COMMON_FIELDS 7
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue