Lines Matching refs:buff
299 char *buff = GetLocalBuffer(&buffSize);
300 PLUGIN_CHECK(buff != NULL, return -1, "Failed to get local buffer");
301 int ret = sprintf_s(buff, buffSize - 1, "/proc/%s/smaps", argv[1]);
303 buff[ret] = '\0';
304 char *realPath = GetRealPath(buff);
313 while (fp != NULL && buff != NULL && fgets(buff, buffSize, fp) != NULL) {
314 buff[buffSize - 1] = '\0';
315 if (strncmp(buff, "Pss:", strlen("Pss:")) == 0) {
316 int v = CalcValue(buff + strlen("Pss:"));
321 } else if (strncmp(buff, "SwapPss:", strlen("SwapPss:")) == 0) {
322 int v = CalcValue(buff + strlen("SwapPss:"));
333 printf("Failed to get memory for %s %s \n", argv[1], buff);