Merge acb7500801 ("Merge tag 'trace-rv-v7.1-rc6-2' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace") into android-mainline
Steps on the way to v7.1-rc8 Change-Id: Id738bb2246a318f6efdc5433896fb8e0306f5ecf Signed-off-by: Carlos Llamas <cmllamas@google.com>
This commit is contained in:
commit
51706e724b
43 files changed
+602
-177
No files matched your search
@@ -95,7 +95,8 @@ static inline u8 get_server_type(struct task_struct *tsk)
|
||||
static inline int extract_params(struct pt_regs *regs, long id, pid_t *pid_out)
|
||||
{
|
||||
size_t size = offsetofend(struct sched_attr, sched_flags);
|
||||
struct sched_attr __user *uattr, attr;
|
||||
struct sched_attr __user *uattr;
|
||||
struct sched_attr attr;
|
||||
int new_policy = -1, ret;
|
||||
unsigned long args[6];
|
||||
|
||||
|
||||
@@ -227,7 +227,7 @@ static int enable_nomiss(void)
|
||||
{
|
||||
int retval;
|
||||
|
||||
retval = da_monitor_init();
|
||||
retval = ha_monitor_init();
|
||||
if (retval)
|
||||
return retval;
|
||||
|
||||
@@ -263,7 +263,7 @@ static void disable_nomiss(void)
|
||||
rv_detach_trace_probe("nomiss", sched_switch, handle_sched_switch);
|
||||
rv_detach_trace_probe("nomiss", sched_wakeup, handle_sched_wakeup);
|
||||
|
||||
da_monitor_destroy();
|
||||
ha_monitor_destroy();
|
||||
}
|
||||
|
||||
static struct rv_monitor rv_this = {
|
||||
|
||||
@@ -22,14 +22,8 @@ static u64 ha_get_env(struct ha_monitor *ha_mon, enum envs_opid env, u64 time_ns
|
||||
if (env == irq_off_opid)
|
||||
return irqs_disabled();
|
||||
else if (env == preempt_off_opid) {
|
||||
/*
|
||||
* If CONFIG_PREEMPTION is enabled, then the tracepoint itself disables
|
||||
* preemption (adding one to the preempt_count). Since we are
|
||||
* interested in the preempt_count at the time the tracepoint was
|
||||
* hit, we consider 1 as still enabled.
|
||||
*/
|
||||
if (IS_ENABLED(CONFIG_PREEMPTION))
|
||||
return (preempt_count() & PREEMPT_MASK) > 1;
|
||||
return (preempt_count() & PREEMPT_MASK) > 0;
|
||||
return true;
|
||||
}
|
||||
return ENV_INVALID_VALUE;
|
||||
@@ -73,7 +67,7 @@ static int enable_opid(void)
|
||||
{
|
||||
int retval;
|
||||
|
||||
retval = da_monitor_init();
|
||||
retval = ha_monitor_init();
|
||||
if (retval)
|
||||
return retval;
|
||||
|
||||
@@ -90,7 +84,7 @@ static void disable_opid(void)
|
||||
rv_detach_trace_probe("opid", sched_set_need_resched_tp, handle_sched_need_resched);
|
||||
rv_detach_trace_probe("opid", sched_waking, handle_sched_waking);
|
||||
|
||||
da_monitor_destroy();
|
||||
ha_monitor_destroy();
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -103,7 +103,7 @@ static int enable_stall(void)
|
||||
{
|
||||
int retval;
|
||||
|
||||
retval = da_monitor_init();
|
||||
retval = ha_monitor_init();
|
||||
if (retval)
|
||||
return retval;
|
||||
|
||||
@@ -120,7 +120,7 @@ static void disable_stall(void)
|
||||
rv_detach_trace_probe("stall", sched_switch, handle_sched_switch);
|
||||
rv_detach_trace_probe("stall", sched_wakeup, handle_sched_wakeup);
|
||||
|
||||
da_monitor_destroy();
|
||||
ha_monitor_destroy();
|
||||
}
|
||||
|
||||
static struct rv_monitor rv_this = {
|
||||
|
||||
Reference in new issue
Block a user