probe-event.c (f29f24b5568fd6169e0363c78f1a80db38d0e7e9) | probe-event.c (1e032f7cfa141b4424827b0ecb0ea899f84e182e) |
---|---|
1/* 2 * probe-event.c : perf-probe definition to probe_events format converter 3 * 4 * Written by Masami Hiramatsu <mhiramat@redhat.com> 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or --- 1563 unchanged lines hidden (view full) --- 1572 if (tmp) { 1573 arg->name = strndup(str, tmp - str); 1574 if (arg->name == NULL) 1575 return -ENOMEM; 1576 pr_debug("name:%s ", arg->name); 1577 str = tmp + 1; 1578 } 1579 | 1/* 2 * probe-event.c : perf-probe definition to probe_events format converter 3 * 4 * Written by Masami Hiramatsu <mhiramat@redhat.com> 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or --- 1563 unchanged lines hidden (view full) --- 1572 if (tmp) { 1573 arg->name = strndup(str, tmp - str); 1574 if (arg->name == NULL) 1575 return -ENOMEM; 1576 pr_debug("name:%s ", arg->name); 1577 str = tmp + 1; 1578 } 1579 |
1580 tmp = strchr(str, '@'); 1581 if (tmp && tmp != str && strcmp(tmp + 1, "user")) { /* user attr */ 1582 if (!user_access_is_supported()) { 1583 semantic_error("ftrace does not support user access\n"); 1584 return -EINVAL; 1585 } 1586 *tmp = '\0'; 1587 arg->user_access = true; 1588 pr_debug("user_access "); 1589 } 1590 |
|
1580 tmp = strchr(str, ':'); 1581 if (tmp) { /* Type setting */ 1582 *tmp = '\0'; 1583 arg->type = strdup(tmp + 1); 1584 if (arg->type == NULL) 1585 return -ENOMEM; 1586 pr_debug("type:%s ", arg->type); 1587 } --- 1984 unchanged lines hidden --- | 1591 tmp = strchr(str, ':'); 1592 if (tmp) { /* Type setting */ 1593 *tmp = '\0'; 1594 arg->type = strdup(tmp + 1); 1595 if (arg->type == NULL) 1596 return -ENOMEM; 1597 pr_debug("type:%s ", arg->type); 1598 } --- 1984 unchanged lines hidden --- |