Lokesh B V [Tue, 8 Aug 2017 09:44:18 +0000 (15:14 +0530)]
armv7-r: memcpy: support architecture optimized memcpy
This patch adds support for architecture optimized memcpy for armv7-r architecture.
To use architecture optimized memcpy enable CONFIG_ARCH_OPTIMIZED_FUNCTIONS and CONFIG_ARCH_MEMCPY.
This patch is back ported from Nuttx.
Signed-off-by: Lokesh B V <lokesh.bv@partner.samsung.com>
sunghan-chang [Fri, 11 Aug 2017 09:21:29 +0000 (18:21 +0900)]
Merge pull request #372 from olegartys/855
mm/mm_realloc: fix 'unused variable'
sunghan-chang [Fri, 11 Aug 2017 09:18:05 +0000 (18:18 +0900)]
Merge pull request #376 from olegartys/872
libc/netdb: fix 'unknown type' compiler error
sunghan-chang [Fri, 11 Aug 2017 09:16:06 +0000 (18:16 +0900)]
Merge pull request #377 from olegartys/860
libc: add arch-dependent option for ARCH_ROMGETC visibility control
sunghan-chang [Fri, 11 Aug 2017 09:11:41 +0000 (18:11 +0900)]
Merge pull request #378 from olegartys/955
arch/arm/common: add directives to compile up_schedyield logic
sunghan-chang [Fri, 11 Aug 2017 09:09:31 +0000 (18:09 +0900)]
Merge pull request #379 from olegartys/957
framework/arastorage: include missing header
sunghan-chang [Fri, 11 Aug 2017 08:52:17 +0000 (17:52 +0900)]
Merge pull request #382 from olegartys/943
include/stdio: removed duplicate prototype of statfs
sunghan-chang [Fri, 11 Aug 2017 08:45:54 +0000 (17:45 +0900)]
Merge pull request #387 from olegartys/947
arch/artik053: make ARTIK053_FLASH_PART dependent on !DISABLE_MOUNTPOINT
sunghan-chang [Fri, 11 Aug 2017 08:45:19 +0000 (17:45 +0900)]
Merge pull request #389 from lokeshbv/libc_fixes
Typo Fix in Libc Kconfig and Add Missing TC_SUCCESS_RESULT Macro in libc termios.
sunghan-chang [Fri, 11 Aug 2017 08:44:21 +0000 (17:44 +0900)]
Merge pull request #390 from lokeshbv/libc_mqueue
Add Test Cases for Libc Mqueue
btheosam [Fri, 11 Aug 2017 08:14:34 +0000 (17:14 +0900)]
Merge pull request #392 from sunghan-chang/master
remove unused definitions for pm
sunghan-chang [Fri, 11 Aug 2017 04:21:39 +0000 (13:21 +0900)]
Merge pull request #363 from junmin-kim/qemu_gdb
Enable gdb on qemu
junmin kim [Tue, 8 Aug 2017 11:13:17 +0000 (04:13 -0700)]
Enable gdb on QEMU
1. add gdb setting on QEMU execution
2. enable CONFIG_DEBUG_SYMBOLS
3. modify README for GDB
Lokesh B V [Thu, 10 Aug 2017 13:36:45 +0000 (19:06 +0530)]
Add Missing dependency !DISABLE_MQUEUE to config TC_KERNEL_MQUEUE.
Signed-off-by: Lokesh B V <lokesh.bv@partner.samsung.com>
Lokesh B V [Thu, 10 Aug 2017 13:19:16 +0000 (18:49 +0530)]
Add Missing TC_SUCCESS_RESULT Macro in libc termios.
Signed-off-by: Lokesh B V <lokesh.bv@partner.samsung.com>
Lokesh B V [Thu, 10 Aug 2017 13:17:46 +0000 (18:47 +0530)]
Typo Fix in Libc Kconfig
Changes wrong typo 'memcpy' to 'memset' in config MEMSET_OPTSPEED
"--help--" section.
Signed-off-by: Lokesh B V <lokesh.bv@partner.samsung.com>
Oleg Lyovin [Mon, 10 Jul 2017 12:28:23 +0000 (15:28 +0300)]
mm/mm_realloc: fix 'unused variable'
Signed-off-by: Oleg Lyovin <o.lyovin@partner.samsung.com>
Taejun-Kwon [Thu, 10 Aug 2017 09:32:19 +0000 (18:32 +0900)]
Merge pull request #383 from olegartys/951
arch/artik053/Kconfig: selecting MTD_PARTITION without MTD is an error
sunghan [Thu, 10 Aug 2017 09:20:30 +0000 (18:20 +0900)]
remove unused definitions for pm
The pm_get_domainmetrics and pm_prune_history functions are called
only when CONFIG_PM_METRICS is enabled. So definitions for them is
not needed when config is disabled.
sunghan-chang [Thu, 10 Aug 2017 09:09:17 +0000 (18:09 +0900)]
Merge pull request #371 from olegartys/859
fs: fix config name for smartfs exclusion from procfs
sunghan-chang [Thu, 10 Aug 2017 09:07:15 +0000 (18:07 +0900)]
Merge pull request #386 from olegartys/948
apps/fscmd: hide util 'df' if mountpoints are disabled
Taejun-Kwon [Thu, 10 Aug 2017 09:02:55 +0000 (18:02 +0900)]
Merge pull request #385 from olegartys/952
fs/mtd/Kconfig: fixed MTD menuconfig suboptions visibility
Taejun-Kwon [Thu, 10 Aug 2017 09:02:14 +0000 (18:02 +0900)]
Merge pull request #388 from olegartys/940
fs/procfs: make FS_PROCFS option visible only with mountpoints enabled
sunghan-chang [Thu, 10 Aug 2017 06:00:22 +0000 (15:00 +0900)]
Merge pull request #367 from pillip8282/net_header_arrange
Delete unused header files in network
sunghan-chang [Thu, 10 Aug 2017 05:36:42 +0000 (14:36 +0900)]
Merge pull request #375 from olegartys/869
drivers/rwbuffer: fix wrong arguments order during 'rwb->rhreload' call
sunghan-chang [Thu, 10 Aug 2017 05:29:58 +0000 (14:29 +0900)]
Merge pull request #380 from olegartys/958
apps/readline: check whether CONFIG_EOL_IS_EITHER_CRLF is defined
sunghan-chang [Thu, 10 Aug 2017 04:33:56 +0000 (13:33 +0900)]
Merge pull request #373 from olegartys/858
s5j/rtc: fix missing brackets for RTC alarm registers
sunghan-chang [Thu, 10 Aug 2017 04:32:04 +0000 (13:32 +0900)]
Merge pull request #370 from olegartys/871
pm/pm_test: fix 'unused variable'
sunghan-chang [Thu, 10 Aug 2017 04:26:48 +0000 (13:26 +0900)]
Merge pull request #369 from olegartys/870
drivers/rwbuffer: fix 'unused variable'
sunghan-chang [Thu, 10 Aug 2017 04:20:07 +0000 (13:20 +0900)]
Merge pull request #362 from olegartys/master
libc: fix 'casting pointer to integer of different size' compiler warnings
kang [Wed, 9 Aug 2017 04:38:10 +0000 (13:38 +0900)]
Clean up unused header files in network module
Delete network header files that is not used anymore.
For example pkt.h, tcp.h, udp.h are come from uIP removed.
And modify the location of header files not matched
Lokesh B V [Wed, 9 Aug 2017 18:07:14 +0000 (23:37 +0530)]
Update defconfigs to enable TC for Libc Mqueue
1) Updates TC defconfigs of sidk_s5jt200 and artik053 boards with new Kconfig TC_KERNEL_LIBC_MQUEUE.
2) This new config is to enable tc for Libc Mqueue.
Signed-off-by: Lokesh B V <lokesh.bv@partner.samsung.com>
Lokesh B V [Wed, 9 Aug 2017 17:51:13 +0000 (23:21 +0530)]
Update Kernel TC Main for Lib Mqueue TC
This patch updates kernel tc main to use tc_libc_mqueue.c
which is already present source tree for libc mqueue tc.
Signed-off-by: Lokesh B V <lokesh.bv@partner.samsung.com>
lokeshbv [Wed, 9 Aug 2017 17:44:07 +0000 (23:14 +0530)]
Add Missing Config for Libc Mqueue TC
Adds missing Kconfig TC_KERNEL_LIBC_MQUEUE in Kernel TC to enable TC for libc mqueue.
Signed-off-by: Lokesh B V <lokesh.bv@partner.samsung.com>
Oleg Lyovin [Mon, 17 Jul 2017 09:45:33 +0000 (12:45 +0300)]
fs/procfs: make FS_PROCFS option visible only with mountpoints enabled
Signed-off-by: Oleg Lyovin <o.lyovin@partner.samsung.com>
Oleg Lyovin [Tue, 18 Jul 2017 15:25:28 +0000 (18:25 +0300)]
arch/artik053: make ARTIK053_FLASH_PART dependent on !DISABLE_MOUNTPOINT
* Since ARTIK053_FLASH_PART selects MTD layer specific options, which
are available only with mountpoints being enabled, ARTIK053_FLASH_PART
option must be invisible for user when DISABLE_MOUNTPOINT is enabled.
Signed-off-by: Oleg Lyovin <o.lyovin@partner.samsung.com>
Oleg Lyovin [Tue, 18 Jul 2017 15:29:12 +0000 (18:29 +0300)]
apps/fscmd: hide util 'df' if mountpoints are disabled
* 'df' utilities task is to show filesystem info, but it
is meaningless when mountpoints are disabled and hence
no user filesystems are supported.
Signed-off-by: Oleg Lyovin <o.lyovin@partner.samsung.com>
Oleg Lyovin [Thu, 20 Jul 2017 12:21:03 +0000 (15:21 +0300)]
fs/mtd/Kconfig: fixed MTD menuconfig suboptions visibility
Signed-off-by: Oleg Lyovin <o.lyovin@partner.samsung.com>
Oleg Lyovin [Thu, 20 Jul 2017 12:18:48 +0000 (15:18 +0300)]
arch/artik053/Kconfig: selecting MTD_PARTITION without MTD is an error
* MTD_PARTITION option is supported only when MTD support is enabled.
Signed-off-by: Oleg Lyovin <o.lyovin@partner.samsung.com>
Oleg Lyovin [Mon, 24 Jul 2017 08:37:03 +0000 (11:37 +0300)]
apps/readline: check whether CONFIG_EOL_IS_EITHER_CRLF is defined
* We should check whether CONFIG_EOL_IS_EITHER_CRLF is defined,
instead of checking it's value.
Signed-off-by: Oleg Lyovin <o.lyovin@partner.samsung.com>
Oleg Lyovin [Tue, 18 Jul 2017 12:33:13 +0000 (15:33 +0300)]
include/stdio: removed duplicate prototype of statfs
Declaration of statfs should belong to sys/statfs.h
Signed-off-by: Oleg Lyovin <o.lyovin@partner.samsung.com>
Oleg Lyovin [Mon, 24 Jul 2017 08:21:57 +0000 (11:21 +0300)]
framework/arastorage: include missing header
* Constants such FLT_MIN are used, but header with their definitions
is not included.
Signed-off-by: Oleg Lyovin <o.lyovin@partner.samsung.com>
Oleg Lyovin [Fri, 21 Jul 2017 14:04:38 +0000 (17:04 +0300)]
arch/arm/common: add directives to compile up_schedyield logic
* When option CONFIG_SCHED_YIELD_OPTIMIZATION is enabled, scheduler's
code enable yield feature which requires up_schedyield to be
implemented. But there was missing logic in arch Makefile for
compiling up_schedyield.c file.
Signed-off-by: Oleg Lyovin <o.lyovin@partner.samsung.com>
Oleg Lyovin [Wed, 5 Jul 2017 13:16:26 +0000 (16:16 +0300)]
libc: add arch-dependent option for ARCH_ROMGETC visibility control
Enabling ARCH_ROMGETC assumes that for the target architecture
there exists implementation of up_romgetc() function. But even when
implementation is missing ARCH_ROMGETC option is still visible
to the user, so the option being selected cause build failure.
The solution is to add upper-level option, which can be selected
in specific architecture configs and make option ARCH_ROMGETC visible.
Otherwise ARCH_ROMGETC will be unvisible to the user.
Signed-off-by: Oleg Lyovin <o.lyovin@partner.samsung.com>
Oleg Lyovin [Thu, 13 Jul 2017 10:41:11 +0000 (13:41 +0300)]
libc/netdb: fix 'unknown type' compiler error
Signed-off-by: Oleg Lyovin <o.lyovin@partner.samsung.com>
Oleg Lyovin [Wed, 12 Jul 2017 10:29:34 +0000 (13:29 +0300)]
drivers/rwbuffer: fix wrong arguments order during 'rwb->rhreload' call
Signed-off-by: Oleg Lyovin <o.lyovin@partner.samsung.com>
Oleg Lyovin [Fri, 7 Jul 2017 14:34:58 +0000 (17:34 +0300)]
s5j/rtc: fix missing brackets for RTC alarm registers
Change-Id: I3ee297c9a4a628d774f899d43655e54fa6efb98f
Signed-off-by: Oleg Lyovin <o.lyovin@partner.samsung.com>
Oleg Lyovin [Thu, 6 Jul 2017 12:24:08 +0000 (15:24 +0300)]
fs: fix config name for smartfs exclusion from procfs
Smartfs info can be excluded from procfs by enabling
FS_PROCFS_EXCLUDE_SMARTFS config, but in smartfs_procfs
there was syntax error with wrong config name.
Signed-off-by: Oleg Lyovin <o.lyovin@partner.samsung.com>
Oleg Lyovin [Mon, 10 Jul 2017 12:55:13 +0000 (15:55 +0300)]
pm/pm_test: fix 'unused variable'
Signed-off-by: Oleg Lyovin <o.lyovin@partner.samsung.com>
Oleg Lyovin [Wed, 12 Jul 2017 10:31:10 +0000 (13:31 +0300)]
drivers/rwbuffer: fix 'unused variable'
Signed-off-by: Oleg Lyovin <o.lyovin@partner.samsung.com>
sunghan-chang [Wed, 9 Aug 2017 10:25:19 +0000 (19:25 +0900)]
Merge pull request #360 from jeongarmy/ttrace
Update ttrace
Ahreum Jeong [Wed, 9 Aug 2017 05:18:59 +0000 (14:18 +0900)]
Unify show_packet and show_sched_packet functions
Ahreum Jeong [Wed, 9 Aug 2017 04:06:10 +0000 (13:06 +0900)]
Add a conditional for ttrace debugging to show_packet function
Ahreum Jeong [Tue, 8 Aug 2017 08:31:56 +0000 (17:31 +0900)]
Add doxygen for ttrace APIs
Ahreum Jeong [Wed, 9 Aug 2017 09:59:46 +0000 (18:59 +0900)]
Move a conditional for cplusplus down to include functions only
Ahreum Jeong [Mon, 7 Aug 2017 06:13:10 +0000 (15:13 +0900)]
Add space to follow coding rule in thread_create
Ahreum Jeong [Fri, 4 Aug 2017 09:11:57 +0000 (18:11 +0900)]
Unify header files for ttrace.
It should be in os/include/tinyara folder because ttrace is a special feature, not common for TizenRT
joon.c.baek [Fri, 14 Jul 2017 06:26:03 +0000 (15:26 +0900)]
Implement dump mode in ttrace_tinyara.py
1. Add options '-d' for dump.
2. Support artik053 device
3. User can use ttrace_tinyara.py only to get HTML report.
Signed-Off-by : Changjoon.Baek
joon.c.baek [Wed, 28 Jun 2017 04:56:24 +0000 (13:56 +0900)]
Improving T-trace usabilities
1. Add overwrite feature with '-o' option.
To overwrite feature, Add ringbuf to T-race driver layer.
2. Improve information option('-i').
It'll show more information about tags, buffer status.
3. Prevent buffer overflow during string copying.
4. Correct several typo errors and messages.
Signed-off-by: joon.c.baek <joon.c.baek@samsung.com>
Oleg Lyovin [Tue, 4 Jul 2017 10:38:51 +0000 (13:38 +0300)]
libc: fix 'casting pointer to integer of different size' compiler warnings
This change comes from nuttx source tree.
Signed-off-by: Oleg Lyovin <o.lyovin@partner.samsung.com>
sunghan-chang [Wed, 9 Aug 2017 07:53:40 +0000 (16:53 +0900)]
Merge pull request #361 from alswnzla/kernel_stkopt
Add new TASH Command named stkopt
minju [Tue, 8 Aug 2017 08:35:01 +0000 (17:35 +0900)]
Add new TASH Command named stkopt
sunghan-chang [Wed, 9 Aug 2017 06:10:35 +0000 (15:10 +0900)]
Merge pull request #312 from thapav/libc_pthread
Libc pthread Modify return value as per POSIX standard
btheosam [Wed, 9 Aug 2017 05:16:05 +0000 (14:16 +0900)]
Merge pull request #364 from sunghan-chang/master
add scsi.h to use usbmsc functionality
sunghan [Tue, 8 Aug 2017 11:38:17 +0000 (20:38 +0900)]
add scsi.h to use usbmsc functionality
btheosam [Tue, 8 Aug 2017 05:01:02 +0000 (14:01 +0900)]
Merge pull request #359 from sunghan-chang/master
clean codes
sunghan-chang [Tue, 8 Aug 2017 04:15:13 +0000 (13:15 +0900)]
Merge pull request #358 from jeongchanKim/kernel_tashcmd
Rename CONFIG_TASH_TELNET_INTERFACE to CONFIG_TASH_COMMAND_INTERFACE
jc_.kim [Mon, 7 Aug 2017 09:01:42 +0000 (18:01 +0900)]
Rename CONFIG_TASH_TELNET_INTERFACE to CONFIG_TASH_COMMAND_INTERFACE
sunghan [Mon, 7 Aug 2017 10:23:14 +0000 (19:23 +0900)]
modify wrong path for mtd.h
Our mtd.h is at os/include/fs folder.
Vidisha Thapa [Tue, 25 Jul 2017 12:09:56 +0000 (17:39 +0530)]
libc/pthread: Add test cases for cancelability API's in pthreads
This patch covers TC's for the following API's:
pthread_setcancelstate()
pthread_setcanceltype()
pthread_testcancel()
Signed-off-by: Vidisha Thapa <thapa.v@samsung.com>
sunghan [Mon, 7 Aug 2017 08:55:39 +0000 (17:55 +0900)]
remove usb hid functionality, kbd and mouse
sunghan [Mon, 7 Aug 2017 07:09:43 +0000 (16:09 +0900)]
remove automount functionality on fs
automount is not used.
sunghan [Mon, 7 Aug 2017 07:01:31 +0000 (16:01 +0900)]
modify location of rwbuffer.h to include at ftl
rwbuffer.h is at include/tinyara folder, not include/tinyara/driver.
sunghan [Mon, 7 Aug 2017 06:54:25 +0000 (15:54 +0900)]
update dac on analog
1. add dac.h to use dac
2. add variable names on function prototype
sunghan [Mon, 7 Aug 2017 06:36:49 +0000 (15:36 +0900)]
remove elf stubs
The elf is not used.
sunghan-chang [Mon, 7 Aug 2017 06:10:13 +0000 (15:10 +0900)]
Merge pull request #349 from pradeepns85/cleanup_taskactivate
Remove unnecessary logic while handling return of task_activate
sunghan-chang [Mon, 7 Aug 2017 06:08:32 +0000 (15:08 +0900)]
Merge pull request #332 from junmin-kim/apps_tc
Add network manual tc in tc defconfig
btheosam [Mon, 7 Aug 2017 05:19:06 +0000 (14:19 +0900)]
Merge pull request #356 from sunghan-chang/master
refactoring create_appspec
sunghan-chang [Mon, 7 Aug 2017 04:09:09 +0000 (13:09 +0900)]
Merge pull request #357 from junmin-kim/qemu_defconfig
Update qemu defconfig
junmin kim [Mon, 7 Aug 2017 01:51:24 +0000 (18:51 -0700)]
Update qemu defconfig
sunghan [Mon, 7 Aug 2017 00:33:17 +0000 (09:33 +0900)]
refactoring create_appspec
1. modify calling method on Makefile
The applist should be called at everywhere of apps, not only example
2. add removing an old appspec meta file before making a new meta
3. modify a variable name from EXAMPLEDIR to TARGET_DIR_LIST
4. modify a method to get whether configuration is enabled or not
If some config is not in defconfig (It means config is not enabled),
this script recognize config is enabled. This is wrong.
Let's get "CONFIG_XX=y" instead of "# CONFIG_XX is not set"
5. add output sentence to notice finishing
sunghan-chang [Mon, 7 Aug 2017 00:38:33 +0000 (09:38 +0900)]
Merge pull request #355 from jeongchanKim/kernel_tools
Add script about parsing the variable which size is greater than [SIZ…
jc_.kim [Thu, 3 Aug 2017 04:36:58 +0000 (13:36 +0900)]
Add script about parsing the variable which size is greater than [SIZE] from elf
sunghan-chang [Sun, 6 Aug 2017 22:59:56 +0000 (07:59 +0900)]
Merge pull request #354 from lokeshbv/libc
Fix: Minor change in Libc FixedMath "ub16mulub16" function
sunghan-chang [Sun, 6 Aug 2017 22:59:15 +0000 (07:59 +0900)]
Merge pull request #347 from pmarcinkiew/gcc54_boot_failure_fix
s5j_boot.c: fix incorrect assembly code
Jaroslaw Pelczar [Thu, 3 Aug 2017 07:48:56 +0000 (09:48 +0200)]
s5j_boot.c: fix incorrect assembly code
Previous code assumed that registers during function call
are r0 and r1, but compiler can allocate any register at
any time to inlined function.
Signed-off-by: Jaroslaw Pelczar <j.pelczar@samsung.com>
Lokesh B V [Fri, 4 Aug 2017 11:23:05 +0000 (16:53 +0530)]
Fix: Minor change in Libc FixedMath "ub16mulub16" function implementation
Fix in ub16mulub16() of fixedmath,
It's "uint32_t m2i = ((uint32_t)m1 >> 16);"
It should be "uint32_t m2i = ((uint32_t)m2 >> 16);"
Signed-off-by: Lokesh B V <lokesh.bv@partner.samsung.com>
sunghan-chang [Fri, 4 Aug 2017 05:18:40 +0000 (14:18 +0900)]
Merge pull request #352 from jeongchanKim/kernel_stkheader
Move struct stkmon_save_s to apps/system/utils/kdbg_utils.h
Taejun-Kwon [Fri, 4 Aug 2017 05:18:06 +0000 (14:18 +0900)]
Merge pull request #341 from shivgarg/master
Changes in arastorage
jc_.kim [Fri, 4 Aug 2017 04:35:59 +0000 (13:35 +0900)]
Move struct stkmon_save_s to apps/system/utils/kdbg_utils.h
sunghan-chang [Fri, 4 Aug 2017 04:14:32 +0000 (13:14 +0900)]
Merge pull request #351 from jeongchanKim/kernel_stkheader
Move struct stkmon_save_s to apps/include/system/utils.h and fix codi…
jc_.kim [Fri, 4 Aug 2017 04:05:08 +0000 (13:05 +0900)]
Fix the coding rule error : space
jc_.kim [Fri, 4 Aug 2017 04:01:04 +0000 (13:01 +0900)]
Move struct stkmon_save_s to apps/include/system/utils.h
sunghan-chang [Fri, 4 Aug 2017 01:51:51 +0000 (10:51 +0900)]
Merge pull request #345 from JeonginKim/master
Fixed a build error when using netdb interface
JeonginKim [Thu, 3 Aug 2017 09:23:44 +0000 (18:23 +0900)]
Fixed a build error when using netdb interface
sunghan-chang [Thu, 3 Aug 2017 23:28:40 +0000 (08:28 +0900)]
Merge pull request #350 from pradeepns85/correct_Kconfig_description
Correct the Kconfig help description
sunghan-chang [Thu, 3 Aug 2017 23:27:26 +0000 (08:27 +0900)]
Merge pull request #263 from pradeepns85/kdbg_irqinfo
Display Interrupts information to user
pradeep.ns [Wed, 19 Jul 2017 06:27:08 +0000 (11:57 +0530)]
Correct the Kconfig help description
Corrected the Kconfig help description as follows
BUILD_PROTECTED => Adjusted the length of the description to readable format
BUILD_KERNEL => Changed from MPU -> MMU
ARCH_USE_MMU => removed duplicate word
ARCH_USE_MPU => removed duplicate word
Signed-off-by: pradeep.ns <pradeep.ns@samsung.com>
pradeep.ns [Fri, 26 May 2017 11:31:12 +0000 (17:01 +0530)]
Remove unnecessary logic while handling return of task_activate
By design, task_activate API always returns OK.
There is no need to check error condition and
add the un-necessary code. Keep the code clean
Signed-off-by: pradeep.ns <pradeep.ns@samsung.com>
pradeep.ns [Tue, 27 Jun 2017 18:37:50 +0000 (00:07 +0530)]
Display Interrupts information to user
If CONFIG_ENABLE_IRQINFO is enabled, This patch would display the
number of registerd interrupts, it's occurrences in the system and
it's isr information. This feature works for flat build
ie BUILD_PROTECTED = n and when TASH shell is enabled
This debug feature is required for following important reasons
1) To know how many interrupts have been configured in the system
2) To know which interrupt lines have been configured and it's corresponding ISR name
3) To debug the system hogging issues if it's caused by any spurious interrupts.
4) This can be enhanced in future to know which interrupts are set for cpu affinity and it's occurrences on each cpu.
Verification:
TASH>>irqinfo
INDEX | IRQ_NUM | INT_COUNT | ISR_NAME
-------|---------|-----------|----------
1 | 36 | 0 | gic_interrupt
2 | 37 | 0 | gic_interrupt
3 | 58 | 23289 | up_timerisr
4 | 90 | 374 | up_interrupt
Without tash, one can enable CONFIG_DEBUG_IRQ_INFO to know the
irq information for remote debugging
Following changes are done:
1) Introduced 2 new variables a) count and b) irq_name
2) Updated the irq_name during irq_attach (ISR name ) and irq_detach ( NULL )
3) Reset the count to 0 while irq_attach and irq_detach is called
4) displayed the output to console when irqinfo is executed from TASH
5) if CONFIG_ENABLE_IRQINFO is not enabled, still irqinfo would be updated if
CONFIG_DEBUG_IRQ_INFO is enabled and this can be used for offline debug
Signed-off-by: pradeep.ns <pradeep.ns@samsung.com>