winlin

show cpu info.

@@ -225,6 +225,21 @@ void check_macro_features() @@ -225,6 +225,21 @@ void check_macro_features()
225 #if defined(SRS_PERF_SO_SNDBUF_SIZE) && !defined(SRS_PERF_MW_SO_SNDBUF) 225 #if defined(SRS_PERF_SO_SNDBUF_SIZE) && !defined(SRS_PERF_MW_SO_SNDBUF)
226 #error "SRS_PERF_SO_SNDBUF_SIZE depends on SRS_PERF_MW_SO_SNDBUF" 226 #error "SRS_PERF_SO_SNDBUF_SIZE depends on SRS_PERF_MW_SO_SNDBUF"
227 #endif 227 #endif
  228 +
  229 +#ifndef SRS_OSX
  230 + #if defined(__amd64__)
  231 + srs_trace("cpu is amd64, glibc %d.%d", (int)__GLIBC__, (int)__GLIBC_MINOR__);
  232 + #endif
  233 + #if defined(__x86_64__)
  234 + srs_trace("cpu is x86_64, glibc %d.%d", (int)__GLIBC__, (int)__GLIBC_MINOR__);
  235 + #endif
  236 + #if defined(__i386__)
  237 + srs_trace("cpu is i386, glibc %d.%d", (int)__GLIBC__, (int)__GLIBC_MINOR__);
  238 + #endif
  239 + #if defined(__arm__)
  240 + srs_trace("cpu is arm, glibc %d.%d", (int)__GLIBC__, (int)__GLIBC_MINOR__);
  241 + #endif
  242 +#endif
228 } 243 }
229 244
230 /** 245 /**