FireEye Labs recently detected a limited APT campaign exploiting zero-day vulnerabilities in Adobe Flash and a brand-new one in Microsoft Windows. Usi...
分类:
其他好文 时间:
2015-05-13 19:06:19
阅读次数:
191
问题描述:公司的服务器原来安装的是Windowsserver做的raid0,因为工作需要,放弃了Windows,我想用换下来的硬盘安装一个centos用作练习机,但是安装的过程中出现DisksdacontainsBIOSRAIDmetadata,butisnotpartofanyrecongnizedBIOSRAIDsets这样的提示。问题分析:这样的提示原..
分类:
移动开发 时间:
2015-05-13 13:07:47
阅读次数:
267
本文转载至http://blog.csdn.net/cerastes/article/details/38047355retain cyclestronglyblockwarning一个使用Block语法的实例变量,在引用另一个实例变量的时候,经常会引起retain cycle。capturing ...
分类:
其他好文 时间:
2015-04-28 17:33:36
阅读次数:
150
he gcc C compiler has a built-in directive that optimizes conditional branches as either very likely taken or very unlikely taken. The compiler uses t...
分类:
其他好文 时间:
2015-04-22 22:01:32
阅读次数:
133
Linux and the Device TreeThe Linux usage model for device tree dataAuthor: Grant Likely grant.likely@secretlab.ca这篇文章介绍了Linux中使用Device Tree的方法。可以在http...
分类:
系统相关 时间:
2015-04-09 23:09:18
阅读次数:
222
本文讲的likely()和unlikely()两个宏,在linux内核代码和一些应用中可常见到它们的身影。实质上,这两个宏是关于GCC编译器内置宏__builtin_expect的使用。顾名思义,likely()指“很有可能”之意,而unlikely()指“不太可能”之意。那么,在实际应用中,它们代...
分类:
其他好文 时间:
2015-02-13 16:26:26
阅读次数:
144
首先要明确: if(likely(value)) 等价于 if(value) if(unlikely(value)) 也等价于 if(value) 也就是说 likely() 和 unlikely() 从阅读和理解代码的角度来看,是一样的!!! 这两个宏在内核中定义如下: #define likel...
分类:
其他好文 时间:
2015-01-22 17:29:09
阅读次数:
235
内核中的 likely() 与 unlikely()在 2.6 内核中,随处可以见到 likely() 和 unlikely() 的身影,那么为什么要用它们?它们之间有什么区别?首先要明确: if(likely(value)) 等价于 if(value) if(unlikely(value)) 也等...
分类:
其他好文 时间:
2015-01-16 09:48:06
阅读次数:
128
1.相关背景局部访问性原则:被访问的数据以及临近的数据很有可能被再次访问到。Locality of Reference,Data that is near other data orhas recently been used is more likely to be used again.长尾原则...
分类:
系统相关 时间:
2015-01-15 23:33:57
阅读次数:
225
Kernel散记——常见宏
1,likely()和unlikey()
1.1,来自哪里?@kernel.h
# define likely(x) (__builtin_expect(!!(x), 1))
# define unlikely(x) (__builtin_expect(!!(x), 0))
1.2,作用?
代码优化。详细占说是告诉编译器,优化预取...
分类:
其他好文 时间:
2015-01-14 20:01:48
阅读次数:
226