| 
									
										
										
										
											2021-05-17 17:16:58 +02:00
										 |  |  | # See docs/devel/tracing.rst for syntax documentation. | 
					
						
							| 
									
										
										
										
											2016-06-16 09:40:22 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-03-14 19:09:26 +01:00
										 |  |  | # mmu_helper.c | 
					
						
							| 
									
										
											  
											
												trace-events: fix code style: print 0x before hex numbers
The only exception are groups of numers separated by symbols
'.', ' ', ':', '/', like 'ab.09.7d'.
This patch is made by the following:
> find . -name trace-events | xargs python script.py
where script.py is the following python script:
=========================
 #!/usr/bin/env python
import sys
import re
import fileinput
rhex = '%[-+ *.0-9]*(?:[hljztL]|ll|hh)?(?:x|X|"\s*PRI[xX][^"]*"?)'
rgroup = re.compile('((?:' + rhex + '[.:/ ])+' + rhex + ')')
rbad = re.compile('(?<!0x)' + rhex)
files = sys.argv[1:]
for fname in files:
    for line in fileinput.input(fname, inplace=True):
        arr = re.split(rgroup, line)
        for i in range(0, len(arr), 2):
            arr[i] = re.sub(rbad, '0x\g<0>', arr[i])
        sys.stdout.write(''.join(arr))
=========================
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Acked-by: Cornelia Huck <cohuck@redhat.com>
Message-id: 20170731160135.12101-5-vsementsov@virtuozzo.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
											
										 
											2017-07-31 19:01:35 +03:00
										 |  |  | mmu_helper_dfault(uint64_t address, uint64_t context, int mmu_idx, uint32_t tl) "DFAULT at 0x%"PRIx64" context 0x%"PRIx64" mmu_idx=%d tl=%d" | 
					
						
							|  |  |  | mmu_helper_dprot(uint64_t address, uint64_t context, int mmu_idx, uint32_t tl) "DPROT at 0x%"PRIx64" context 0x%"PRIx64" mmu_idx=%d tl=%d" | 
					
						
							|  |  |  | mmu_helper_dmiss(uint64_t address, uint64_t context) "DMISS at 0x%"PRIx64" context 0x%"PRIx64 | 
					
						
							|  |  |  | mmu_helper_tfault(uint64_t address, uint64_t context) "TFAULT at 0x%"PRIx64" context 0x%"PRIx64 | 
					
						
							|  |  |  | mmu_helper_tmiss(uint64_t address, uint64_t context) "TMISS at 0x%"PRIx64" context 0x%"PRIx64 | 
					
						
							|  |  |  | mmu_helper_get_phys_addr_code(uint32_t tl, int mmu_idx, uint64_t prim_context, uint64_t sec_context, uint64_t address) "tl=%d mmu_idx=%d primary context=0x%"PRIx64" secondary context=0x%"PRIx64" address=0x%"PRIx64 | 
					
						
							|  |  |  | mmu_helper_get_phys_addr_data(uint32_t tl, int mmu_idx, uint64_t prim_context, uint64_t sec_context, uint64_t address) "tl=%d mmu_idx=%d primary context=0x%"PRIx64" secondary context=0x%"PRIx64" address=0x%"PRIx64 | 
					
						
							|  |  |  | mmu_helper_mmu_fault(uint64_t address, uint64_t paddr, int mmu_idx, uint32_t tl, uint64_t prim_context, uint64_t sec_context) "Translate at 0x%"PRIx64" -> 0x%"PRIx64", mmu_idx=%d tl=%d primary context=0x%"PRIx64" secondary context=0x%"PRIx64 | 
					
						
							| 
									
										
										
										
											2016-06-16 09:40:22 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-04-28 16:16:54 +02:00
										 |  |  | # int32_helper.c | 
					
						
							|  |  |  | sun4m_cpu_interrupt(unsigned int level) "Set CPU IRQ %d" | 
					
						
							|  |  |  | sun4m_cpu_reset_interrupt(unsigned int level) "Reset CPU IRQ %d" | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-03-14 19:09:26 +01:00
										 |  |  | # int64_helper.c | 
					
						
							| 
									
										
											  
											
												trace-events: fix code style: print 0x before hex numbers
The only exception are groups of numers separated by symbols
'.', ' ', ':', '/', like 'ab.09.7d'.
This patch is made by the following:
> find . -name trace-events | xargs python script.py
where script.py is the following python script:
=========================
 #!/usr/bin/env python
import sys
import re
import fileinput
rhex = '%[-+ *.0-9]*(?:[hljztL]|ll|hh)?(?:x|X|"\s*PRI[xX][^"]*"?)'
rgroup = re.compile('((?:' + rhex + '[.:/ ])+' + rhex + ')')
rbad = re.compile('(?<!0x)' + rhex)
files = sys.argv[1:]
for fname in files:
    for line in fileinput.input(fname, inplace=True):
        arr = re.split(rgroup, line)
        for i in range(0, len(arr), 2):
            arr[i] = re.sub(rbad, '0x\g<0>', arr[i])
        sys.stdout.write(''.join(arr))
=========================
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Acked-by: Cornelia Huck <cohuck@redhat.com>
Message-id: 20170731160135.12101-5-vsementsov@virtuozzo.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
											
										 
											2017-07-31 19:01:35 +03:00
										 |  |  | int_helper_set_softint(uint32_t softint) "new 0x%08x" | 
					
						
							|  |  |  | int_helper_clear_softint(uint32_t softint) "new 0x%08x" | 
					
						
							|  |  |  | int_helper_write_softint(uint32_t softint) "new 0x%08x" | 
					
						
							| 
									
										
										
										
											2021-04-28 16:16:54 +02:00
										 |  |  | sparc64_cpu_check_irqs_reset_irq(int intno) "Reset CPU IRQ (current interrupt 0x%x)" | 
					
						
							|  |  |  | sparc64_cpu_check_irqs_noset_irq(uint32_t tl, uint32_t tt, int intno) "Not setting CPU IRQ: TL=%d current 0x%x >= pending 0x%x" | 
					
						
							|  |  |  | sparc64_cpu_check_irqs_set_irq(unsigned int i, int old, int new) "Set CPU IRQ %d old=0x%x new=0x%x" | 
					
						
							|  |  |  | sparc64_cpu_check_irqs_disabled(uint32_t pil, uint32_t pil_in, uint32_t softint, int intno) "Interrupts disabled, pil=0x%08x pil_in=0x%08x softint=0x%08x current interrupt 0x%x" | 
					
						
							| 
									
										
										
										
											2016-06-16 09:40:22 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-03-14 19:09:26 +01:00
										 |  |  | # win_helper.c | 
					
						
							| 
									
										
											  
											
												trace-events: fix code style: print 0x before hex numbers
The only exception are groups of numers separated by symbols
'.', ' ', ':', '/', like 'ab.09.7d'.
This patch is made by the following:
> find . -name trace-events | xargs python script.py
where script.py is the following python script:
=========================
 #!/usr/bin/env python
import sys
import re
import fileinput
rhex = '%[-+ *.0-9]*(?:[hljztL]|ll|hh)?(?:x|X|"\s*PRI[xX][^"]*"?)'
rgroup = re.compile('((?:' + rhex + '[.:/ ])+' + rhex + ')')
rbad = re.compile('(?<!0x)' + rhex)
files = sys.argv[1:]
for fname in files:
    for line in fileinput.input(fname, inplace=True):
        arr = re.split(rgroup, line)
        for i in range(0, len(arr), 2):
            arr[i] = re.sub(rbad, '0x\g<0>', arr[i])
        sys.stdout.write(''.join(arr))
=========================
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Acked-by: Cornelia Huck <cohuck@redhat.com>
Message-id: 20170731160135.12101-5-vsementsov@virtuozzo.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
											
										 
											2017-07-31 19:01:35 +03:00
										 |  |  | win_helper_gregset_error(uint32_t pstate) "ERROR in get_gregset: active pstate bits=0x%x" | 
					
						
							|  |  |  | win_helper_switch_pstate(uint32_t pstate_regs, uint32_t new_pstate_regs) "change_pstate: switching regs old=0x%x new=0x%x" | 
					
						
							|  |  |  | win_helper_no_switch_pstate(uint32_t new_pstate_regs) "change_pstate: regs new=0x%x (unchanged)" | 
					
						
							|  |  |  | win_helper_wrpil(uint32_t psrpil, uint32_t new_pil) "old=0x%x new=0x%x" | 
					
						
							| 
									
										
										
										
											2016-06-16 09:40:22 +01:00
										 |  |  | win_helper_done(uint32_t tl) "tl=%d" | 
					
						
							|  |  |  | win_helper_retry(uint32_t tl) "tl=%d" |