摘要:查阅:https://code.google.com/p/wjcdx-learning/downloads/detail?name=Linux-2.6.35.7-RCU-code-reading.doc&can=2&q=
阅读全文
摘要:如果已经切换到高精度时钟,且支持 动态时钟&NO_HZ===>现在切换到X86 & 3.14.251.tick_period/* * We rearm the timer until we get disabled by the idle code.* Called with interrupts ...
阅读全文
摘要:v3.14.25每个CPU上有两个work_pool,每个work_pool上有一个worker:work_thread。work_thread从相应work_pool->worklist上取出work_struct进行执行。创建workqueue_struct时,会在每个CPU上都创建一个pool...
阅读全文
摘要:v3.14.25系统初始化时会设定哪个CPU更新 jiffies,谁先运行了这段代码谁负责更新166 static void tick_setup_device(struct tick_device *td,167 +--- 2 lines: struct clock_event_device *...
阅读全文
摘要:BOARD_KERNEL_CMDLINE += ftrace_dump_on_oops trace_event=timer:*,sched:*,irq:* trace_buf_size=15M
阅读全文
摘要:好像,event tracer虽然可以动态指定,但实际上是静态实现的?不知道对不对trace_outpu.c : device_initcall init_eventsvmlinux.lds__start_ftrace_events = .;*(_ftrace_events)__stop_ftrac...
阅读全文
摘要:因为ftrace中涉及到大量的初始化,故调用脚本postseq列出被自动调用的函数。脚本:http://www.cnblogs.com/openix/archive/2013/02/03/2890827.html version_two为了便于以后查阅,记录下……结合Makefile和config文...
阅读全文
摘要:__mcount_loc段是如何被处理的:__mcount_loc段中一共有num_to_init个调用mcount的条目,每个条目将用 dyn_ftrace 存储。并且将各个函数中调用mcount之处的指令全部改为空指令。具体:ftrace_init ...
阅读全文
摘要:当解析出jerry.txt文件后,尝试着写个脚本来生成相应的section。但是bash并不擅长此事。用python处理数据比较合适,但是我并不熟悉python。如果有人可以能够用python按照下文的意图处理jerry.txt,可否将脚本发至primerlink@gmail.com。 jerry....
阅读全文
摘要:看了下recordmcount.pl,合着google看懂了其意图,因此我自己尝试着用一般的脚本重复wheel:test.c:static int ldat_one_data_default = 0;int gdat_two_data_default = 1;static int lfun_one_...
阅读全文
摘要:root@build:~# ifconfig | grep 'inet addr'root@build:~# netstat -a -n | grep 'ESTABLISHED'root@build:~# last -w | grep 'still logged in' root@build:~...
阅读全文
摘要:参考:http://lwn.net/Articles/322666/ http://blog.csdn.net/lcw_202/article/details/7290775 http://m.blog.chinaunix.net/uid-14528823-id-4567325.html1、静态探测...
阅读全文
摘要:如果CPU可以响应中断,但是在长时间内不能调度(比如禁止抢占时间太长),此时就需要一种机制(softlockup)来检测这种情形。本文基于3.14.25记录下第二种比较严重的“死锁”:禁止抢占的时间太长,此时依旧可以相应中断,但是本CPU上在长时间内没有发生调度。 检测机制:softlockupre...
阅读全文
摘要:引述自:《超标量处理器设计》p_323ROB本质上是一个FIFO,在它当中存储了一条指令的相关信息,如果这条指令的类型、结果、目的寄存器和异常的类型等,如下图所示:ROB的容量决定了流水线中最多可以同时执行的指令个数,在上图中,每个ROB的表项包括:1)complete:表示一条指令是否已经执行完毕...
阅读全文
摘要:Non-Block Cache的实现:《超标量处理器设计》p314_p318.D-Cache数据缺失时:1)在完成操作之前,D-Cache与物理内存之间的数据通路被锁定。2)在发生数据缺失时,仍然可以继续执行后面的load/store指令,这种设计方法称为非阻塞(Non-blocking)Cache...
阅读全文
摘要:The Android log reading tool is named logcat. This application is available on all Android devices.A good overview of using logcat is at http://develo...
阅读全文
摘要:$ adb shell ls /data/app$ adb pull /data/app/.apk aapt dump badging .apk
阅读全文
摘要:Core dump enabling:c:\> adb rootc:\> adb shell# setprop persist.core.enabled 1# rebootStack decoding:Get NDK from Android site, extract ndk-stack tool...
阅读全文
摘要:Compil perf tool and copy it under /system/bin:> make perf> adb remount ; adb push out/target/product//system/bin/perf /system/bin/Top consumer functi...
阅读全文
摘要:Native Heap:To get Native Heap status on DDMS:On Linux build env, edit ~\.android\ddms.cfg and add "native=true"Setup this Linux env variable:# export...
阅读全文
摘要:Start DDMS from:C:\Program Files (x86)\Android\android-sdk\tools\ddms.batSelect the faulting App.Click on the "Show heap updates" green icon.Open the ...
阅读全文
摘要:Get source code line from Address:> addr2line -e vmlinux -i "8104ede8" > addr2line -f -e symbols/system/lib/libc.so 0001098cDump assembly code [+sourc...
阅读全文
摘要:To activate adbd logs (stored under /data/adb/adb-.txt):# setprop persist.adb.trace_mask 0xFThen, kill daemon or reboot.Windows host adb trace activat...
阅读全文
摘要:CDP (Charging Downstream Port = PC with High I port): Max 2.5 ADCP: Max 1.5 ASDP: Max 500mA
阅读全文
摘要:May changeadb shell service call window 60 i32 0 # Landscape adb shell service call window 60 i32 1 # Portrait adb shell service call window 60 i32 2 ...
阅读全文
摘要:Android debug bridge uses TCP/IP port #5555 by default. Some firewalls (for example epsilon in GK) block this port, in result connecting adb form host...
阅读全文
摘要:Usually it is sufficient to remount the filesystem via adb adb remountHowever, sometimes it needs to be remounted once again on the target machine mou...
阅读全文
摘要:#!/bin/bashset -e# Get this information by connecting manually once, and do# adb pull /data/misc/wifi/wpa_supplicant.confADB_PULL="adb pull /data/mi...
阅读全文
摘要:如果不能自动分配IP,则:How to change MAC addressnetcfg hwaddr e.g.netcfg eth0 hwaddr 00:11:22:33:44:55How to enable networkingNetwork should be automatically c...
阅读全文
摘要:#!/bin/bashecho "[`date`] Remount filesystem as read-write"adb remount rwecho "[`date`] Delete /system/app/SetupWizard.apk"adb shell rm /system/app/Se...
阅读全文
摘要:/*****************************************************************************\// returns count of bits reuired to store set of (v) values in range \*...
阅读全文
摘要:针对不同级别的进程、CPU上可能发生的"hang",CPU/内核提供了4种检测机制,记录下比较简单的 task hung。?:msleep(1)后,线程A在120s没有得到调度,hung task检测到线程A hung了。debug选项kernel/Makefile: obj-$(CONFIG_DE...
阅读全文
摘要:实时进程的负载均衡在进程创建和销往时进行,所以系统的负载均衡机制,大部分是针对CFS的。v3.14.25负载均衡有两种方式:pull, push:1) pull拉:负载轻的CPU,从负载繁重的CPU pull tasks来运行。这应该是主要的方式,因为不应该让负载本身就繁重的CPU执行负载均衡任务。...
阅读全文