Revert "FROMGIT: BACKPORT: mm: update mark_victim tracepoints fields"
This reverts commit 050c668fef
.
Reason for revert: b/331214192
Signed-off-by: Carlos Galo <carlosgalo@google.com>
Change-Id: I64e551ef5114f602c3300ed576de61ab3332ffc2
This commit is contained in:
@@ -72,30 +72,19 @@ TRACE_EVENT(reclaim_retry_zone,
|
|||||||
);
|
);
|
||||||
|
|
||||||
TRACE_EVENT(mark_victim,
|
TRACE_EVENT(mark_victim,
|
||||||
TP_PROTO(struct task_struct *task, uid_t uid),
|
TP_PROTO(int pid),
|
||||||
|
|
||||||
TP_ARGS(task, uid),
|
TP_ARGS(pid),
|
||||||
|
|
||||||
TP_STRUCT__entry(
|
TP_STRUCT__entry(
|
||||||
__field(int, pid)
|
__field(int, pid)
|
||||||
__field(uid_t, uid)
|
|
||||||
__string(comm, task->comm)
|
|
||||||
__field(short, oom_score_adj)
|
|
||||||
),
|
),
|
||||||
|
|
||||||
TP_fast_assign(
|
TP_fast_assign(
|
||||||
__entry->pid = task->pid;
|
__entry->pid = pid;
|
||||||
__entry->uid = uid;
|
|
||||||
__assign_str(comm, task->comm);
|
|
||||||
__entry->oom_score_adj = task->signal->oom_score_adj;
|
|
||||||
),
|
),
|
||||||
|
|
||||||
TP_printk("pid=%d uid=%u comm=%s oom_score_adj=%hd",
|
TP_printk("pid=%d", __entry->pid)
|
||||||
__entry->pid,
|
|
||||||
__entry->uid,
|
|
||||||
__get_str(comm),
|
|
||||||
__entry->oom_score_adj
|
|
||||||
)
|
|
||||||
);
|
);
|
||||||
|
|
||||||
TRACE_EVENT(wake_reaper,
|
TRACE_EVENT(wake_reaper,
|
||||||
|
@@ -44,7 +44,6 @@
|
|||||||
#include <linux/kthread.h>
|
#include <linux/kthread.h>
|
||||||
#include <linux/init.h>
|
#include <linux/init.h>
|
||||||
#include <linux/mmu_notifier.h>
|
#include <linux/mmu_notifier.h>
|
||||||
#include <linux/cred.h>
|
|
||||||
|
|
||||||
#include <asm/tlb.h>
|
#include <asm/tlb.h>
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
@@ -752,8 +751,6 @@ static void __mark_oom_victim(struct task_struct *tsk)
|
|||||||
*/
|
*/
|
||||||
static void mark_oom_victim(struct task_struct *tsk)
|
static void mark_oom_victim(struct task_struct *tsk)
|
||||||
{
|
{
|
||||||
const struct cred *cred;
|
|
||||||
|
|
||||||
WARN_ON(oom_killer_disabled);
|
WARN_ON(oom_killer_disabled);
|
||||||
/* OOM killer might race with memcg OOM */
|
/* OOM killer might race with memcg OOM */
|
||||||
if (test_and_set_tsk_thread_flag(tsk, TIF_MEMDIE))
|
if (test_and_set_tsk_thread_flag(tsk, TIF_MEMDIE))
|
||||||
@@ -770,9 +767,7 @@ static void mark_oom_victim(struct task_struct *tsk)
|
|||||||
*/
|
*/
|
||||||
__thaw_task(tsk);
|
__thaw_task(tsk);
|
||||||
atomic_inc(&oom_victims);
|
atomic_inc(&oom_victims);
|
||||||
cred = get_task_cred(tsk);
|
trace_mark_victim(tsk->pid);
|
||||||
trace_mark_victim(tsk, cred->uid.val);
|
|
||||||
put_cred(cred);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user