Lines Matching defs:ptr
2331 static char *eval_replace(char *ptr, struct trace_eval_map *map, int len)
2337 elen = snprintf(ptr, 0, "%ld", map->eval_value);
2342 snprintf(ptr, elen + 1, "%ld", map->eval_value);
2344 /* Get the rest of the string of ptr */
2345 rlen = strlen(ptr + len);
2346 memmove(ptr + elen, ptr + len, rlen);
2348 ptr[elen + rlen] = 0;
2350 return ptr + elen;
2356 char *ptr;
2360 for (ptr = call->print_fmt; *ptr; ptr++) {
2361 if (*ptr == '\\') {
2362 ptr++;
2364 if (!*ptr)
2368 if (*ptr == '"') {
2374 if (isdigit(*ptr)) {
2377 ptr++;
2379 } while (isalnum(*ptr));
2380 if (!*ptr)
2388 if (isalpha(*ptr) || *ptr == '_') {
2389 if (strncmp(map->eval_string, ptr, len) == 0 &&
2390 !isalnum(ptr[len]) && ptr[len] != '_') {
2391 ptr = eval_replace(ptr, map, len);
2393 if (WARN_ON_ONCE(!ptr))
2406 ptr++;
2407 } while (isalnum(*ptr) || *ptr == '_');
2408 if (!*ptr)
2414 if (*ptr == '.' || (ptr[0] == '-' && ptr[1] == '>')) {
2415 ptr += *ptr == '.' ? 1 : 2;
2416 if (!*ptr)