Arnd Bergmann
db94cb8782
tracing: always define trace_{irq,preempt}_{enable_disable}
...
We get a build error in the irqsoff tracer in some configurations:
kernel/trace/trace_irqsoff.c: In function 'trace_preempt_on':
kernel/trace/trace_irqsoff.c:855:2: error: implicit declaration of function 'trace_preempt_enable_rcuidle'; did you mean 'trace_irq_enable_rcuidle'? [-Werror=implicit-function-declaration]
trace_preempt_enable_rcuidle(a0, a1);
The problem is that trace_preempt_enable_rcuidle() has different
definition based on multiple Kconfig symbols, but not all combinations
have a valid definition.
This changes the conditions so that we always get exactly one
definition of each of the four tracing macros. I have not tried
to verify that these definitions are sensible, but now we
can build all randconfig combinations again.
Link: http://lkml.kernel.org/r/20171019083230.2450779-1-arnd@arndb.de
Change-Id: I6220ade69ab894721ce9f737a634ac6cc15c16e7
Fixes: d59158162e03 ("tracing: Add support for preempt and irq enable/disable events")
Acked-by: Joel Fernandes <joelaf@google.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Git-commit: 250d0c7754aa37c6443f07f1f5f591e2806295d8
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
2018-04-23 19:04:47 +05:30
..
9p.h
net/9p/tracing: Export enums in tracepoints to userspace
2015-04-08 09:39:59 -04:00
almk.h
lowmemorykiller: adapt to vmpressure
2017-07-20 14:15:21 +05:30
android_fs.h
ANDROID: Refactor fs readpage/write tracepoints.
2017-02-10 14:28:25 -08:00
android_fs_template.h
ANDROID: Replace spaces by '_' for some android filesystem tracepoints.
2017-03-13 21:12:37 +00:00
asoc.h
ASoC: trace: fix printing jack name
2016-02-26 10:52:48 +09:00
bcache.h
block: rename bio bi_rw to bi_opf
2016-08-07 14:41:02 -06:00
block.h
block: rename bio bi_rw to bi_opf
2016-08-07 14:41:02 -06:00
btrfs.h
btrfs: fix crash when tracepoint arguments are freed by wq callbacks
2017-01-19 20:18:02 +01:00
cgroup.h
cgroup: add tracepoints for basic operations
2016-08-10 11:23:44 -04:00
clk.h
Merge android-4.9.84 ( a9d0273) into msm-4.9
2018-03-19 04:18:31 -07:00
cma.h
mm: cma: add trace events for CMA alloc perf testing
2017-03-29 12:50:42 -07:00
compaction.h
mm, compaction: rename COMPACT_PARTIAL to COMPACT_SUCCESS
2016-10-07 18:46:27 -07:00
context_tracking.h
cpufreq_interactive.h
cpufreq: interactive: Use load prediction provided by scheduler
2017-03-20 12:16:13 -07:00
cpufreq_sched.h
ANDROID: sched/cpufreq_sched: add trace events
2017-01-31 10:46:32 -08:00
cpuhp.h
cpu/hotplug: Add cpuhp_latency trace event
2017-10-17 00:24:43 -07:00
devlink.h
devlink: fix trace format string
2016-07-14 22:16:05 -07:00
exception.h
coresight: abort coresight tracing on kernel crash
2017-08-30 16:50:09 -07:00
ext4.h
don't bother with ->d_inode->i_sb - it's always equal to ->d_sb
2016-04-10 17:11:51 -04:00
f2fs.h
f2fs: updates on v4.16-rc1
2018-02-22 19:19:04 +00:00
fence.h
tracing/dma-buf/fence: Fix timeline str value on fence_annotate_wait_on
2016-01-25 11:03:17 -05:00
fib.h
net: Make table id type u32
2015-09-01 14:32:44 -07:00
fib6.h
ipv6, trace: fix tos reporting on fib6_table_lookup
2016-03-20 13:44:34 -04:00
filelock.h
locks: sprinkle some tracepoints around the file locking code
2016-01-08 11:38:13 -05:00
filemap.h
tracing, mm: Record pfn instead of pointer to struct page
2015-04-13 11:44:52 -03:00
gpio.h
tracing: gpio: Add Kconfig option for enabling/disabling trace events
2015-10-20 21:56:10 -04:00
gpu.h
ANDROID: trace/events: fix gpu event timestamp formatting
2017-01-27 13:51:41 -08:00
host1x.h
gpu: host1x: Use struct host1x_bo pointers in traces
2014-11-13 16:11:32 +01:00
hswadsp.h
Merge remote-tracking branches 'asoc/topic/ml26124', 'asoc/topic/of', 'asoc/topic/omap', 'asoc/topic/pxa' and 'asoc/topic/rcar' into asoc-next
2014-03-12 23:04:35 +00:00
huge_memory.h
mm, thp: convert from optimistic swapin collapsing to conservative
2016-07-26 16:19:19 -07:00
i2c.h
i2c: Add message transfer tracepoints for SMBUS [ver #2 ]
2014-03-13 22:15:07 +01:00
intel-sst.h
tracing: Add TRACE_SYSTEM_VAR to intel-sst
2015-04-07 12:31:12 -04:00
intel_ish.h
HID: intel-ish-hid: ipc layer
2016-08-17 11:13:07 +02:00
iommu.h
iommu: arm-smmu: modify iommu_errata_tlbi trace events
2017-11-20 15:03:18 +05:30
ipi.h
tracepoint: add generic tracepoint definitions for IPI tracing
2014-08-07 20:40:40 -04:00
irq.h
irq: Fix typo in tracepoint.xml
2016-09-29 10:03:38 +02:00
jbd2.h
kmem.h
ion: add snapshot of ion support for MSM
2016-11-03 12:43:03 -07:00
kvm.h
KVM: Fix stack-out-of-bounds read in write_mmio
2018-01-17 09:38:49 +01:00
libata.h
ata: Handle ATA NCQ NO-DATA commands correctly
2016-07-15 08:08:13 -04:00
lmh.h
thermal: lmh-dcvsh: Notify and trace the hardware frequency limit
2017-05-05 16:49:35 -06:00
lock.h
mce.h
x86/mce/AMD: Save MCA_IPID in MCE struct on SMCA systems
2016-09-13 15:23:12 +02:00
migrate.h
mm: cma: add trace events for CMA alloc perf testing
2017-03-29 12:50:42 -07:00
mmc.h
mmc: sdhci-msm: Add tracepoints to enhance pm debugging
2017-04-07 17:27:15 -07:00
mmflags.h
mm, thp: remove __GFP_NORETRY from khugepaged and madvised allocations
2016-07-28 16:07:41 -07:00
module.h
tracing: %pF is only for function pointers
2015-03-25 08:57:22 -04:00
mpm.h
irqchip: mpm: Add trace support to get mpm wakeup timer value
2018-04-09 18:37:21 +05:30
msm_cam.h
msm: camera: Port msm-4.4 camera kernel on msm-4.9 kernel
2018-02-20 15:56:39 +05:30
msm_vidc.h
msm: vidc: Add new trace events
2017-08-21 19:16:27 +05:30
napi.h
net: fixup for tracepoint napi:napi_poll
2016-07-15 15:55:01 -07:00
net.h
ANDROID: trace: net: use %pK for kernel pointers
2017-01-27 13:56:00 -08:00
nilfs2.h
nilfs2: add tracepoints for analyzing reading and writing metadata files
2015-11-06 17:50:42 -08:00
nmi.h
oom.h
mm/oom_kill.c: add tracepoints for oom reaper-related events
2017-11-21 03:24:40 -08:00
page_isolation.h
mm/page_isolation: fix tracepoint to mirror check function behavior
2016-04-01 17:03:37 -05:00
page_ref.h
mm/page_ref: add tracepoint to track down page reference manipulation
2016-03-17 15:09:34 -07:00
pagemap.h
mm: pagemap: avoid unnecessary overhead when tracepoints are deactivated
2014-08-06 18:01:20 -07:00
pdc.h
drivers: irqchip: pdc: Add QTI SOC interrupt controller
2017-05-23 10:30:02 -06:00
power.h
soc: qcom: msm_performance: Remove deprecated cpufreq notifiers
2018-03-07 12:21:17 -08:00
power_cpu_migrate.h
preemptirq.h
tracing: always define trace_{irq,preempt}_{enable_disable}
2018-04-23 19:04:47 +05:30
printk.h
printk, tracing: Avoiding unneeded blank lines
2016-07-15 15:52:41 -04:00
process_reclaim.h
mm: process reclaim: vmpressure based process reclaim
2017-07-19 18:41:24 +05:30
random.h
tracing: %pF is only for function pointers
2015-03-25 08:57:22 -04:00
rcu.h
rcu: Enforce expedited-GP fairness via funnel wait queue
2016-03-31 13:34:08 -07:00
regulator.h
rpm.h
rpmh.h
drivers: mailbox: rpmh: update rpmh send message trace
2017-12-21 19:03:18 +05:30
rxrpc.h
rxrpc: Keep the call timeouts as ktimes rather than jiffies
2016-09-30 14:40:11 +01:00
sched.h
sched: Add trace point to track preemption disable callers
2018-04-21 15:47:14 +05:30
scm.h
drivers: soc: add snapshot of scm driver
2016-08-16 18:57:07 -07:00
scsi.h
scsi-trace: define ZBC_IN and ZBC_OUT
2016-04-11 16:57:09 -04:00
signal.h
skb.h
skb: printing port numbers with gso trace events
2017-07-04 22:35:33 -06:00
sock.h
spi.h
spmi.h
spmi: add command tracepoints for SPMI
2015-08-05 12:27:09 -07:00
sunrpc.h
SUNRPC: Fix tracepoint storage issues with svc_recv and svc_rqst_status
2017-11-30 08:39:07 +00:00
sunvnet.h
sunvnet: Add support for perf LDC event tracing
2016-02-07 14:13:05 -05:00
swiotlb.h
swiotlb: Add swiotlb=noforce debug option
2017-01-26 08:24:44 +01:00
syscalls.h
tracing: Add #undef to fix compile error
2017-03-18 19:14:29 +08:00
target.h
target: Minimize SCSI header #include directives
2015-06-02 08:03:25 -07:00
task.h
tracing: Don't make assumptions about length of string on task rename
2015-08-31 10:47:14 -04:00
thermal.h
drivers: thermal: Print thermal temperature trace for userspace query
2017-09-27 11:32:37 -06:00
thermal_power_allocator.h
thermal: consistently use int for temperatures
2015-08-03 23:15:50 +08:00
thermal_virtual.h
thermal: virtual-sensor: Add trace event for virtual sensor
2017-06-08 11:44:27 -06:00
thp.h
powerpc/thp: Add tracepoints to track hugepage invalidate
2014-08-13 18:20:42 +10:00
timer.h
tracing: Fix tick_stop tracepoint symbols for user export
2016-08-09 09:51:23 -04:00
tlb.h
tracing: Remove duplicate checks for online CPUs
2016-03-08 11:19:28 -05:00
trace_msm_bus.h
msm: msm_bus: Introduce support for RPMH
2016-10-26 10:40:46 -07:00
trace_msm_low_power.h
drivers: cpuidle: lpm-levels: Remove unused code
2017-11-23 12:37:26 +05:30
trace_msm_pil_event.h
soc: qcom: pil: Fix CONFIG_MSM_PIL not defined compile fail
2018-04-04 13:55:20 +08:00
trace_rpm_smd.h
soc: qcom: Add RPM SMD Driver
2017-11-30 15:29:02 +05:30
udp.h
ufs.h
scsi: ufs: fix the UFS command tracing events
2017-11-09 09:56:59 -08:00
v4l2.h
[media] media: videobuf2: Move timestamp to vb2_buffer
2015-12-18 13:53:31 -02:00
vb2.h
[media] media: videobuf2: Move timestamp to vb2_buffer
2015-12-18 13:53:31 -02:00
vmscan.h
mm, vmscan: show the number of skipped pages in mm_vmscan_lru_isolate
2017-09-08 14:33:15 +05:30
vsock_virtio_transport_common.h
VSOCK: Introduce virtio_vsock_common.ko
2016-08-02 02:57:29 +03:00
workqueue.h
writeback.h
mm: move vmscan writes and file write accounting to the node
2016-07-28 16:07:41 -07:00
xen.h
x86: expose number of page table levels on Kconfig level
2015-04-14 16:49:02 -07:00