android_kernel_sony_sdm845/kernel/trace
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Tejun Heo c782c1f3ec BACKPORT: cgroup: use cgrp->kn->id as the cgroup ID
cgroup ID is currently allocated using a dedicated per-hierarchy idr
and used internally and exposed through tracepoints and bpf.  This is
confusing because there are tracepoints and other interfaces which use
the cgroupfs ino as IDs.

The preceding changes made kn->id exposed as ino as 64bit ino on
supported archs or ino+gen (low 32bits as ino, high gen).  There's no
reason for cgroup to use different IDs.  The kernfs IDs are unique and
userland can easily discover them and map them back to paths using
standard file operations.

This patch replaces cgroup IDs with kernfs IDs.

* cgroup_id() is added and all cgroup ID users are converted to use it.

* kernfs_node creation is moved to earlier during cgroup init so that
  cgroup_id() is available during init.

* While at it, s/cgroup/cgrp/ in psi helpers for consistency.

* Fallback ID value is changed to 1 to be consistent with root cgroup
  ID.

Change-Id: Iab2ee05e4e75671c3ee6799e7e2b3358394fec66
Signed-off-by: Tejun Heo <tj@kernel.org>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Sorayukii <sorayukii69@gmail.com>
2026-05-15 18:02:34 +07:00
..
blktrace.c BACKPORT: cgroup: use cgrp->kn->id as the cgroup ID 2026-05-15 18:02:34 +07:00
bpf_trace.c BACKPORT: bpf: Allow specifying a BTF ID per argument in function protos 2026-05-15 17:59:31 +07:00
ftrace.c UPSTREAM: ftrace: Add modify_ftrace_direct() 2026-05-15 17:59:19 +07:00
gpu-traces.c
ipc_logging.c
ipc_logging_debug.c
ipc_logging_private.h
Kconfig UPSTREAM: ftrace: Add register_ftrace_direct() 2026-05-15 17:59:19 +07:00
Makefile
msm_rtb.c
power-traces.c
ring_buffer.c ring_buffer: Do not deactivate non-existant pages 2022-11-25 17:35:40 +01:00
ring_buffer_benchmark.c
rpm-traces.c
trace.c Merge branch 'android-4.9-q' of https://android.googlesource.com/kernel/common into lineage-20 2023-01-19 15:42:12 +01:00
trace.h Merge remote-tracking branch 'common/android-4.9-q' into lineage-18.1-caf-sdm845 2021-12-27 02:07:39 +02:00
trace_benchmark.c
trace_benchmark.h
trace_branch.c
trace_clock.c tracing: Do no increment trace_clock_global() by one 2021-06-30 08:49:17 -04:00
trace_cpu_freq_switch.c
trace_entries.h tracing: Set kernel_stack's caller size properly 2020-10-01 20:40:05 +02:00
trace_event_perf.c UPSTREAM: perf/ftrace: Small cleanup 2026-05-15 17:59:19 +07:00
trace_events.c Merge remote-tracking branch 'common/android-4.9-q' into lineage-18.1-caf-sdm845 2021-12-27 02:07:39 +02:00
trace_events_filter.c
trace_events_filter_test.h
trace_events_hist.c tracing: Do not reference char * as a string in histograms 2021-07-20 16:21:11 +02:00
trace_events_trigger.c tracing: Fix event trigger to accept redundant spaces 2020-06-30 15:38:45 -04:00
trace_export.c
trace_functions.c tracing: Have all levels of checks prevent recursion 2021-10-27 09:34:01 +02:00
trace_functions_graph.c
trace_hwlat.c tracing/hwlat: Honor the tracing_cpumask 2020-08-26 10:29:03 +02:00
trace_irqsoff.c
trace_kdb.c tracing: Silence GCC 9 array bounds warning 2019-07-10 09:55:28 +02:00
trace_kprobe.c UPSTREAM: bpf: introduce bpf subcommand BPF_TASK_FD_QUERY 2026-05-15 17:56:33 +07:00
trace_mmiotrace.c
trace_nop.c
trace_output.c UPSTREAM: trace: add variant without spacing in trace_print_hex_seq 2026-05-15 17:54:49 +07:00
trace_output.h
trace_printk.c
trace_probe.c
trace_probe.h BACKPORT: bpf: add a bpf_override_function helper 2026-05-15 17:55:59 +07:00
trace_sched_switch.c
trace_sched_wakeup.c kernel/trace: Fix do not unregister tracepoints when register sched_migrate_task fail 2020-01-14 20:04:26 +01:00
trace_selftest.c ftrace: Handle tracing when switching between context 2020-11-10 10:24:02 +01:00
trace_selftest_dynamic.c
trace_seq.c
trace_stack.c tracing: Have stack tracer compile when MCOUNT_INSN_SIZE is not defined 2020-01-14 20:04:26 +01:00
trace_stat.c tracing: Fix very unlikely race of registering two stat tracers 2020-02-28 15:42:21 +01:00
trace_stat.h
trace_syscalls.c UPSTREAM: perf/bpf: fix a clang compilation issue 2026-05-15 17:55:22 +07:00
trace_uprobe.c UPSTREAM: bpf: introduce bpf subcommand BPF_TASK_FD_QUERY 2026-05-15 17:56:33 +07:00
tracing_map.c BACKPORT: atomics/treewide: Rename __atomic_add_unless() => atomic_fetch_add_unless() 2026-05-15 17:56:39 +07:00
tracing_map.h