Skip to content

Commit 97a12b3

Browse files
authored
Merge pull request #48 from fbarrat/docker
A few fixes
2 parents acca9d9 + 96acf65 commit 97a12b3

File tree

5 files changed

+12
-58
lines changed

5 files changed

+12
-58
lines changed

Doxyfile-html

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -240,12 +240,6 @@ TAB_SIZE = 4
240240

241241
ALIASES =
242242

243-
# This tag can be used to specify a number of word-keyword mappings (TCL only).
244-
# A mapping has the form "name=value". For example adding "class=itcl::class"
245-
# will allow you to use the command class in the itcl::class meaning.
246-
247-
TCL_SUBST =
248-
249243
# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C sources
250244
# only. Doxygen will then generate output that is more tailored for C. For
251245
# instance, some of the names that are used will be different. The list of all
@@ -1082,13 +1076,6 @@ VERBATIM_HEADERS = YES
10821076

10831077
ALPHABETICAL_INDEX = YES
10841078

1085-
# The COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns in
1086-
# which the alphabetical index list will be split.
1087-
# Minimum value: 1, maximum value: 20, default value: 5.
1088-
# This tag requires that the tag ALPHABETICAL_INDEX is set to YES.
1089-
1090-
COLS_IN_ALPHA_INDEX = 5
1091-
10921079
# In case all classes in a project start with a common prefix, all classes will
10931080
# be put under the same header in the alphabetical index. The IGNORE_PREFIX tag
10941081
# can be used to specify a prefix (or a list of prefixes) that should be ignored
@@ -2148,12 +2135,6 @@ EXTERNAL_GROUPS = YES
21482135

21492136
EXTERNAL_PAGES = YES
21502137

2151-
# The PERL_PATH should be the absolute path and name of the perl script
2152-
# interpreter (i.e. the result of 'which perl').
2153-
# The default file (with absolute path) is: /usr/bin/perl.
2154-
2155-
PERL_PATH = /usr/bin/perl
2156-
21572138
#---------------------------------------------------------------------------
21582139
# Configuration options related to the dot tool
21592140
#---------------------------------------------------------------------------
@@ -2167,15 +2148,6 @@ PERL_PATH = /usr/bin/perl
21672148

21682149
CLASS_DIAGRAMS = YES
21692150

2170-
# You can define message sequence charts within doxygen comments using the \msc
2171-
# command. Doxygen will then run the mscgen tool (see:
2172-
# http://www.mcternan.me.uk/mscgen/)) to produce the chart and insert it in the
2173-
# documentation. The MSCGEN_PATH tag allows you to specify the directory where
2174-
# the mscgen tool resides. If left empty the tool is assumed to be found in the
2175-
# default search path.
2176-
2177-
MSCGEN_PATH =
2178-
21792151
# You can include diagrams made with dia in doxygen documentation. Doxygen will
21802152
# then run dia to produce the diagram and insert it in the documentation. The
21812153
# DIA_PATH tag allows you to specify the directory where the dia binary resides.

Doxyfile-man

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -240,12 +240,6 @@ TAB_SIZE = 4
240240

241241
ALIASES =
242242

243-
# This tag can be used to specify a number of word-keyword mappings (TCL only).
244-
# A mapping has the form "name=value". For example adding "class=itcl::class"
245-
# will allow you to use the command class in the itcl::class meaning.
246-
247-
TCL_SUBST =
248-
249243
# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C sources
250244
# only. Doxygen will then generate output that is more tailored for C. For
251245
# instance, some of the names that are used will be different. The list of all
@@ -1081,13 +1075,6 @@ VERBATIM_HEADERS = YES
10811075

10821076
ALPHABETICAL_INDEX = YES
10831077

1084-
# The COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns in
1085-
# which the alphabetical index list will be split.
1086-
# Minimum value: 1, maximum value: 20, default value: 5.
1087-
# This tag requires that the tag ALPHABETICAL_INDEX is set to YES.
1088-
1089-
COLS_IN_ALPHA_INDEX = 5
1090-
10911078
# In case all classes in a project start with a common prefix, all classes will
10921079
# be put under the same header in the alphabetical index. The IGNORE_PREFIX tag
10931080
# can be used to specify a prefix (or a list of prefixes) that should be ignored
@@ -2147,12 +2134,6 @@ EXTERNAL_GROUPS = YES
21472134

21482135
EXTERNAL_PAGES = YES
21492136

2150-
# The PERL_PATH should be the absolute path and name of the perl script
2151-
# interpreter (i.e. the result of 'which perl').
2152-
# The default file (with absolute path) is: /usr/bin/perl.
2153-
2154-
PERL_PATH = /usr/bin/perl
2155-
21562137
#---------------------------------------------------------------------------
21572138
# Configuration options related to the dot tool
21582139
#---------------------------------------------------------------------------
@@ -2166,15 +2147,6 @@ PERL_PATH = /usr/bin/perl
21662147

21672148
CLASS_DIAGRAMS = YES
21682149

2169-
# You can define message sequence charts within doxygen comments using the \msc
2170-
# command. Doxygen will then run the mscgen tool (see:
2171-
# http://www.mcternan.me.uk/mscgen/)) to produce the chart and insert it in the
2172-
# documentation. The MSCGEN_PATH tag allows you to specify the directory where
2173-
# the mscgen tool resides. If left empty the tool is assumed to be found in the
2174-
# default search path.
2175-
2176-
MSCGEN_PATH =
2177-
21782150
# You can include diagrams made with dia in doxygen documentation. Doxygen will
21792151
# then run dia to produce the diagram and insert it in the documentation. The
21802152
# DIA_PATH tag allows you to specify the directory where the dia binary resides.

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,11 @@ The following environment variables may be set (to 1 or "YES") to assist with de
9898

9999
**LIBOCXL_VERBOSE_ERRORS_ALL** Force verbose errors to be emitted for any failed LibOCXL calls, unless explicitly disabled.
100100

101+
102+
For testing and/or assist in various environments, the following environment variable can also be set:
103+
104+
**LIBOCXL_SYSPATH** Override the default path (/sys/class/ocxl) used by the library to read driver information.
105+
101106
Patches may be submitted via Github pull requests. Please prepare your patches
102107
by running `make precommit` before committing your work, and addressing any warnings & errors reported.
103108
Patches must compile cleanly with the latest stable version of GCC to be accepted.

src/afu.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,9 +343,9 @@ static bool populate_metadata(dev_t dev, ocxl_afu *afu)
343343
}
344344

345345
physical_function++;
346-
uint16_t domain;
346+
uint32_t domain;
347347
uint8_t bus, device, function;
348-
int found = sscanf(physical_function, "%hu:%hhu:%hhu.%hhu.%hhu",
348+
int found = sscanf(physical_function, "%x:%hhu:%hhu.%hhu.%hhu",
349349
&domain, &bus, &device, &function, &afu->identifier.afu_index);
350350

351351
if (found != 5) {

src/internal.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ pthread_mutex_t stderr_mutex = PTHREAD_MUTEX_INITIALIZER;
5353
* - Check the LIBOCXL_INFO environment variable and output the info string
5454
* - Check the LIBOCXL_TRACE_ALL environment variable and enable tracing_all
5555
* - Check the LIBOCXL_VERBOSE_ERRORS_ALL environment variable and enable verbose_errors_all
56+
* - Check the LIBOCXL_SYSPATH environment variable and override sys_path
5657
*/
5758
void libocxl_init()
5859
{
@@ -81,6 +82,10 @@ void libocxl_init()
8182
verbose_errors = true;
8283
}
8384

85+
val = getenv("LIBOCXL_SYSPATH");
86+
if (val)
87+
sys_path = val;
88+
8489
libocxl_inited = true;
8590

8691
pthread_mutex_unlock(&libocxl_inited_mutex);

0 commit comments

Comments
 (0)