Re: Unix System Services - strace

2023-05-04 Thread David Geib
The sysomvs ctrace data is written to OMVS dataspaces (z/OS 2.4 and below) or 
to 64-bit storage (above the bar) at z/OS 2.5  OR to dataset(s) defined for an 
external writer.

If not using an external writer, you must capture an SVC dump of 
OMVS+dataspaces.

In either case - SVC dump or dataset from external writer - you must then use 
IPCS to format the ctrace.  (aplogies for not mentioning this in the prior post)

IPCS option 2.7.1 provides a panel to build the command to format the ctrace. 

Command line (IPCS option 6) would bectrace comp(sysomvs) local full 
options((kerninfo))

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: Unix System Services - strace

2023-05-03 Thread Neale Ferguson
I was able to run a trace:

TRACE CT,ON,COMP=SYSOMVS
*05 ITT006A SPECIFY OPERAND(S) FOR TRACE CT COMMAND.
 R 5,OPTIONS=(SYSCALL,FILE),END
 IEE600I REPLY TO 05 IS;OPTIONS=(SYSCALL,FILE),END
 ITT038I ALL OF THE TRANSACTIONS REQUESTED VIA THE TRACE CT COMMAND WERE
 SUCCESSFULLY EXECUTED.

Ran the command on my OVMS session and then ended the trace:

TRACE CT,OFF,COMP=SYSOMVS
 ITT038I ALL OF THE TRANSACTIONS REQUESTED VIA THE TRACE CT COMMAND WERE
 SUCCESSFULLY EXECUTED.
 ITT038I ALL OF THE TRANSACTIONS REQUESTED VIA THE TRACE CT COMMAND WERE 
SUCCESSFULLY EXECUTED.

How do I run CTRACE?

Neale

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: Unix System Services - strace

2023-05-03 Thread Neale Ferguson
Thanks! I’ll take a read.


Detailed OMVS tracing is described here

https://www.ibm.com/docs/en/zos/2.5.0?topic=trace-sysomvs-component



--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: Unix System Services - strace

2023-05-03 Thread David Geib
Detailed OMVS tracing is described here

https://www.ibm.com/docs/en/zos/2.5.0?topic=trace-sysomvs-component

It is low-level, and will require either external writer or SVC dump of 
OMVS+dataspaces to capture. Options SYSCALL and FILE will capture file 
activity. 

Be aware when filtering sysomvs ctrace by jobname - 

The JOBNAME= parameter can be used for the SYSOMVS Ctrace to trace data just 
for jobs that run with the specific user ID(s) specified
 in the JOBNAME list. This filtering is based on the user ID of a job, not its 
jobname. The OMVS kernel is traced with jobname OMVS.

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: Unix System Services - strace

2023-05-03 Thread Neale Ferguson
I found the bpxtrace command but while its output is full of FCN… fcntl and 
FCN… write they are almost the only functions generating trace records. The app 
is opening quite a lot of files but I see no evidence in the trace.

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: Unix System Services - strace

2023-05-03 Thread Attila Fogarasi
bpxtrace
https://www.ibm.com/docs/en/zos/2.4.0?topic=descriptions-bpxtrace-activate-deactivate-traces-processes

On Wed, May 3, 2023 at 5:11 PM Neale Ferguson  wrote:

> Under Linux I use the strace command to trace system calls to see, for
> example, what files are trying to be opened. Is there an equivalent method
> under Unix System Services?
>
> Neale
>
> --
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
>

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Unix System Services - strace

2023-05-03 Thread Neale Ferguson
Under Linux I use the strace command to trace system calls to see, for example, 
what files are trying to be opened. Is there an equivalent method under Unix 
System Services?

Neale

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN