git: 81dc3a4d3bb9 - main - tools/net80211/wlanwatch: Remove obsolete code.

2024-02-20 Thread Joseph Koshy
The branch main has been updated by jkoshy:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=81dc3a4d3bb9fd0847530a3530f860e08a9b3ad3

commit 81dc3a4d3bb9fd0847530a3530f860e08a9b3ad3
Author: Joseph Koshy 
AuthorDate: 2024-02-19 16:46:45 +
Commit: Joseph Koshy 
CommitDate: 2024-02-20 08:27:30 +

tools/net80211/wlanwatch: Remove obsolete code.

The symbol NI_WITHSCOPEID has not been defined by  since
May 2005 (since SVN r146690).
---
 tools/tools/net80211/wlanwatch/wlanwatch.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/tools/tools/net80211/wlanwatch/wlanwatch.c 
b/tools/tools/net80211/wlanwatch/wlanwatch.c
index def94454cfab..6e3bfd798c2d 100644
--- a/tools/tools/net80211/wlanwatch/wlanwatch.c
+++ b/tools/tools/net80211/wlanwatch/wlanwatch.c
@@ -193,9 +193,6 @@ routename(struct sockaddr *sa)
{
struct sockaddr_in6 sin6; /* use static var for safety */
int niflags = 0;
-#ifdef NI_WITHSCOPEID
-   niflags = NI_WITHSCOPEID;
-#endif
 
memset(&sin6, 0, sizeof(sin6));
memcpy(&sin6, sa, sa->sa_len);



git: f401d82ef7cf - main - pmc: Keep a list sorted.

2023-04-05 Thread Joseph Koshy
The branch main has been updated by jkoshy:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=f401d82ef7cf5038d41e46097fd2d2b6ecaf8ca1

commit f401d82ef7cf5038d41e46097fd2d2b6ecaf8ca1
Author: Joseph Koshy 
AuthorDate: 2023-04-05 18:36:55 +
Commit: Joseph Koshy 
CommitDate: 2023-04-05 19:09:28 +

pmc: Keep a list sorted.

Approved by:gnn (mentor)
Differential Revision: https://reviews.freebsd.org/D39439
---
 lib/libpmc/pmc.3 | 82 
 1 file changed, 41 insertions(+), 41 deletions(-)

diff --git a/lib/libpmc/pmc.3 b/lib/libpmc/pmc.3
index 68fa46a5c337..83f555a5a770 100644
--- a/lib/libpmc/pmc.3
+++ b/lib/libpmc/pmc.3
@@ -23,7 +23,7 @@
 .\"
 .\" $FreeBSD$
 .\"
-.Dd June 3, 2022
+.Dd April 5, 2023
 .Dt PMC 3
 .Os
 .Sh NAME
@@ -138,46 +138,6 @@ CPUs.
 .It Li PMC_CPU_AMD_K8
 .Tn "AMD Athlon64"
 CPUs.
-.It Li PMC_CPU_INTEL_ATOM
-.Tn Intel
-.Tn Atom
-CPUs and other CPUs conforming to version 3 of the
-.Tn Intel
-performance measurement architecture.
-.It Li PMC_CPU_INTEL_CORE
-.Tn Intel
-.Tn Core Solo
-and
-.Tn Core Duo
-CPUs, and other CPUs conforming to version 1 of the
-.Tn Intel
-performance measurement architecture.
-.It Li PMC_CPU_INTEL_CORE2
-.Tn Intel
-.Tn "Core2 Solo" ,
-.Tn "Core2 Duo"
-and
-.Tn "Core2 Extreme"
-CPUs, and other CPUs conforming to version 2 of the
-.Tn Intel
-performance measurement architecture.
-.It Li PMC_CPU_PPC_7450
-.Tn PowerPC
-MPC7450 CPUs.
-.It Li PMC_CPU_PPC_E500
-.Tn PowerPC
-e500 Core CPUs.
-.It Li PMC_CPU_PPC_970
-.Tn IBM
-.Tn PowerPC
-970 CPUs.
-.It Li PMC_CPU_PPC_POWER8
-.Tn IBM
-.Tn POWER8 and
-.Tn POWER9
-CPUs.
-.It Li GENERIC
-Generic
 .It Li PMC_CPU_ARMV7_CORTEX_A5
 .Tn ARMv7
 .Tn Cortex A5
@@ -213,6 +173,46 @@ CPUs.
 ARMv8
 .Tn Cortex A76
 CPUs.
+.It Li GENERIC
+Generic
+.It Li PMC_CPU_INTEL_ATOM
+.Tn Intel
+.Tn Atom
+CPUs and other CPUs conforming to version 3 of the
+.Tn Intel
+performance measurement architecture.
+.It Li PMC_CPU_INTEL_CORE
+.Tn Intel
+.Tn Core Solo
+and
+.Tn Core Duo
+CPUs, and other CPUs conforming to version 1 of the
+.Tn Intel
+performance measurement architecture.
+.It Li PMC_CPU_INTEL_CORE2
+.Tn Intel
+.Tn "Core2 Solo" ,
+.Tn "Core2 Duo"
+and
+.Tn "Core2 Extreme"
+CPUs, and other CPUs conforming to version 2 of the
+.Tn Intel
+performance measurement architecture.
+.It Li PMC_CPU_PPC_7450
+.Tn PowerPC
+MPC7450 CPUs.
+.It Li PMC_CPU_PPC_970
+.Tn IBM
+.Tn PowerPC
+970 CPUs.
+.It Li PMC_CPU_PPC_E500
+.Tn PowerPC
+e500 Core CPUs.
+.It Li PMC_CPU_PPC_POWER8
+.Tn IBM
+.Tn POWER8 and
+.Tn POWER9
+CPUs.
 .El
 .Ss Supported PMCs
 PMCs supported by this library are named by the



git: de07f7f06e5e - main - procfs: Document the content of /proc/$PID/map.

2023-04-10 Thread Joseph Koshy
The branch main has been updated by jkoshy:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=de07f7f06e5e98a0035120bcdce63b355d999d25

commit de07f7f06e5e98a0035120bcdce63b355d999d25
Author: Joseph Koshy 
AuthorDate: 2023-04-10 15:14:12 +
Commit: Joseph Koshy 
CommitDate: 2023-04-10 16:37:09 +

procfs: Document the content of /proc/$PID/map.

Approved by:gnn (mentor)
Differential Revision: https://reviews.freebsd.org/D39484
---
 share/man/man5/procfs.5 | 90 +++--
 1 file changed, 88 insertions(+), 2 deletions(-)

diff --git a/share/man/man5/procfs.5 b/share/man/man5/procfs.5
index 9e1d12cf3324..7fa00c53e62b 100644
--- a/share/man/man5/procfs.5
+++ b/share/man/man5/procfs.5
@@ -2,7 +2,7 @@
 .\" Written by Garrett Wollman
 .\" This file is in the public domain.
 .\"
-.Dd March 25, 2023
+.Dd April 10, 2023
 .Dt PROCFS 5
 .Os
 .Sh NAME
@@ -69,7 +69,93 @@ in
 is only implemented on machines which have distinct general
 purpose and floating point register sets.
 .It Pa map
-A map of the process' virtual memory.
+A collection of lines describing the memory regions of the process,
+where each line contains the following fields:
+.Bl -tag -compact -width private-resident
+.It start-address
+The starting address for the region (inclusive).
+.It end-address
+The ending address for the region (exclusive).
+.It resident
+The number of resident pages.
+.It private-resident
+The number of resident pages that were private to the process.
+.It obj
+The virtual address of the
+.Vt struct vm_object
+kernel data structure describing the memory region.
+.It access
+A three character string comprising the characters
+.Sq r ,
+.Sq w
+and
+.Sq x ,
+denoting read, write, and execute permissions respectively.
+The lack of a permission is represented by
+.Sq - .
+.It ref_count
+The number of references to the region.
+.It shadow_count
+The number of VM objects that this region is a shadow for.
+.It flags
+The flags for the object, see the flags named
+.Sy OBJ_*
+in
+.In vm/vm_object.h .
+.It copy-on-write
+Whether the region is copy-on-write.
+One of:
+.Bl -tag -compact -width NCOW
+.It COW
+A copy-on-write region.
+.It NCOW
+A non-copy-on-write region.
+.El
+.It needs-copy
+Whether the region needs a copy.
+One of:
+.Bl -tag -compact -width NNC
+.It NC
+The region needs a copy.
+.It NNC
+The region does not need a copy.
+.El
+.It type
+The type of the region.
+One of:
+.Bl -tag -compact -width unknown
+.It dead
+A region associated with a dead VM object.
+.It device
+A region backed by device memory.
+.It none
+A region not backed by anything.
+.It phys
+A region backed by physical memory.
+.It swap
+A region backed by swap.
+.It unknown
+A region of unknown type.
+.It vnode
+A region backed by a file.
+.El
+.It fullpath
+The path to the file backing the memory region, or
+.Sq -
+if there is no such file.
+.It cred
+One of:
+.Bl -tag -compact -width NCH
+.It CH
+The region is being charged to the user specified in the
+.Sq charged-uid
+field.
+.It NCH
+The region is not being charged to any user.
+.El
+.It charged-uid
+The UID of the user being charged, or -1 if no user is being charged.
+.El
 .It Pa mem
 The complete virtual memory image of the process.
 Only those address which exist in the process can be accessed.



git: 0e9e9048ae08 - main - procfs: Sync a documentation comment with the code.

2023-04-10 Thread Joseph Koshy
The branch main has been updated by jkoshy:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=0e9e9048ae08b38336ed3186b748bfd44a728f31

commit 0e9e9048ae08b38336ed3186b748bfd44a728f31
Author: Joseph Koshy 
AuthorDate: 2023-04-10 17:11:16 +
Commit: Joseph Koshy 
CommitDate: 2023-04-10 17:58:46 +

procfs: Sync a documentation comment with the code.

Approved by:gnn (mentor)
Differential Revision: https://reviews.freebsd.org/D39488
---
 sys/fs/procfs/procfs_map.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/sys/fs/procfs/procfs_map.c b/sys/fs/procfs/procfs_map.c
index caca731afc34..611cf65e81d3 100644
--- a/sys/fs/procfs/procfs_map.c
+++ b/sys/fs/procfs/procfs_map.c
@@ -202,8 +202,9 @@ procfs_doprocmap(PFS_FILL_ARGS)
 
/*
 * format:
-*  start, end, resident, private resident, cow, access, type,
-* charged, charged uid.
+*  start, end, resident, private-resident, obj, access,
+*  ref_count, shadow_count, flags, cow, needs_copy, type,
+*  fullpath, charged, charged uid.
 */
error = sbuf_printf(sb,
"0x%lx 0x%lx %d %d %p %s%s%s %d %d 0x%x %s %s %s %s %s 
%d\n",



git: c2eae5c39adc - main - man9: Add a manual page for kstack_contains(9).

2023-05-05 Thread Joseph Koshy
The branch main has been updated by jkoshy:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=c2eae5c39adcad87b9c04aaeefa0bef74e5ccf32

commit c2eae5c39adcad87b9c04aaeefa0bef74e5ccf32
Author: Joseph Koshy 
AuthorDate: 2023-05-02 09:37:38 +
Commit: Joseph Koshy 
CommitDate: 2023-05-05 14:42:59 +

man9: Add a manual page for kstack_contains(9).

Approved by:gnn (mentor)
Reviewed by:mhorne
Differential Revision: https://reviews.freebsd.org/D39933
---
 share/man/man9/Makefile  |  1 +
 share/man/man9/kstack_contains.9 | 62 
 2 files changed, 63 insertions(+)

diff --git a/share/man/man9/Makefile b/share/man/man9/Makefile
index 84b2fbf5e34d..2a320cf0fcba 100644
--- a/share/man/man9/Makefile
+++ b/share/man/man9/Makefile
@@ -204,6 +204,7 @@ MAN=accept_filter.9 \
kobj.9 \
kproc.9 \
kqueue.9 \
+   kstack_contains.9 \
kthread.9 \
ktr.9 \
lock.9 \
diff --git a/share/man/man9/kstack_contains.9 b/share/man/man9/kstack_contains.9
new file mode 100644
index ..52a6ba9e2ca6
--- /dev/null
+++ b/share/man/man9/kstack_contains.9
@@ -0,0 +1,62 @@
+.\" SPDX-License-Identifier: BSD-2-Clause
+.\"
+.\" Copyright (c) 2023 Joseph Koshy 
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"notice, this list of conditions and the following disclaimer in the
+.\"documentation and/or other materials provided with the distribution.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY EXPRESS OR
+.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+.\" IN NO EVENT SHALL THE DEVELOPERS BE LIABLE FOR ANY DIRECT, INDIRECT,
+.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
+.\" $FreeBSD$
+.\"
+.Dd May 2, 2023
+.Dt KSTACK_CONTAINS 9
+.Os
+.Sh NAME
+.Nm kstack_contains
+.Nd determine if an address range lies within the kernel stack for a thread
+.Sh SYNOPSIS
+.In machine/stack.h
+.Ft bool
+.Fn kstack_contains "struct thread *td" "vm_offset_t va" "size_t len"
+.Sh DESCRIPTION
+This function can be used to determine whether a given address range
+falls within the kernel stack for the thread pointed to by
+.Fa td .
+.Sh RETURN VALUES
+The function
+.Fn kstack_contains
+returns
+.Dv true
+if the range of addresses
+.Bo
+.Fa va Ns .. Ns (
+.Fa va Ns + Ns
+.Fa len Ns - Ns 1 )
+.Bc
+(both addresses inclusive) lies within the kernel stack for the thread
+pointed to by argument
+.Fa td ,
+or returns
+.Dv false
+otherwise.
+.Sh ERRORS
+This function does not return an error.
+.Sh SEE ALSO
+.Xr kproc 9 ,
+.Xr kthread 9



git: 8a3cca0d0862 - main - Sort a list of mentor/mentee relationships.

2023-02-18 Thread Joseph Koshy
The branch main has been updated by jkoshy:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=8a3cca0d086275c4bbc6ca561a15ce248b4e81ef

commit 8a3cca0d086275c4bbc6ca561a15ce248b4e81ef
Author: Joseph Koshy 
AuthorDate: 2023-02-17 20:51:27 +
Commit: Joseph Koshy 
CommitDate: 2023-02-18 21:11:59 +

Sort a list of mentor/mentee relationships.

Approved by:gnn (mentor)
Differential Revision: https://reviews.freebsd.org/D38658
---
 share/misc/committers-src.dot | 16 
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/share/misc/committers-src.dot b/share/misc/committers-src.dot
index 4fa97bb4d76f..2dce9a542a23 100644
--- a/share/misc/committers-src.dot
+++ b/share/misc/committers-src.dot
@@ -553,18 +553,18 @@ gibbs -> whu
 
 glebius -> mav
 
-gnn -> jinmei
-gnn -> rrs
-gnn -> ivoras
-gnn -> vanhu
-gnn -> lstewart
-gnn -> np
-gnn -> davide
 gnn -> arybchik
+gnn -> davide
 gnn -> erj
-gnn -> kp
+gnn -> ivoras
+gnn -> jinmei
 gnn -> jtl
 gnn -> karels
+gnn -> kp
+gnn -> lstewart
+gnn -> np
+gnn -> rrs
+gnn -> vanhu
 
 gonzo -> jmcneill
 gonzo -> wulf



git: 163dd260e3cb - main - Add gnn@ as my mentor.

2023-02-24 Thread Joseph Koshy
The branch main has been updated by jkoshy:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=163dd260e3cb62911968aaff761ddbc57117bc23

commit 163dd260e3cb62911968aaff761ddbc57117bc23
Author: Joseph Koshy 
AuthorDate: 2023-02-19 09:25:22 +
Commit: Joseph Koshy 
CommitDate: 2023-02-24 21:42:30 +

Add gnn@ as my mentor.

Approved by:gnn (mentor)
Differential Revision: https://reviews.freebsd.org/D38673
---
 share/misc/committers-src.dot | 1 +
 1 file changed, 1 insertion(+)

diff --git a/share/misc/committers-src.dot b/share/misc/committers-src.dot
index 2dce9a542a23..0afa32f65654 100644
--- a/share/misc/committers-src.dot
+++ b/share/misc/committers-src.dot
@@ -558,6 +558,7 @@ gnn -> davide
 gnn -> erj
 gnn -> ivoras
 gnn -> jinmei
+gnn -> jkoshy
 gnn -> jtl
 gnn -> karels
 gnn -> kp



git: 047ce3db9776 - main - pmcstat: Warn about text output format stability.

2023-03-24 Thread Joseph Koshy
The branch main has been updated by jkoshy:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=047ce3db97769968f6777be456cbf196c65eb455

commit 047ce3db97769968f6777be456cbf196c65eb455
Author: Joseph Koshy 
AuthorDate: 2023-03-24 09:39:08 +
Commit: Joseph Koshy 
CommitDate: 2023-03-24 18:46:22 +

pmcstat: Warn about text output format stability.

The formats for pmcstat(8)'s human-readable output are not part of its
user interface definition, and may change in the future.  Highlight
this in its manual page.

Approved by:gnn (mentor)
Differential Revision: https://reviews.freebsd.org/D39249
---
 usr.sbin/pmcstat/pmcstat.8 | 6 +-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/usr.sbin/pmcstat/pmcstat.8 b/usr.sbin/pmcstat/pmcstat.8
index b0dae2449cfe..dade290c21b1 100644
--- a/usr.sbin/pmcstat/pmcstat.8
+++ b/usr.sbin/pmcstat/pmcstat.8
@@ -25,7 +25,7 @@
 .\"
 .\" $FreeBSD$
 .\"
-.Dd August 17, 2020
+.Dd March 24, 2023
 .Dt PMCSTAT 8
 .Os
 .Sh NAME
@@ -107,6 +107,10 @@ counting and sampling flavors.
 The values of all counting PMCs are printed in human readable form
 at regular intervals by
 .Nm .
+The format of
+.Nm Ns 's
+human-readable textual output is not stable, and could change
+in the future.
 The output of sampling PMCs may be configured to go to a log file for
 subsequent offline analysis, or, at the expense of greater
 overhead, may be configured to be printed in text form on the fly.



git: 609312077684 - main - procfs: Add manual page cross references.

2023-03-25 Thread Joseph Koshy
The branch main has been updated by jkoshy:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=60931207768437c46cbc80df1b6901f8246dc57b

commit 60931207768437c46cbc80df1b6901f8246dc57b
Author: Joseph Koshy 
AuthorDate: 2023-03-25 06:44:03 +
Commit: Joseph Koshy 
CommitDate: 2023-03-25 16:21:34 +

procfs: Add manual page cross references.

Approved by:gnn (mentor)
Differential Revision: https://reviews.freebsd.org/D39264
---
 share/man/man5/procfs.5 | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/share/man/man5/procfs.5 b/share/man/man5/procfs.5
index 37da9cf82e4b..9e1d12cf3324 100644
--- a/share/man/man5/procfs.5
+++ b/share/man/man5/procfs.5
@@ -2,7 +2,7 @@
 .\" Written by Garrett Wollman
 .\" This file is in the public domain.
 .\"
-.Dd October 17, 2021
+.Dd March 25, 2023
 .Dt PROCFS 5
 .Os
 .Sh NAME
@@ -205,6 +205,8 @@ file system on
 .Xr mount 2 ,
 .Xr sigaction 2 ,
 .Xr unmount 2 ,
+.Xr kvm 3 ,
+.Xr libprocstat 3 ,
 .Xr pseudofs 9
 .Sh AUTHORS
 .An -nosplit



git: 57014ab77647 - main - pmc: Add a reminder to maintain documentation.

2023-03-29 Thread Joseph Koshy
The branch main has been updated by jkoshy:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=57014ab77647c74fcb0a01d68e21a161ceb95d5a

commit 57014ab77647c74fcb0a01d68e21a161ceb95d5a
Author: Joseph Koshy 
AuthorDate: 2023-03-28 21:22:59 +
Commit: Joseph Koshy 
CommitDate: 2023-03-29 09:12:08 +

pmc: Add a reminder to maintain documentation.

Approved by:gnn (mentor)
Differential Revision: https://reviews.freebsd.org/D39298
---
 sys/sys/pmc.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sys/sys/pmc.h b/sys/sys/pmc.h
index 5465d0532a2a..8d25ecad721d 100644
--- a/sys/sys/pmc.h
+++ b/sys/sys/pmc.h
@@ -79,6 +79,8 @@ extern char pmc_cpuid[PMC_CPUID_LEN];
  * some way for PMC operations.  CPU names are grouped by manufacturer
  * and numbered sparsely in order to minimize changes to the ABI involved
  * when new CPUs are added.
+ *
+ * Please keep the pmc(3) manual page in sync with this list.
  */
 
 #define__PMC_CPUS()\



git: aac74b708b3d - main - libelftc: Fix a typo - FreeBSD's riscv port is little-endian.

2024-12-31 Thread Joseph Koshy
The branch main has been updated by jkoshy:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=aac74b708b3dc49466b0fb5365bc2923b7727a1c

commit aac74b708b3dc49466b0fb5365bc2923b7727a1c
Author: Joseph Koshy 
AuthorDate: 2024-12-31 17:53:16 +
Commit: Joseph Koshy 
CommitDate: 2024-12-31 19:53:05 +

libelftc: Fix a typo - FreeBSD's riscv port is little-endian.

This change brings the descriptor for target "elf64-riscv-freebsd"
in line with its documentation.

I missed this somehow when reviewing https://reviews.freebsd.org/D20768.

Reported by: Haowu Ge (on elftoolchain-developers)
Reviewed by: emaste, imp
Differential Revision: https://reviews.freebsd.org/D48271
---
 contrib/elftoolchain/libelftc/libelftc_bfdtarget.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/contrib/elftoolchain/libelftc/libelftc_bfdtarget.c 
b/contrib/elftoolchain/libelftc/libelftc_bfdtarget.c
index 5bbf89ba78fa..3f2c23708549 100644
--- a/contrib/elftoolchain/libelftc/libelftc_bfdtarget.c
+++ b/contrib/elftoolchain/libelftc/libelftc_bfdtarget.c
@@ -334,7 +334,7 @@ struct _Elftc_Bfd_Target _libelftc_targets[] = {
{
.bt_name  = "elf64-riscv-freebsd",
.bt_type  = ETF_ELF,
-   .bt_byteorder = ELFDATA2MSB,
+   .bt_byteorder = ELFDATA2LSB,
.bt_elfclass  = ELFCLASS64,
.bt_machine   = EM_RISCV,
.bt_osabi = ELFOSABI_FREEBSD,



git: 5d418202f888 - main - libelf: Fix the NAME sections of two manual pages.

2025-07-16 Thread Joseph Koshy
The branch main has been updated by jkoshy:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=5d418202f888e5d5062f1e4d26457ea67fc81739

commit 5d418202f888e5d5062f1e4d26457ea67fc81739
Author: Joseph Koshy 
AuthorDate: 2025-07-16 18:34:26 +
Commit: Joseph Koshy 
CommitDate: 2025-07-16 18:34:26 +

libelf: Fix the NAME sections of two manual pages.

This change allows mandoc(1) to find these manual pages for
all the relevant function names.

Submitted by: Ingo Schwarze
Obtained from: elftoolchain/r4192
---
 contrib/elftoolchain/libelf/elf_open.3  |  5 +++--
 contrib/elftoolchain/libelf/gelf_xlatetof.3 | 11 +++
 2 files changed, 10 insertions(+), 6 deletions(-)

diff --git a/contrib/elftoolchain/libelf/elf_open.3 
b/contrib/elftoolchain/libelf/elf_open.3
index 054036a24935..896bf8455ae5 100644
--- a/contrib/elftoolchain/libelf/elf_open.3
+++ b/contrib/elftoolchain/libelf/elf_open.3
@@ -23,11 +23,12 @@
 .\"
 .\" $Id: elf_open.3 3743 2019-06-12 19:36:30Z jkoshy $
 .\"
-.Dd June 12, 2019
+.Dd July 15, 2025
 .Dt ELF_OPEN 3
 .Os
 .Sh NAME
-.Nm elf_open
+.Nm elf_open ,
+.Nm elf_openmemory
 .Nd open ELF objects and ar(1) archives
 .Sh LIBRARY
 .Lb libelf
diff --git a/contrib/elftoolchain/libelf/gelf_xlatetof.3 
b/contrib/elftoolchain/libelf/gelf_xlatetof.3
index 2e5ee0fe15e0..4a7b25c99b5a 100644
--- a/contrib/elftoolchain/libelf/gelf_xlatetof.3
+++ b/contrib/elftoolchain/libelf/gelf_xlatetof.3
@@ -23,13 +23,16 @@
 .\"
 .\" $Id: gelf_xlatetof.3 3639 2018-10-14 14:07:02Z jkoshy $
 .\"
-.Dd October 11, 2018
+.Dd July 15, 2025
 .Dt GELF_XLATETOF 3
 .Os
 .Sh NAME
-.Nm elf32_xlate ,
-.Nm elf64_xlate ,
-.Nm gelf_xlate
+.Nm elf32_xlatetof ,
+.Nm elf32_xlatetom ,
+.Nm elf64_xlatetof ,
+.Nm elf64_xlatetom ,
+.Nm gelf_xlatetof ,
+.Nm gelf_xlatetom
 .Nd translate data between files and memory
 .Sh LIBRARY
 .Lb libelf