0
  ?   ˆl–äY>”J_)%ÝÀ·q¦TÅ£�þ_+‹6YI-‘¡6@?ÂƒlµÁ_ˆI|¥�+y,ÁÀ      ˆÄ‘äÇò 8à_eð<óì¸çÃƒh¹ÂÁÀ 	æ    /*
 * Copyright Â© 2009 CNRS
 * Copyright Â© 2009-2021 Inria.  All rights reserved.
 * Copyright Â© 2009-2011 UniversitÃ© Bordeaux
 * See COPYING in top-level directory.
 */

/** \file
 * \brief Macros to help interaction between hwloc and Linux.
 *
 * Applications that use hwloc on Linux may want to include this file
 * if using some low-level Linux features.
 */

#ifndef HWLOC_LINUX_H
#define HWLOC_LINUX_H

#include "hwloc.h"

#include <stdio.h>


#ifdef __cplusplus
extern "C" {
#endif


/** \defgroup hwlocality_linux Linux-specific helpers
 *
 * This includes helpers for manipulating Linux kernel cpumap files, and hwloc
 * equivalents of the Linux sched_setaffinity and sched_getaffinity system calls.
 *
 * @{
 */

/** \brief Bind a thread \p tid on cpus given in cpuset \p set
 *
 * The behavior is exactly the same as the Linux sched_setaffinity system call,
 * but uses a hwloc cpuset.
 *
 * \note This is equivalent to calling hwloc_set_proc_cpubind() with
 * HWLOC_CPUBIND_THREAD as flags.
 */
HWLOC_DECLSPEC int hwloc_linux_set_tid_cpubind(hwloc_topology_t topology, pid_t tid, hwloc_const_cpuset_t set);

/** \brief Get the current binding of thread \p tid
 *
 * The CPU-set \p set (previously allocated by the caller)
 * is filled with the list of PUs which the thread
 * was last bound to.
 *
 * The behavior is exactly the same as the Linux sched_getaffinity system call,
 * but uses a hwloc cpuset.
 *
 * \note This is equivalent to calling hwloc_get_proc_cpubind() with
 * ::HWLOC_CPUBIND_THREAD as flags.
 */
HWLOC_DECLSPEC int hwloc_linux_get_tid_cpubind(hwloc_topology_t topology, pid_t tid, hwloc_cpuset_t set);

/** \brief Get the last physical CPU where thread \p tid ran.
 *
 * The CPU-set \p set (previously allocated by the caller)
 * is filled with the PU which the thread last ran on.
 *
 * \note This is equivalent to calling hwloc_get_proc_last_cpu_location() with
 * ::HWLOC_CPUBIND_THREAD as flags.
 */
HWLOC_DECLSPEC int hwloc_linux_get_tid_last_cpu_location(hwloc_topology_t topology, pid_t tid, hwloc_bitmap_t set);

/** \brief Convert a linux kernel cpumask file \p path into a hwloc bitmap \p set.
 *
 * Might be used when reading CPU set from sysfs attributes such as topology
 * and caches for processors, or local_cpus for devices.
 *
 * \note This function ignores the HWLOC_FSROOT environment variable.
 */
HWLOC_DECLSPEC int hwloc_linux_read_path_as_cpumask(const char *path, hwloc_bitmap_t set);

/** @} */


#ifdef __cplusplus
} /* extern "C" */
#endif


#endif /* HWLOC_LINUX_H */
      disabled
  /   ˆ{‹„„-i[D<†ªoZƒ›Ù«Ä830_‘I|¥‰ÓMdœv ©ƒ†ü+=ÄÃ >    ‹      ½˜Ýo›0ÀßûWx<ì-8ŸíÒ¦.TZÔ6�ÚLÓ4MÈ€^F¶iÚýõ3!$%ë&y~I¸óaîw¶Ïg;ï¼»ñüÛì
|žßÞ€Ù—O7“1°Z~í�!ôæ^ÕÐ·Û¯¦°)ós—Ë¥½ìÙŒÇp~™Ò>’“PÚ‘Œ,÷Ä)uî	pŒ"õI$Åî$‹ð3` Y!‰°ê9/JÂ�F,Pà,ZŠí§ÌN„2–«E,-!èÆºÁ!ÉBZ¨WÆ„„«’æÔ�ÕG•pí‡°è¥t¯cÚõÅUP°ò¨|ä®#ð„(‰³‘%Yn¹Ic x8² 	Y&`@QöhÇdaDåÈú>ßýPvP&åÛ®ƒ@Âñbd}�¦w#Ïr§(ÅDÍ6·ÊæÒro�� eY5~¨ŒÈ¯ãz•�‡EÈI.	Ëv¦P!ÖQCFEŽë@$¼nU™DoE…{Á˜]Þ_MçÞä¾
ITv±óî¬åÎÇ™á8”Œ¿¬Ñ+?Þg�È/6"Xƒq'Òrh�FËˆF‘=fl™Õ¢‚ÝŠ�¥¹Bå>e±¿`<ERbn“\õ{¼­Žsà·ÝíµÚƒVgÚÃón€#†C{pm4Ïý‘l�V“tÀôÍÂD8(âŠdû¨ô:f1BÆ‘Z”š¨çÌ>3‰ƒŸqX”‰ÎOYF¶X�j-£5èšÄ[pµ,¬°öD-8§C“8?5MiïHƒžõÕ6‰˜S•â|ŽsÆå!åñ6=+¯o”³˜c!ö^“VÜÀ,œB(¨¾*’èªš¨èÕZ&iÇè&°á¨¦"> «kõŒÝ©I¸²ô·™Ò'efa�Àüiú–…è®Ý3½«µöD=8F'èÊÉÔ¥Æ³•µ¬¸®Ñ:¥à×yÖ¢žòÁ$Îj»^A¨=»Bz¥Ò3JFSÇŽa·”^ëôŒ—Ñª¤Qß­Õ:ðzfÓÅŽ#GeZW›—8$ÜoÑSY=<§´©tnTëÀ;µ�žJŽæ²ùX‹ž‰ú§¼ù—×ep}‘èÀÕ�¦«×ß(â¯Ó    G   	ˆl–ßi~”je¶…2 ƒp¸ØÅ£’þc«8 ¶àÈÀZof¯ùÇÁÀÆ891_‹uÐb&=Ly¦�ÆÅ {    	‹      µVÛŽÛ6}/Ð Ôg-u³×6b–l6ÙE½ù ®D­ØP"KÒŽÝ"@~«ýœ|I‡”äõ^ÚuZ÷…¤(òÌÌ™£Ñ¼y»«9ÚR¥™h¦^xxˆ6¹(Xs?õ>Ü®ü‘‡´!MA¸hèÔÛSí½�}ÿÝ9Ñ¼¸"{±10=!S¯2FN0ÖyEk¢/„¤¼+…ª‰�Gu�E>vÍqC\ÖxÝ}uÊ}Q–,§‘ojÚ˜DQNø¯+&u�&OA“Šj€q·»dö¢w¿xÈR[x½Ä�¯y�RÃÆ-3œ"`e¢1€ähy«(µ«fû£’ky£Ü½÷Û…Xaqºûî^tÇp{É-ð“ë÷ý’Lv¥ªíd ÝÔƒœííˆíÝ”·›ùÃn^]¿p6¯–/œÆ½|dÔFÕ:÷<œÈ{DGxˆª÷WË+‘Ô¨�¿ïp¢�ÙÎ²ê˜7Êëi°/ñ±qÝ“ev©(öÖÈÌn“L¸6k³çÔ=H;87øË‰6müë–3Ë8Ë?"#-˜Aïˆ6T!g”(–ãhQ