dtrace.c (178537) | dtrace.c (184696) |
---|---|
1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE --- 1562 unchanged lines hidden (view full) --- 1571 */ 1572 for (optind = 1; optind < argc; optind++) { 1573 while ((c = getopt(argc, argv, DTRACE_OPTSTR)) != -1) { 1574 switch (c) { 1575 case 'c': 1576 if ((v = make_argv(optarg)) == NULL) 1577 fatal("failed to allocate memory"); 1578 | 1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE --- 1562 unchanged lines hidden (view full) --- 1571 */ 1572 for (optind = 1; optind < argc; optind++) { 1573 while ((c = getopt(argc, argv, DTRACE_OPTSTR)) != -1) { 1574 switch (c) { 1575 case 'c': 1576 if ((v = make_argv(optarg)) == NULL) 1577 fatal("failed to allocate memory"); 1578 |
1579 P = dtrace_proc_create(g_dtp, v[0], v); | 1579 P = dtrace_proc_create(g_dtp, v[0], v, NULL, NULL); |
1580 if (P == NULL) 1581 dfatal(NULL); /* dtrace_errmsg() only */ 1582 1583 g_psv[g_psc++] = P; 1584 free(v); 1585 break; 1586 1587 case 'p': --- 311 unchanged lines hidden --- | 1580 if (P == NULL) 1581 dfatal(NULL); /* dtrace_errmsg() only */ 1582 1583 g_psv[g_psc++] = P; 1584 free(v); 1585 break; 1586 1587 case 'p': --- 311 unchanged lines hidden --- |