- Timestamp:
- Jun 29, 2017, 4:44:52 PM (7 years ago)
- Location:
- trunk/hal
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/generic/hal_special.h
r95 r101 2 2 * hal_special.h - Generic Special Registers Access API definition. 3 3 * 4 * Authors Ghassan Almaless (2008,2009,2010,2011,2012) 5 * Alain Greiner (2016,2017) 4 * Authors Alain Greiner (2016,2017) 6 5 * 7 6 * Copyright (c) UPMC Sorbonne Universites … … 44 43 45 44 /***************************************************************************************** 46 * This function returns the content of the calling core cycles counter. 47 * This cycle counter is reset when the core is initialised (at reboot). 48 * If the hardware counter is not a 64 bits register, this function is in charge 49 * of handling overflow. 45 * This function returns the content of the calling core private cycles counter. 46 * This cycle counter is reset when the core is initialised (at each boot). 47 * If the hardware counter is not a 64 bits register, this function must handle overflow. 50 48 ****************************************************************************************/ 51 uint64_t hal_ time_stamp();49 uint64_t hal_get_cycles(); 52 50 53 51 /***************************************************************************************** -
trunk/hal/tsar_mips32/core/hal_do_exceptions.c
r62 r101 354 354 except_dmsg("====================================================================\n"); 355 355 except_dmsg("Kernel Panic: thread %x in process %x on core %x at cycle %d\n", 356 this->trdid , process->pid , gid , hal_ time_stamp() );356 this->trdid , process->pid , gid , hal_get_cycles() ); 357 357 358 358 except_dmsg("Processor State:\n"); -
trunk/hal/tsar_mips32/core/hal_exception.c
r62 r101 153 153 printk("\n====================================================================\n"); 154 154 printk(" thread %x / process %x / core %x / cycle %d\n", 155 this->trdid , this->process->pid , this->core->gid , hal_ time_stamp() );155 this->trdid , this->process->pid , this->core->gid , hal_get_cycles() ); 156 156 157 157 printk(" - Processor State:\n"); -
trunk/hal/tsar_mips32/core/hal_special.c
r95 r101 2 2 * hal_special.c - implementation of Generic Special Register Access API for TSAR-MIPS32 3 3 * 4 * Author Ghassan Almaless (2008,2009,2010,2011,2012) 5 * Alain Greiner (2016) 4 * Author Alain Greiner (2016,2017) 6 5 * 7 6 * Copyright (c) UPMC Sorbonne Universites … … 26 25 #include <hal_types.h> 27 26 #include <hal_special.h> 27 #include <core.h> 28 #include <thread.h> 28 29 29 30 /**** Forward declarations ****/ 30 31 31 32 struct thread_s; 33 32 34 33 35 /////////////////// -
trunk/hal/tsar_mips32/drivers/soclib_hba.c
r75 r101 289 289 ioc_dmsg("INFO in %s : thread %x at cycle %d\n", 290 290 __FUNCTION__ , hal_remote_lw( XPTR( client_cxy , &client_ptr->trdid ) ) , 291 hal_ time_stamp() );291 hal_get_cycles() ); 292 292 } 293 293 } -
trunk/hal/x86_64/core/hal_special.c
r94 r101 73 73 } 74 74 75 uint32_t hal_ time_stamp()75 uint32_t hal_get_cycles() 76 76 { 77 77 return (uint32_t)rdtsc(); // XXX will be fixed soon
Note: See TracChangeset
for help on using the changeset viewer.