{"id":931,"date":"2013-02-17T13:10:42","date_gmt":"2013-02-17T05:10:42","guid":{"rendered":"http:\/\/www.dogeye.net\/?p=931"},"modified":"2013-02-17T13:10:42","modified_gmt":"2013-02-17T05:10:42","slug":"linux%e5%86%85%e6%a0%b8%e4%b8%ad%e7%9a%84%e5%ae%8f%e5%8f%af%e5%8f%98%e5%8f%82%e6%95%b0gcc%e7%9a%84%e5%ae%8f%e5%8f%af%e5%8f%98%e5%8f%82%e6%95%b0","status":"publish","type":"post","link":"https:\/\/ykyi.net\/?p=931","title":{"rendered":"Linux\u5185\u6838\u4e2d\u7684\u5b8f\u53ef\u53d8\u53c2\u6570(GCC\u7684\u5b8f\u53ef\u53d8\u53c2\u6570)"},"content":{"rendered":"<pre style=\"color: rgb(0, 0, 0); line-height: normal; word-wrap: break-word; white-space: pre-wrap;\">Linux\u5185\u6838\u4e2d\u7684\u5b8f\u53ef\u53d8\u53c2\u6570(GCC\u7684\u5b8f\u53ef\u53d8\u53c2\u6570)\u3002\n\u5199\u5185\u6838\u6a21\u5757\u7684\u65f6\u5019\u4e3a\u4e86\u8c03\u8bd5\u65b9\u4fbf\uff0c\u7ecf\u5e38\u9700\u8981wrap\u4e00\u4e0bprintk\u51fd\u6570\u3002\u4e0b\u9762\u7684\u5b8f\u5b9a\u4e49\u975e\u5e38\u6709\u5b9e\u7528\u4ef7\u503c\u3002\n\u6ce8\u610f\u4e24\u4e2a\u4e95\u53f7~~\n\u8bb0\u5230\u535a\u5ba2\u91cc~~\n\n#define seclvl_printk(verb, type, fmt, arg...)\t\t\t\\\n\tdo {\t\t\t\t\t\t\t\\\n\t\tif (verbosity &gt;= verb) {\t\t\t\\\n\t\t\tstatic unsigned long _prior;\t\t\\\n\t\t\tunsigned long _now = jiffies;\t\t\\\n\t\t\tif ((_now - _prior) &gt; HZ) {\t\t\\\n\t\t\t\tprintk(type &quot;%s: %s: &quot; fmt,\t\\\n\t\t\t\t\tMY_NAME, __FUNCTION__ ,\t\\\n\t\t\t\t\t## arg);\t\t\\\n\t\t\t\t_prior = _now;\t\t\t\\\n\t\t\t}\t\t\t\t\t\\\n\t\t}\t\t\t\t\t\t\\\n\t} while (0)<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Linux\u5185\u6838\u4e2d\u7684\u5b8f\u53ef\u53d8\u53c2\u6570(GCC\u7684\u5b8f\u53ef\u53d8\u53c2\u6570)\u3002 \u5199\u5185\u6838\u6a21\u5757\u7684\u65f6\u5019\u4e3a\u4e86\u8c03\u8bd5\u65b9\u4fbf\uff0c\u7ecf\u5e38\u9700\u8981wrap\u4e00\u4e0bprintk\u51fd\u6570\u3002\u4e0b\u9762\u7684\u5b8f\u5b9a\u4e49\u975e\u5e38\u6709\u5b9e\u7528\u4ef7\u503c\u3002 \u6ce8\u610f\u4e24\u4e2a\u4e95\u53f7~~ \u8bb0\u5230\u535a\u5ba2\u91cc~~ #define seclvl_printk(verb, type, fmt, arg&#8230;) \\ do { \\ if (verbosity &gt;= verb) { \\ static unsigned long _prior; \\ unsigned long _now = jiffies; \\ if ((_now &#8211; _prior) &gt; HZ) { \\ printk(type &quot;%s: %s: &quot; fmt, \\ MY_NAME, __FUNCTION__ , \\ ## arg); \\ _prior = _now; \\ &hellip; <a href=\"https:\/\/ykyi.net\/?p=931\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Linux\u5185\u6838\u4e2d\u7684\u5b8f\u53ef\u53d8\u53c2\u6570(GCC\u7684\u5b8f\u53ef\u53d8\u53c2\u6570)&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,7],"tags":[52],"class_list":["post-931","post","type-post","status-publish","format-standard","hentry","category-tech_articles","category-unix_linux","tag-linux-kernel"],"_links":{"self":[{"href":"https:\/\/ykyi.net\/index.php?rest_route=\/wp\/v2\/posts\/931","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ykyi.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ykyi.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ykyi.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ykyi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=931"}],"version-history":[{"count":0,"href":"https:\/\/ykyi.net\/index.php?rest_route=\/wp\/v2\/posts\/931\/revisions"}],"wp:attachment":[{"href":"https:\/\/ykyi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=931"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ykyi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=931"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ykyi.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=931"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}