hwpmc_mod.c (4d846d260e2b9a3d4d0a701462568268cbfe7a5b) | hwpmc_mod.c (8e63e787abbd69d29e55e2e0b2aa0aa624339f3b) |
---|---|
1/*- 2 * SPDX-License-Identifier: BSD-2-Clause 3 * 4 * Copyright (c) 2003-2008 Joseph Koshy 5 * Copyright (c) 2007 The FreeBSD Foundation 6 * Copyright (c) 2018 Matthew Macy 7 * All rights reserved. 8 * --- 3424 unchanged lines hidden (view full) --- 3433 struct pmc_owner *po; 3434 struct pmc_op_configurelog cl; 3435 3436 if ((error = copyin(arg, &cl, sizeof(cl))) != 0) { 3437 pmclog_proc_ignite(pmclog_proc_handle, NULL); 3438 break; 3439 } 3440 | 1/*- 2 * SPDX-License-Identifier: BSD-2-Clause 3 * 4 * Copyright (c) 2003-2008 Joseph Koshy 5 * Copyright (c) 2007 The FreeBSD Foundation 6 * Copyright (c) 2018 Matthew Macy 7 * All rights reserved. 8 * --- 3424 unchanged lines hidden (view full) --- 3433 struct pmc_owner *po; 3434 struct pmc_op_configurelog cl; 3435 3436 if ((error = copyin(arg, &cl, sizeof(cl))) != 0) { 3437 pmclog_proc_ignite(pmclog_proc_handle, NULL); 3438 break; 3439 } 3440 |
3441 /* No flags currently implemented */ 3442 if (cl.pm_flags != 0) { 3443 error = EINVAL; 3444 break; 3445 } 3446 |
|
3441 /* mark this process as owning a log file */ 3442 p = td->td_proc; 3443 if ((po = pmc_find_owner_descriptor(p)) == NULL) 3444 if ((po = pmc_allocate_owner_descriptor(p)) == NULL) { 3445 pmclog_proc_ignite(pmclog_proc_handle, NULL); 3446 error = ENOMEM; 3447 break; 3448 } --- 2531 unchanged lines hidden --- | 3447 /* mark this process as owning a log file */ 3448 p = td->td_proc; 3449 if ((po = pmc_find_owner_descriptor(p)) == NULL) 3450 if ((po = pmc_allocate_owner_descriptor(p)) == NULL) { 3451 pmclog_proc_ignite(pmclog_proc_handle, NULL); 3452 error = ENOMEM; 3453 break; 3454 } --- 2531 unchanged lines hidden --- |