Deleted Added
full compact
sched_ule.c (209059) sched_ule.c (210117)
1/*-
2 * Copyright (c) 2002-2007, Jeffrey Roberson <jeff@freebsd.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 22 unchanged lines hidden (view full) ---

31 *
32 * etymology:
33 * ULE is the last three letters in schedule. It owes its name to a
34 * generic user created for a scheduling system by Paul Mikesell at
35 * Isilon Systems and a general lack of creativity on the part of the author.
36 */
37
38#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2002-2007, Jeffrey Roberson <jeff@freebsd.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 22 unchanged lines hidden (view full) ---

31 *
32 * etymology:
33 * ULE is the last three letters in schedule. It owes its name to a
34 * generic user created for a scheduling system by Paul Mikesell at
35 * Isilon Systems and a general lack of creativity on the part of the author.
36 */
37
38#include <sys/cdefs.h>
39__FBSDID("$FreeBSD: head/sys/kern/sched_ule.c 209059 2010-06-11 18:46:34Z jhb $");
39__FBSDID("$FreeBSD: head/sys/kern/sched_ule.c 210117 2010-07-15 13:46:30Z ivoras $");
40
41#include "opt_hwpmc_hooks.h"
42#include "opt_kdtrace.h"
43#include "opt_sched.h"
44
45#include <sys/param.h>
46#include <sys/systm.h>
47#include <sys/kdb.h>

--- 2603 unchanged lines hidden (view full) ---

2651 sbuf_printf(sb, ", ");
2652 else
2653 first = FALSE;
2654 sbuf_printf(sb, "%d", i);
2655 }
2656 }
2657 sbuf_printf(sb, "</cpu>\n");
2658
40
41#include "opt_hwpmc_hooks.h"
42#include "opt_kdtrace.h"
43#include "opt_sched.h"
44
45#include <sys/param.h>
46#include <sys/systm.h>
47#include <sys/kdb.h>

--- 2603 unchanged lines hidden (view full) ---

2651 sbuf_printf(sb, ", ");
2652 else
2653 first = FALSE;
2654 sbuf_printf(sb, "%d", i);
2655 }
2656 }
2657 sbuf_printf(sb, "</cpu>\n");
2658
2659 sbuf_printf(sb, "%*s <flags>", indent, "");
2660 if (cg->cg_flags != 0) {
2659 if (cg->cg_flags != 0) {
2660 sbuf_printf(sb, "%*s <flags>", indent, "");
2661 if ((cg->cg_flags & CG_FLAG_HTT) != 0)
2662 sbuf_printf(sb, "<flag name=\"HTT\">HTT group</flag>");
2663 if ((cg->cg_flags & CG_FLAG_THREAD) != 0)
2664 sbuf_printf(sb, "<flag name=\"THREAD\">THREAD group</flag>");
2665 if ((cg->cg_flags & CG_FLAG_SMT) != 0)
2666 sbuf_printf(sb, "<flag name=\"SMT\">SMT group</flag>");
2661 if ((cg->cg_flags & CG_FLAG_HTT) != 0)
2662 sbuf_printf(sb, "<flag name=\"HTT\">HTT group</flag>");
2663 if ((cg->cg_flags & CG_FLAG_THREAD) != 0)
2664 sbuf_printf(sb, "<flag name=\"THREAD\">THREAD group</flag>");
2665 if ((cg->cg_flags & CG_FLAG_SMT) != 0)
2666 sbuf_printf(sb, "<flag name=\"SMT\">SMT group</flag>");
2667 sbuf_printf(sb, "</flags>\n");
2667 }
2668 }
2668 sbuf_printf(sb, "</flags>\n");
2669
2670 if (cg->cg_children > 0) {
2671 sbuf_printf(sb, "%*s <children>\n", indent, "");
2672 for (i = 0; i < cg->cg_children; i++)
2673 sysctl_kern_sched_topology_spec_internal(sb,
2674 &cg->cg_child[i], indent+2);
2675 sbuf_printf(sb, "%*s </children>\n", indent, "");
2676 }

--- 72 unchanged lines hidden ---
2669
2670 if (cg->cg_children > 0) {
2671 sbuf_printf(sb, "%*s <children>\n", indent, "");
2672 for (i = 0; i < cg->cg_children; i++)
2673 sysctl_kern_sched_topology_spec_internal(sb,
2674 &cg->cg_child[i], indent+2);
2675 sbuf_printf(sb, "%*s </children>\n", indent, "");
2676 }

--- 72 unchanged lines hidden ---