libpmc.c (4d846d260e2b9a3d4d0a701462568268cbfe7a5b) | libpmc.c (8e63e787abbd69d29e55e2e0b2aa0aa624339f3b) |
---|---|
1/*- 2 * SPDX-License-Identifier: BSD-2-Clause 3 * 4 * Copyright (c) 2003-2008 Joseph Koshy 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 1181 unchanged lines hidden (view full) --- 1190 return (-1); 1191} 1192 1193int 1194pmc_configure_logfile(int fd) 1195{ 1196 struct pmc_op_configurelog cla; 1197 | 1/*- 2 * SPDX-License-Identifier: BSD-2-Clause 3 * 4 * Copyright (c) 2003-2008 Joseph Koshy 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 1181 unchanged lines hidden (view full) --- 1190 return (-1); 1191} 1192 1193int 1194pmc_configure_logfile(int fd) 1195{ 1196 struct pmc_op_configurelog cla; 1197 |
1198 cla.pm_flags = 0; |
|
1198 cla.pm_logfd = fd; 1199 if (PMC_CALL(CONFIGURELOG, &cla) < 0) 1200 return (-1); 1201 return (0); 1202} 1203 1204int 1205pmc_cpuinfo(const struct pmc_cpuinfo **pci) --- 746 unchanged lines hidden --- | 1199 cla.pm_logfd = fd; 1200 if (PMC_CALL(CONFIGURELOG, &cla) < 0) 1201 return (-1); 1202 return (0); 1203} 1204 1205int 1206pmc_cpuinfo(const struct pmc_cpuinfo **pci) --- 746 unchanged lines hidden --- |