10Sstevel@tonic-gate /* 20Sstevel@tonic-gate * CDDL HEADER START 30Sstevel@tonic-gate * 40Sstevel@tonic-gate * The contents of this file are subject to the terms of the 5*2685Sakolb * Common Development and Distribution License (the "License"). 6*2685Sakolb * You may not use this file except in compliance with the License. 70Sstevel@tonic-gate * 80Sstevel@tonic-gate * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 90Sstevel@tonic-gate * or http://www.opensolaris.org/os/licensing. 100Sstevel@tonic-gate * See the License for the specific language governing permissions 110Sstevel@tonic-gate * and limitations under the License. 120Sstevel@tonic-gate * 130Sstevel@tonic-gate * When distributing Covered Code, include this CDDL HEADER in each 140Sstevel@tonic-gate * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 150Sstevel@tonic-gate * If applicable, add the following below this CDDL HEADER, with the 160Sstevel@tonic-gate * fields enclosed by brackets "[]" replaced with your own identifying 170Sstevel@tonic-gate * information: Portions Copyright [yyyy] [name of copyright owner] 180Sstevel@tonic-gate * 190Sstevel@tonic-gate * CDDL HEADER END 200Sstevel@tonic-gate */ 21*2685Sakolb 220Sstevel@tonic-gate /* 23*2685Sakolb * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 240Sstevel@tonic-gate * Use is subject to license terms. 250Sstevel@tonic-gate */ 260Sstevel@tonic-gate 270Sstevel@tonic-gate #ifndef _MDB_LGRP_H 280Sstevel@tonic-gate #define _MDB_LGRP_H 290Sstevel@tonic-gate 300Sstevel@tonic-gate #pragma ident "%Z%%M% %I% %E% SMI" 310Sstevel@tonic-gate 320Sstevel@tonic-gate #include <mdb/mdb_modapi.h> 330Sstevel@tonic-gate 340Sstevel@tonic-gate #ifdef __cplusplus 350Sstevel@tonic-gate extern "C" { 360Sstevel@tonic-gate #endif 370Sstevel@tonic-gate 380Sstevel@tonic-gate extern int lgrp_cpulist_walk_init(mdb_walk_state_t *); 390Sstevel@tonic-gate extern int lgrp_cpulist_walk_step(mdb_walk_state_t *); 400Sstevel@tonic-gate 410Sstevel@tonic-gate extern int lgrp_walk_init(mdb_walk_state_t *); 420Sstevel@tonic-gate extern int lgrp_walk_step(mdb_walk_state_t *); 430Sstevel@tonic-gate 44*2685Sakolb extern int lgrp_parents_walk_init(mdb_walk_state_t *); 45*2685Sakolb extern int lgrp_parents_walk_step(mdb_walk_state_t *); 46*2685Sakolb 47*2685Sakolb extern int lgrp_rsrc_cpu_walk_init(mdb_walk_state_t *); 48*2685Sakolb extern int lgrp_rsrc_mem_walk_init(mdb_walk_state_t *); 49*2685Sakolb extern int lgrp_set_walk_step(mdb_walk_state_t *); 50*2685Sakolb 510Sstevel@tonic-gate extern int lgrp(uintptr_t, uint_t, int, const mdb_arg_t *); 52*2685Sakolb extern int lgrp_set(uintptr_t, uint_t, int, const mdb_arg_t *); 530Sstevel@tonic-gate 540Sstevel@tonic-gate extern int print_range(int start, int end, int separator); 550Sstevel@tonic-gate extern void print_cpuset_range(ulong_t *cs, int words, int width); 560Sstevel@tonic-gate 570Sstevel@tonic-gate #ifdef __cplusplus 580Sstevel@tonic-gate } 590Sstevel@tonic-gate #endif 600Sstevel@tonic-gate 610Sstevel@tonic-gate #endif /* _MDB_LGRP_H */ 62