Files
threeeye bc1d038eac REVVL 6 Pro kernel bring-up: full working tree snapshot (2026-09-12)
Squashed backup commit (no shallow-clone history issues) of
xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream
commit 9eece662e) plus all fixes applied to get everpal_defconfig building
clean against a modern (GCC 15.2.0) toolchain -- see the previous commit
message on the lineage-23.2 branch (also in this repo history is not
available here since this is a squashed snapshot; full incremental history
lives in the local DL380 checkout and the upstream GitHub remote).

Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
2026-09-12 13:36:46 +00:00

130 lines
3.2 KiB
C

/*
* Copyright (C) 2019 MediaTek Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#undef TRACE_SYSTEM
#define TRACE_SYSTEM task_turbo
#if !defined(_TRACE_TASK_TURBO_H) || defined(TRACE_HEADER_MULTI_READ)
#define _TRACE_TASK_TURBO_H
#include <linux/sched.h>
#include <linux/types.h>
#include <linux/tracepoint.h>
TRACE_EVENT(turbo_set,
TP_PROTO(struct task_struct *p),
TP_ARGS(p),
TP_STRUCT__entry(
__field(pid_t, pid)
__field(int, prio)
__field(unsigned int, turbo)
),
TP_fast_assign(
__entry->pid = p->pid;
__entry->prio = p->prio;
__entry->turbo = p->turbo;
),
TP_printk("pid=%d prio=%d turbo=%d",
__entry->pid,
__entry->prio,
__entry->turbo)
);
TRACE_EVENT(turbo_inherit_start,
TP_PROTO(struct task_struct *from, struct task_struct *to),
TP_ARGS(from, to),
TP_STRUCT__entry(
__field(pid_t, fpid)
__field(int, fprio)
__field(unsigned int, f_turbo)
__field(unsigned int, f_inherit_types)
__field(int, tprio)
__field(unsigned int, t_turbo)
__field(unsigned int, t_inherit_types)
),
TP_fast_assign(
__entry->fpid = from->pid;
__entry->fprio = from->prio;
__entry->f_turbo = from->turbo;
__entry->f_inherit_types = atomic_read(&from->inherit_types);
__entry->tprio = to->prio;
__entry->t_turbo = to->turbo;
__entry->t_inherit_types = atomic_read(&to->inherit_types);
),
TP_printk("pid=%d prio=%d turbo=%d inh=%d => prio=%d turbo=%d inh=%d",
__entry->fpid,
__entry->fprio,
__entry->f_turbo,
__entry->f_inherit_types,
__entry->tprio,
__entry->t_turbo,
__entry->t_inherit_types)
);
TRACE_EVENT(turbo_inherit_end,
TP_PROTO(struct task_struct *p),
TP_ARGS(p),
TP_STRUCT__entry(
__field(pid_t, pid)
__field(int, prio)
__field(unsigned int, turbo)
__field(unsigned int, inherit_types)
),
TP_fast_assign(
__entry->pid = p->pid;
__entry->prio = p->prio;
__entry->turbo = p->turbo;
__entry->inherit_types = atomic_read(&p->inherit_types);
),
TP_printk("pid=%d prio=%d turbo=%d inherit_types=%d",
__entry->pid,
__entry->prio,
__entry->turbo,
__entry->inherit_types)
);
TRACE_EVENT(sched_turbo_nice_set,
TP_PROTO(struct task_struct *task, int old_prio, int new_prio),
TP_ARGS(task, old_prio, new_prio),
TP_STRUCT__entry(
__array(char, comm, TASK_COMM_LEN)
__field(int, pid)
__field(int, old_prio)
__field(int, new_prio)
),
TP_fast_assign(
memcpy(__entry->comm, task->comm, TASK_COMM_LEN);
__entry->pid = task->pid;
__entry->old_prio = old_prio;
__entry->new_prio = new_prio;
),
TP_printk("comm=%s pid=%d old_prio=%d new_prio=%d",
__entry->comm,
__entry->pid,
__entry->old_prio,
__entry->new_prio)
);
#endif /*_TRACE_TASK_TURBO_H */
#undef TRACE_INCLUDE_PATH
#undef TRACE_INCLUDE_FILE
#define TRACE_INCLUDE_PATH .
#define TRACE_INCLUDE_FILE trace_task_turbo
/* This part must be outside protection */
#include <trace/define_trace.h>