kernel_samsung_a53x/include/trace/events
Steven Rostedt (Google) edb46ef683 tracing/net_sched: Fix tracepoints that save qdisc_dev() as a string
[ Upstream commit 51270d573a8d9dd5afdc7934de97d66c0e14b5fd ]

I'm updating __assign_str() and will be removing the second parameter. To
make sure that it does not break anything, I make sure that it matches the
__string() field, as that is where the string is actually going to be
saved in. To make sure there's nothing that breaks, I added a WARN_ON() to
make sure that what was used in __string() is the same that is used in
__assign_str().

In doing this change, an error was triggered as __assign_str() now expects
the string passed in to be a char * value. I instead had the following
warning:

include/trace/events/qdisc.h: In function ‘trace_event_raw_event_qdisc_reset’:
include/trace/events/qdisc.h:91:35: error: passing argument 1 of 'strcmp' from incompatible pointer type [-Werror=incompatible-pointer-types]
   91 |                 __assign_str(dev, qdisc_dev(q));

That's because the qdisc_enqueue() and qdisc_reset() pass in qdisc_dev(q)
to __assign_str() and to __string(). But that function returns a pointer
to struct net_device and not a string.

It appears that these events are just saving the pointer as a string and
then reading it as a string as well.

Use qdisc_dev(q)->name to save the device instead.

Fixes: a34dac0b90552 ("net_sched: add tracepoints for qdisc_reset() and qdisc_destroy()")
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Reviewed-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-18 23:19:34 +01:00
..
9p.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
acme.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
afs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
alarmtimer.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
android_fs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
android_fs_template.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
asoc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
avc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bcache.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
block.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bpf_test_run.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bridge.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
btrfs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cachefiles.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cgroup.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
clk.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cma.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
compaction.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
context_tracking.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cpuhp.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
damon.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
devfreq.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
devlink.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dma_fence.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ems.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ems_debug.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
erofs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
error_report.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ext4.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exynos_devfreq.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
f2fs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fib.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fib6.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
filelock.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
filemap.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fs_dax.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fscache.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fsi.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fsi_master_aspeed.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fsi_master_ast_cf.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fsi_master_gpio.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
gpio.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
gpu_mem.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
host1x.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
huge_memory.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hwmon.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i2c.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ib_mad.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ib_umad.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
initcall.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel-sst.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_iommu.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_ish.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
io_uring.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
iocost.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
iommu.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ipi.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
irq.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
irq_matrix.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
iscsi.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
jbd2.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
kmem.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
kvm.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
kyber.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
libata.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lock.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mce.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mdio.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mem_bw.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
migrate.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mlxsw.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mmap.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mmc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mmflags.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
module.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
namei.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
napi.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nbd.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
neigh.h neighbor: tracing: Move pin6 inside CONFIG_IPV6=y section 2024-11-08 11:26:11 +01:00
net.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
net_probe_common.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nilfs2.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nmi.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
objagg.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
oom.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
page_isolation.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
page_pool.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
page_ref.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pagefault.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pagemap.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
percpu.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
power.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
power_cpu_migrate.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
preemptirq.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
printk.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pwc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pwm.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qdisc.h tracing/net_sched: Fix tracepoints that save qdisc_dev() as a string 2024-11-18 23:19:34 +01:00
qla.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qrtr.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rcu.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rdma.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rdma_core.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
regulator.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rpcgss.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rpcrdma.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rpm.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rseq.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rtc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rwmmio.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rxrpc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sched.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
scmi.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
scsi.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sctp.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
signal.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
siox.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
skb.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
smbus.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sock.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spmi.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sunrpc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sunvnet.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
swiotlb.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
syscalls.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
systrace.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
target.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
task.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tcp.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tegra_apb_dma.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
thermal.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
thermal_exynos.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
thermal_exynos_gpu.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
thermal_power_allocator.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
thp.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
timer.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tlb.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
udp.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ufs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ufs_exynos_perf.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
v4l2.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vb2.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vmscan.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vsock_virtio_transport_common.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
wbt.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
workqueue.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
writeback.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
xdp.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
xen.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00