Changes in 4.9.142 usb: core: Fix hub port connection events lost usb: dwc3: core: Clean up ULPI device usb: xhci: fix timeout for transition from RExit to U0 MAINTAINERS: Add Sasha as a stable branch maintainer gpio: don't free unallocated ida on gpiochip_add_data_with_key() error path iwlwifi: mvm: support sta_statistics() even on older firmware iwlwifi: mvm: fix regulatory domain update when the firmware starts brcmfmac: fix reporting support for 160 MHz channels tools/power/cpupower: fix compilation with STATIC=true v9fs_dir_readdir: fix double-free on p9stat_read error selinux: Add __GFP_NOWARN to allocation at str_read() bfs: add sanity check at bfs_fill_super() sctp: clear the transport of some out_chunk_list chunks in sctp_assoc_rm_peer gfs2: Don't leave s_fs_info pointing to freed memory in init_sbd llc: do not use sk_eat_skb() mm: don't warn about large allocations for slab drm/ast: change resolution may cause screen blurred drm/ast: fixed cursor may disappear sometimes drm/ast: Remove existing framebuffers before loading driver can: dev: can_get_echo_skb(): factor out non sending code to __can_get_echo_skb() can: dev: __can_get_echo_skb(): replace struct can_frame by canfd_frame to access frame length can: dev: __can_get_echo_skb(): Don't crash the kernel if can_priv::echo_skb is accessed out of bounds can: dev: __can_get_echo_skb(): print error message, if trying to echo non existing skb IB/core: Fix for core panic IB/hfi1: Eliminate races in the SDMA send error path usb: xhci: Prevent bus suspend if a port connect change or polling state is detected pinctrl: meson: fix pinconf bias disable KVM: PPC: Move and undef TRACE_INCLUDE_PATH/FILE cpufreq: imx6q: add return value check for voltage scale rtc: pcf2127: fix a kmemleak caused in pcf2127_i2c_gather_write floppy: fix race condition in __floppy_read_block_0() powerpc/io: Fix the IO workarounds code to work with Radix perf/x86/intel/uncore: Add more IMC PCI IDs for KabyLake and CoffeeLake CPUs SUNRPC: Fix a bogus get/put in generic_key_to_expire() kdb: Use strscpy with destination buffer size powerpc/numa: Suppress "VPHN is not supported" messages efi/arm: Revert deferred unmap of early memmap mapping tmpfs: make lseek(SEEK_DATA/SEK_HOLE) return ENXIO with a negative offset of: add helper to lookup compatible child node NFC: nfcmrvl_uart: fix OF child-node lookup net: bcmgenet: fix OF child-node lookup arm64: remove no-op -p linker flag ath10k: fix kernel panic due to race in accessing arvif list Input: xpad - add product ID for Xbox One S pad Input: xpad - fix Xbox One rumble stopping after 2.5 secs Input: xpad - correctly sort vendor id's Input: xpad - move reporting xbox one home button to common function Input: xpad - simplify error condition in init_output Input: xpad - don't depend on endpoint order Input: xpad - fix stuck mode button on Xbox One S pad Input: xpad - restore LED state after device resume Input: xpad - support some quirky Xbox One pads Input: xpad - sort supported devices by USB ID Input: xpad - sync supported devices with xboxdrv Input: xpad - add USB IDs for Mad Catz Brawlstick and Razer Sabertooth Input: xpad - sync supported devices with 360Controller Input: xpad - sync supported devices with XBCD Input: xpad - constify usb_device_id Input: xpad - fix PowerA init quirk for some gamepad models Input: xpad - validate USB endpoint type during probe Input: xpad - add support for PDP Xbox One controllers Input: xpad - add PDP device id 0x02a4 Input: xpad - fix some coding style issues Input: xpad - avoid using __set_bit() for capabilities Input: xpad - add GPD Win 2 Controller USB IDs Input: xpad - fix GPD Win 2 controller name Input: xpad - add support for Xbox1 PDP Camo series gamepad cw1200: Don't leak memory if krealloc failes mwifiex: prevent register accesses after host is sleeping mwifiex: report error to PCIe for suspend failure mwifiex: Fix NULL pointer dereference in skb_dequeue() mwifiex: fix p2p device doesn't find in scan problem scsi: ufs: fix bugs related to null pointer access and array size scsi: ufshcd: Fix race between clk scaling and ungate work scsi: ufs: fix race between clock gating and devfreq scaling work scsi: ufshcd: release resources if probe fails include/linux/pfn_t.h: force '~' to be parsed as an unary operator tty: wipe buffer. tty: wipe buffer if not echoing data usb: xhci: fix uninitialized completion when USB3 port got wrong status sched/core: Allow __sched_setscheduler() in interrupts when PI is not used namei: allow restricted O_CREAT of FIFOs and regular files lan78xx: Read MAC address from DT if present s390/mm: Check for valid vma before zapping in gmap_discard net: ieee802154: 6lowpan: fix frag reassembly Revert "evm: Translate user/group ids relative to s_user_ns when computing HMAC" ima: always measure and audit files in policy EVM: Add support for portable signature format ima: re-introduce own integrity cache lock ima: re-initialize iint->atomic_flags Linux 4.9.142 Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
280 lines
6.5 KiB
C
280 lines
6.5 KiB
C
|
|
#if !defined(_TRACE_KVM_PR_H) || defined(TRACE_HEADER_MULTI_READ)
|
|
#define _TRACE_KVM_PR_H
|
|
|
|
#include <linux/tracepoint.h>
|
|
#include "trace_book3s.h"
|
|
|
|
#undef TRACE_SYSTEM
|
|
#define TRACE_SYSTEM kvm_pr
|
|
|
|
TRACE_EVENT(kvm_book3s_reenter,
|
|
TP_PROTO(int r, struct kvm_vcpu *vcpu),
|
|
TP_ARGS(r, vcpu),
|
|
|
|
TP_STRUCT__entry(
|
|
__field( unsigned int, r )
|
|
__field( unsigned long, pc )
|
|
),
|
|
|
|
TP_fast_assign(
|
|
__entry->r = r;
|
|
__entry->pc = kvmppc_get_pc(vcpu);
|
|
),
|
|
|
|
TP_printk("reentry r=%d | pc=0x%lx", __entry->r, __entry->pc)
|
|
);
|
|
|
|
#ifdef CONFIG_PPC_BOOK3S_64
|
|
|
|
TRACE_EVENT(kvm_book3s_64_mmu_map,
|
|
TP_PROTO(int rflags, ulong hpteg, ulong va, kvm_pfn_t hpaddr,
|
|
struct kvmppc_pte *orig_pte),
|
|
TP_ARGS(rflags, hpteg, va, hpaddr, orig_pte),
|
|
|
|
TP_STRUCT__entry(
|
|
__field( unsigned char, flag_w )
|
|
__field( unsigned char, flag_x )
|
|
__field( unsigned long, eaddr )
|
|
__field( unsigned long, hpteg )
|
|
__field( unsigned long, va )
|
|
__field( unsigned long long, vpage )
|
|
__field( unsigned long, hpaddr )
|
|
),
|
|
|
|
TP_fast_assign(
|
|
__entry->flag_w = ((rflags & HPTE_R_PP) == 3) ? '-' : 'w';
|
|
__entry->flag_x = (rflags & HPTE_R_N) ? '-' : 'x';
|
|
__entry->eaddr = orig_pte->eaddr;
|
|
__entry->hpteg = hpteg;
|
|
__entry->va = va;
|
|
__entry->vpage = orig_pte->vpage;
|
|
__entry->hpaddr = hpaddr;
|
|
),
|
|
|
|
TP_printk("KVM: %c%c Map 0x%lx: [%lx] 0x%lx (0x%llx) -> %lx",
|
|
__entry->flag_w, __entry->flag_x, __entry->eaddr,
|
|
__entry->hpteg, __entry->va, __entry->vpage, __entry->hpaddr)
|
|
);
|
|
|
|
#endif /* CONFIG_PPC_BOOK3S_64 */
|
|
|
|
TRACE_EVENT(kvm_book3s_mmu_map,
|
|
TP_PROTO(struct hpte_cache *pte),
|
|
TP_ARGS(pte),
|
|
|
|
TP_STRUCT__entry(
|
|
__field( u64, host_vpn )
|
|
__field( u64, pfn )
|
|
__field( ulong, eaddr )
|
|
__field( u64, vpage )
|
|
__field( ulong, raddr )
|
|
__field( int, flags )
|
|
),
|
|
|
|
TP_fast_assign(
|
|
__entry->host_vpn = pte->host_vpn;
|
|
__entry->pfn = pte->pfn;
|
|
__entry->eaddr = pte->pte.eaddr;
|
|
__entry->vpage = pte->pte.vpage;
|
|
__entry->raddr = pte->pte.raddr;
|
|
__entry->flags = (pte->pte.may_read ? 0x4 : 0) |
|
|
(pte->pte.may_write ? 0x2 : 0) |
|
|
(pte->pte.may_execute ? 0x1 : 0);
|
|
),
|
|
|
|
TP_printk("Map: hvpn=%llx pfn=%llx ea=%lx vp=%llx ra=%lx [%x]",
|
|
__entry->host_vpn, __entry->pfn, __entry->eaddr,
|
|
__entry->vpage, __entry->raddr, __entry->flags)
|
|
);
|
|
|
|
TRACE_EVENT(kvm_book3s_mmu_invalidate,
|
|
TP_PROTO(struct hpte_cache *pte),
|
|
TP_ARGS(pte),
|
|
|
|
TP_STRUCT__entry(
|
|
__field( u64, host_vpn )
|
|
__field( u64, pfn )
|
|
__field( ulong, eaddr )
|
|
__field( u64, vpage )
|
|
__field( ulong, raddr )
|
|
__field( int, flags )
|
|
),
|
|
|
|
TP_fast_assign(
|
|
__entry->host_vpn = pte->host_vpn;
|
|
__entry->pfn = pte->pfn;
|
|
__entry->eaddr = pte->pte.eaddr;
|
|
__entry->vpage = pte->pte.vpage;
|
|
__entry->raddr = pte->pte.raddr;
|
|
__entry->flags = (pte->pte.may_read ? 0x4 : 0) |
|
|
(pte->pte.may_write ? 0x2 : 0) |
|
|
(pte->pte.may_execute ? 0x1 : 0);
|
|
),
|
|
|
|
TP_printk("Flush: hva=%llx pfn=%llx ea=%lx vp=%llx ra=%lx [%x]",
|
|
__entry->host_vpn, __entry->pfn, __entry->eaddr,
|
|
__entry->vpage, __entry->raddr, __entry->flags)
|
|
);
|
|
|
|
TRACE_EVENT(kvm_book3s_mmu_flush,
|
|
TP_PROTO(const char *type, struct kvm_vcpu *vcpu, unsigned long long p1,
|
|
unsigned long long p2),
|
|
TP_ARGS(type, vcpu, p1, p2),
|
|
|
|
TP_STRUCT__entry(
|
|
__field( int, count )
|
|
__field( unsigned long long, p1 )
|
|
__field( unsigned long long, p2 )
|
|
__field( const char *, type )
|
|
),
|
|
|
|
TP_fast_assign(
|
|
__entry->count = to_book3s(vcpu)->hpte_cache_count;
|
|
__entry->p1 = p1;
|
|
__entry->p2 = p2;
|
|
__entry->type = type;
|
|
),
|
|
|
|
TP_printk("Flush %d %sPTEs: %llx - %llx",
|
|
__entry->count, __entry->type, __entry->p1, __entry->p2)
|
|
);
|
|
|
|
TRACE_EVENT(kvm_book3s_slb_found,
|
|
TP_PROTO(unsigned long long gvsid, unsigned long long hvsid),
|
|
TP_ARGS(gvsid, hvsid),
|
|
|
|
TP_STRUCT__entry(
|
|
__field( unsigned long long, gvsid )
|
|
__field( unsigned long long, hvsid )
|
|
),
|
|
|
|
TP_fast_assign(
|
|
__entry->gvsid = gvsid;
|
|
__entry->hvsid = hvsid;
|
|
),
|
|
|
|
TP_printk("%llx -> %llx", __entry->gvsid, __entry->hvsid)
|
|
);
|
|
|
|
TRACE_EVENT(kvm_book3s_slb_fail,
|
|
TP_PROTO(u16 sid_map_mask, unsigned long long gvsid),
|
|
TP_ARGS(sid_map_mask, gvsid),
|
|
|
|
TP_STRUCT__entry(
|
|
__field( unsigned short, sid_map_mask )
|
|
__field( unsigned long long, gvsid )
|
|
),
|
|
|
|
TP_fast_assign(
|
|
__entry->sid_map_mask = sid_map_mask;
|
|
__entry->gvsid = gvsid;
|
|
),
|
|
|
|
TP_printk("%x/%x: %llx", __entry->sid_map_mask,
|
|
SID_MAP_MASK - __entry->sid_map_mask, __entry->gvsid)
|
|
);
|
|
|
|
TRACE_EVENT(kvm_book3s_slb_map,
|
|
TP_PROTO(u16 sid_map_mask, unsigned long long gvsid,
|
|
unsigned long long hvsid),
|
|
TP_ARGS(sid_map_mask, gvsid, hvsid),
|
|
|
|
TP_STRUCT__entry(
|
|
__field( unsigned short, sid_map_mask )
|
|
__field( unsigned long long, guest_vsid )
|
|
__field( unsigned long long, host_vsid )
|
|
),
|
|
|
|
TP_fast_assign(
|
|
__entry->sid_map_mask = sid_map_mask;
|
|
__entry->guest_vsid = gvsid;
|
|
__entry->host_vsid = hvsid;
|
|
),
|
|
|
|
TP_printk("%x: %llx -> %llx", __entry->sid_map_mask,
|
|
__entry->guest_vsid, __entry->host_vsid)
|
|
);
|
|
|
|
TRACE_EVENT(kvm_book3s_slbmte,
|
|
TP_PROTO(u64 slb_vsid, u64 slb_esid),
|
|
TP_ARGS(slb_vsid, slb_esid),
|
|
|
|
TP_STRUCT__entry(
|
|
__field( u64, slb_vsid )
|
|
__field( u64, slb_esid )
|
|
),
|
|
|
|
TP_fast_assign(
|
|
__entry->slb_vsid = slb_vsid;
|
|
__entry->slb_esid = slb_esid;
|
|
),
|
|
|
|
TP_printk("%llx, %llx", __entry->slb_vsid, __entry->slb_esid)
|
|
);
|
|
|
|
TRACE_EVENT(kvm_exit,
|
|
TP_PROTO(unsigned int exit_nr, struct kvm_vcpu *vcpu),
|
|
TP_ARGS(exit_nr, vcpu),
|
|
|
|
TP_STRUCT__entry(
|
|
__field( unsigned int, exit_nr )
|
|
__field( unsigned long, pc )
|
|
__field( unsigned long, msr )
|
|
__field( unsigned long, dar )
|
|
__field( unsigned long, srr1 )
|
|
__field( unsigned long, last_inst )
|
|
),
|
|
|
|
TP_fast_assign(
|
|
__entry->exit_nr = exit_nr;
|
|
__entry->pc = kvmppc_get_pc(vcpu);
|
|
__entry->dar = kvmppc_get_fault_dar(vcpu);
|
|
__entry->msr = kvmppc_get_msr(vcpu);
|
|
__entry->srr1 = vcpu->arch.shadow_srr1;
|
|
__entry->last_inst = vcpu->arch.last_inst;
|
|
),
|
|
|
|
TP_printk("exit=%s"
|
|
" | pc=0x%lx"
|
|
" | msr=0x%lx"
|
|
" | dar=0x%lx"
|
|
" | srr1=0x%lx"
|
|
" | last_inst=0x%lx"
|
|
,
|
|
__print_symbolic(__entry->exit_nr, kvm_trace_symbol_exit),
|
|
__entry->pc,
|
|
__entry->msr,
|
|
__entry->dar,
|
|
__entry->srr1,
|
|
__entry->last_inst
|
|
)
|
|
);
|
|
|
|
TRACE_EVENT(kvm_unmap_hva,
|
|
TP_PROTO(unsigned long hva),
|
|
TP_ARGS(hva),
|
|
|
|
TP_STRUCT__entry(
|
|
__field( unsigned long, hva )
|
|
),
|
|
|
|
TP_fast_assign(
|
|
__entry->hva = hva;
|
|
),
|
|
|
|
TP_printk("unmap hva 0x%lx\n", __entry->hva)
|
|
);
|
|
|
|
#endif /* _TRACE_KVM_H */
|
|
|
|
/* This part must be outside protection */
|
|
|
|
#undef TRACE_INCLUDE_PATH
|
|
#undef TRACE_INCLUDE_FILE
|
|
|
|
#define TRACE_INCLUDE_PATH .
|
|
#define TRACE_INCLUDE_FILE trace_pr
|
|
|
|
#include <trace/define_trace.h>
|