Skip to content

Commit b507eab

Browse files
author
Javid Habibi
committed
documentation cleanup and polish
1 parent 9a802f9 commit b507eab

File tree

4 files changed

+53
-39
lines changed

4 files changed

+53
-39
lines changed

CMakeLists.txt

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -129,21 +129,8 @@ INSTALL(TARGETS procmon DESTINATION /usr/bin)
129129

130130
# build debian package
131131
set(CPACK_GENERATOR "DEB")
132-
133-
# are we running on centos or ubuntu build agent?
134-
execute_process(COMMAND lsb_release -si OUTPUT_VARIABLE distro OUTPUT_STRIP_TRAILING_WHITESPACE)
135-
136-
if(distro STREQUAL "CentOS")
137-
set(CPACK_GENERATOR "RPM")
138-
execute_process(COMMAND uname -m OUTPUT_VARIABLE CPACK_RPM_PACKAGE_ARCHITECTURE OUTPUT_STRIP_TRAILING_WHITESPACE)
139-
set(CPACK_PACKAGE_FILE_NAME ${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}-${AZDO_BUILD_ID}.${CPACK_RPM_PACKAGE_ARCHITECTURE})
140-
141-
elseif(distro STREQUAL "Ubuntu")
142-
set(CPACK_GENERATOR "DEB")
143-
set(CPACK_DEBIAN_PACKAGE_DEPENDS "libc6 (>= 2.26.1), libstdc++6 (>= 3.4.22), libncurses5 (>= 5.0)")
144-
execute_process(COMMAND dpkg --print-architecture OUTPUT_VARIABLE CPACK_DEBIAN_PACKAGE_ARCHITECTURE OUTPUT_STRIP_TRAILING_WHITESPACE)
145-
set(CPACK_PACKAGE_FILE_NAME ${CPACK_PACKAGE_NAME}_${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}-${AZDO_BUILD_ID}_${CPACK_DEBIAN_PACKAGE_ARCHITECTURE})
146-
147-
endif()
132+
set(CPACK_DEBIAN_PACKAGE_DEPENDS "libc6 (>= 2.26.1), libstdc++6 (>= 3.4.22), libncurses5 (>= 5.0)")
133+
execute_process(COMMAND dpkg --print-architecture OUTPUT_VARIABLE CPACK_DEBIAN_PACKAGE_ARCHITECTURE OUTPUT_STRIP_TRAILING_WHITESPACE)
134+
set(CPACK_PACKAGE_FILE_NAME ${CPACK_PACKAGE_NAME}_${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}-${AZDO_BUILD_ID}_${CPACK_DEBIAN_PACKAGE_ARCHITECTURE})
148135

149136
include(CPack)

CONTRIBUTING.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,14 @@
33
Before we can accept a pull request from you, you'll need to sign a [Contributor License Agreement (CLA)](https://cla.microsoft.com). It is an automated process and you only need to do it once.
44
To enable us to quickly review and accept your pull requests, always create one pull request per issue and link the issue in the pull request. Never merge multiple requests in one unless they have the same root cause. Be sure to follow our Coding Guidelines and keep code changes as small as possible. Avoid pure formatting changes to code that has not been modified otherwise. Pull requests should contain tests whenever possible.
55

6+
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
7+
For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or
8+
contact [[email protected]](mailto:[email protected]) with any additional questions or comments.
9+
610
# Branching
7-
The master branch contains current development. While CI should ensure that master always builds, it is still considered pre-release code. Release checkpoints will be put into stable branches for maintenance.
11+
The main branch contains current development. While CI should ensure that main always builds, it is still considered pre-release code. Release checkpoints will be put into stable branches for maintenance.
812

9-
To contribute, fork the repository and create a branch in your fork for your work. Please keep branch names short and descriptive. Please direct PRs into the upstream master branch.
13+
To contribute, fork the repository and create a branch in your fork for your work. Please keep branch names short and descriptive. Please direct PRs into the upstream main branch.
1014

1115
## Build and run from source
1216
### Environment
@@ -33,7 +37,7 @@ sudo make install
3337

3438
##### 2. Build Procmon
3539
```bash
36-
git clone <URL>
40+
git clone https://github.com/microsoft/Procmon-for-Linux
3741
cd procmon-for-linux
3842
mkdir build
3943
cd build

README.md

Lines changed: 41 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,30 @@
1-
# Procmon
2-
Procmon is a Linux reimagining of the classic Procmon tool from the Sysinternals suite of tools for Windows. Procmon provides a convenient and efficient way for Linux developers to trace the syscall activity on the system.
1+
# Process Monitor for Linux (Preview)
2+
Process Monitor (Procmon) is a Linux reimagining of the classic Procmon tool from the Sysinternals suite of tools for Windows. Procmon provides a convenient and efficient way for Linux developers to trace the syscall activity on the system.
33

44
![Procmon in use](procmon.gif "Procmon in use")
5+
6+
# Installation & Usage
7+
8+
## Requirements
9+
* Minimum OS:
10+
* Ubuntu 18.04 lts
11+
* `cmake` >= 3.13 (build-time only)
12+
* `libsqlite3-dev` >= 3.22 (build-time only)
13+
14+
515
## Install Procmon
616
Checkout our [install instructions](INSTALL.md) for ditribution specific steps to install Procmon.
717

8-
## Building from source
18+
## Building Procmon from source
919

10-
### Build-time deps
11-
* `cmake` >= 3.13
12-
* `libsqlite3-dev` >= 3.22
1320

21+
### 1. Install build dependencies
1422
```bash
1523
sudo apt-get -y install bison build-essential flex git libedit-dev \
1624
libllvm6.0 llvm-6.0-dev libclang-6.0-dev python zlib1g-dev libelf-dev
1725
```
1826

19-
### Building
20-
21-
#### 1. Build BCC
27+
### 2. Build and install BCC
2228
```bash
2329
git clone --branch tag_v0.10.0 https://github.com/iovisor/bcc.git
2430
mkdir bcc/build
@@ -28,27 +34,23 @@ make
2834
sudo make install
2935
```
3036

31-
#### 2. Build Procmon
37+
### 3. Build Procmon
3238
```bash
3339
git clone https://github.com/Microsoft/Procmon-for-Linux
34-
cd procmon-for-linux
40+
cd Procmon-for-Linux
3541
mkdir build
3642
cd build
3743
cmake ..
3844
make
3945
```
4046

4147
### Building Procmon Packages
42-
The distribution packages for Procmon for Linux are constructed utilizing `debbuild` for Debian targets and `rpmbuild` for Fedora targets.
48+
The distribution packages for Procmon for Linux are constructed utilizing `cpack`.
4349

4450
To build a `deb` package of Procmon on Ubuntu simply run:
4551
```sh
46-
make && make deb
47-
```
48-
49-
To build a `rpm` package of Procmon on Fedora simply run:
50-
```sh
51-
make && make rpm
52+
cd build
53+
cpack ..
5254
```
5355

5456
## Usage
@@ -57,6 +59,9 @@ Usage: procmon [OPTIONS]
5759
OPTIONS
5860
-h/--help Prints this help screen
5961
-p/--pids Comma separated list of process ids to monitor
62+
-e/--events Comma separated list of system calls to monitor
63+
-c/--collect [FILEPATH] Option to start Procmon in a headless mode
64+
-f/--file FILEPATH Open a Procmon trace file
6065
```
6166

6267
### Examples
@@ -68,6 +73,24 @@ The following traces processes with process id 10 and 20
6873
```
6974
sudo procmon -p 10,20
7075
```
76+
The following traces process 20 only syscalls read, write and openat
77+
```
78+
sudo procmon -p 20 -e read,write,openat
79+
```
80+
The following traces process 35 and opens Procmon in headless mode to output all captured events to file procmon.db
81+
```
82+
sudo procmon -p 35 -c procmon.db
83+
```
84+
The following opens a Procmon tracefile, procmon.db, within the Procmon TUI
85+
```
86+
sudo procmon -f procmon.db
87+
```
88+
89+
# Feedback
90+
* Ask a question on StackOverflow (tag with ProcmonForLinux)
91+
* Request a new feature on GitHub
92+
* Vote for popular feature requests
93+
* File a bug in GitHub Issues
7194

7295
# Contributing
7396
If you are interested in fixing issues and contributing directly to the code base, please see the [document How to Contribute](CONTRIBUTING.md), which covers the following:

azure-pipelines.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ trigger:
44
branches:
55
include:
66
- release/*
7-
- master
7+
- main
88
exclude:
99
- dev/*
1010
- test/*
1111

1212
pr:
13-
- master
13+
- main
1414

1515
jobs:
1616
- job: "Build_Procmon"

0 commit comments

Comments
 (0)